forked from kvirc/KVIrc
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
126 lines (122 loc) · 8.47 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
language: cpp
matrix:
include:
- os: linux
env: WANT_KDE=NO
compiler: gcc
- os: linux
env: DEBUILD=YES
compiler: gcc
- os: osx
compiler: clang
- stage: deploy
os: linux
before_install:
after_success:
install:
- if [[ "$TRAVIS_REPO_SLUG" == "kvirc/KVIrc" && "$TRAVIS_PULL_REQUEST" == "false" && "$TRAVIS_BRANCH" == "master" ]]; then openssl aes-256-cbc -K $encrypted_da8de0aafbfc_key -iv $encrypted_da8de0aafbfc_iv -in .travis-github.ssh.enc -out ~/kvirc-github-key -d; fi
- export encrypted_da8de0aafbfc_key=no
- sudo apt-get update
# for ./.travis-coverity-scan.py
- sudo apt-get install -y python3-yaml
script:
- |
if [ "$TRAVIS_REPO_SLUG" == "kvirc/KVIrc" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then
echo "All builds passed!"
mkdir -p ~/.ssh
chmod 0600 ~/kvirc-github-key
cp .travis.ssh ~/.ssh/config
git config --global user.email "kvirc-travis@users.noreply.github.com"
git config --global user.name "kvirc-travis"
./.travis-coverity-scan.py
else
echo "Not master"
fi
#- |
#if [ "$TRAVIS_OS_NAME" == "osx" ]; then
# npm update -g npm
# npm install -g appdmg
# appdmg -v dist/osx/osx_dmg.json KVIrc.dmg
#fi
# Only upload to kvirc.staticfox.net if this is a commit to master
#- |
#if [ "$TRAVIS_OS_NAME" == "osx" ] && [ "$TRAVIS_REPO_SLUG" == "kvirc/KVIrc" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then
# kvi_version="$(grep -i "^set(VERSION_RELEASE .*)$" CMakeLists.txt | egrep -o '[0-9\.]' | tr -d '\n')";
# git_desc="$(git describe)";
# curl --ftp-create-dirs -T KVIrc.dmg -u $FTP_USER:$FTP_PASS ${FTP_HOST}KVIrc-${kvi_version}-dev-${git_desc}.dmg
#fi
sudo: required
git:
depth: 9999999
dist: trusty
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cat /proc/cpuinfo /proc/meminfo; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then lsb_release -a; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then sw_vers; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then sysctl -a | grep cpu; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then sysctl -a | grep mem; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then command curl -sSL https://rvm.io/mpapis.asc | gpg --import -; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then rvm get head; fi
- export encrypted_da8de0aafbfc_key=no
- pwd
install:
- CMAKE_ARGS=""
- |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
# want cmake newer than in ubuntu 14.04
sudo add-apt-repository -y ppa:george-edison55/cmake-3.x
sudo apt-get update
sudo apt-get install -y cmake libperl-dev libenchant-dev qtmultimedia5-dev libqt5webkit5-dev libqt5svg5-dev libqt5x11extras5-dev libphonon4qt5-dev libphonon4qt5experimental-dev
if [ -z "$DEBUILD" ]
then
CMAKE_ARGS="$CMAKE_ARGS -DWANT_KDE=$WANT_KDE"
if [[ "$WANT_KDE" == "YES" ]]; then
sudo apt-get install -y kdelibs5-dev
fi
else
sudo apt-get install -y devscripts debhelper zlib1g-dev libx11-dev libxrender-dev libssl-dev qttools5-dev-tools qttools5-dev pkg-config libxss-dev python-dev dput gnupg
fi
fi
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update
brew install qt5 enchant
# want cmake newer than by default in travis osx
brew upgrade cmake
export CMAKE_FRAMEWORK_PATH="$CMAKE_FRAMEWORK_PATH:$(brew --prefix qt5)"
fi
script:
- |
if [ -z "$DEBUILD" ]
then
mkdir build
cd build
cmake $CMAKE_ARGS .. || exit 1
make -j3 || exit 1
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo make install; fi
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then make install; fi
ls -l
cd ..
else
cd dist
export DEB_BUILD_OPTIONS="parallel=3"
bash build_debian.sh || exit 1
cd build && sudo dpkg -i *.deb
ls -l
cd ../..
fi
after_success:
- |
if [ ! -z "$DEBUILD" ] && [ "$TRAVIS_REPO_SLUG" == "kvirc/KVIrc" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then
cd dist
bash build_debian.sh -p || exit 1
fi
env:
global:
# These 3 lines are: $FTP_USER, $FTP_PASS, $FTP_HOST
- secure: Zn6G9cdrsjSBMlKIDef/DiLYBP9tlAn9PAXbbTOhz3giuw8xlGsJhi9lVXkT5vTU30ZmdsjG5c0NgQabF8Tye9Fvbc04HU+2biN2rpDTrzjDIfH5sp6cexQ4rr0ivGfQ2ySIALPEmafF8FdkOmtb6G62J/KmqH0wRRxhuHSxbnGfp28R86b347dtZ0khlNJW+HxM7/ZEMlqD4w0s5p95h+HP5YA085oXXtwge2zP0z+HEiC8TOxXvne8qMD/sHUNsU7r/OzgpkOXPdNHnnxEKtoefSv8VtqS9gj2/4bkQFL2CvphQaoPlRzMZeB5y1TatkgK9bcu7cwnyeHWDlhqG5x6vpEpAPk9STwzzteJtiY+3cq1ZOIm6S5KBy/3OMcpjKfpbMTk4sVabEN35A2ePfuTxHLc9fX9dP1zymABqzfHY3eFO6FZ7ljkSZ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