-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
138 lines (132 loc) · 7.87 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
127
128
129
130
131
132
133
134
135
136
137
138
language: c
branches:
except:
- /^[0-9]+\.[0-9]+$/
- /^[0-9]+\.[0-9]+\.[0-9]+/
- /^[0-9]+\.[0-9]+beta[0-9]/
env:
global:
- LJT_VERSION=2.0.5
- LJT_URL=https://sourceforge.net/projects/libjpeg-turbo/files/$LJT_VERSION
- LJT_LINUX_JNI=$LJT_URL/libjpeg-turbo-$LJT_VERSION-jws.zip
- LJT_OSX_JNI=$LJT_URL/libjpeg-turbo-$LJT_VERSION-jws.zip
- LJT_WINDOWS_JNI=$LJT_URL/libjpeg-turbo-$LJT_VERSION-jws.zip
- LJT_GPG_KEY=https://sourceforge.net/projects/libjpeg-turbo/files/LJT-GPG-KEY
matrix:
include:
- os: linux
env: BUILD_OFFICIAL=1
sudo: required
services:
- docker
- os: osx
env: BUILD_OFFICIAL=1
osx_image: xcode8.3
- os: linux
dist: trusty
compiler: gcc
env: CMAKE_FLAGS="-DCMAKE_BUILD_TYPE=RelWithDebInfo -DTVNC_USEPAM=0 -DTVNC_USETLS=0"
sudo: required
addons:
apt:
packages:
- libxi-dev
before_install:
- if [ "${BUILD_OFFICIAL:-}" != "" ]; then
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
docker pull dcommander/buildvnc &&
mkdir ~/libjpeg-turbo-jni &&
pushd ~/libjpeg-turbo-jni &&
wget --no-check-certificate $LJT_LINUX_JNI -O libjpeg-turbo-jws.zip &&
unzip libjpeg-turbo-jws.zip &&
rm libjpeg-turbo-jws.zip &&
if [ "$LJT_OSX_JNI" != "$LJT_LINUX_JNI" ]; then
wget --no-check-certificate $LJT_OSX_JNI -O libjpeg-turbo-jws.zip &&
unzip libjpeg-turbo-jws.zip &&
rm libjpeg-turbo-jws.zip;
fi &&
if [ "$LJT_WINDOWS_JNI" != "$LJT_LINUX_JNI" ]; then
wget --no-check-certificate $LJT_WINDOWS_JNI -O libjpeg-turbo-jws.zip &&
unzip libjpeg-turbo-jws.zip &&
rm libjpeg-turbo-jws.zip;
fi &&
popd &&
mkdir ~/libjpeg-turbo-rpm &&
pushd ~/libjpeg-turbo-rpm &&
wget --no-check-certificate $LJT_URL/libjpeg-turbo-official-$LJT_VERSION.x86_64.rpm $LJT_URL/libjpeg-turbo-official-$LJT_VERSION.i386.rpm &&
popd;
fi &&
git clone --depth=1 https://github.com/turbovnc/buildscripts.git -b $TRAVIS_BRANCH ~/src/buildscripts &&
if [ -n "$encrypted_c6f652756c51_iv" ]; then
openssl aes-256-cbc -K $encrypted_c6f652756c51_key -iv $encrypted_c6f652756c51_iv -in ci/keys.enc -out ci/keys -d &&
tar xf ci/keys &&
rm ci/keys &&
mv ci/gpgsign ~/src/buildscripts &&
gpg --batch --import ci/sign_vnc &&
rm ci/sign_vnc;
fi
fi
- if [ "${BUILD_OFFICIAL:-}" == "" -a "$TRAVIS_OS_NAME" = "linux" ]; then
pushd ~ &&
wget --no-check-certificate $LJT_URL/libjpeg-turbo-official_$LJT_VERSION\_amd64.deb $LJT_URL/libjpeg-turbo-official32_$LJT_VERSION\_amd64.deb &&
sudo dpkg -i *.deb &&
popd;
fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
pushd ~ &&
curl -LO https://raw.githubusercontent.com/GiovanniBussi/macports-ci/master/macports-ci &&
. ./macports-ci install &&
sudo /opt/local/bin/port -N install md5sha1sum &&
wget --no-check-certificate $LJT_URL/libjpeg-turbo-$LJT_VERSION.dmg &&
hdid libjpeg-turbo-$LJT_VERSION.dmg &&
sudo installer -pkg /Volumes/libjpeg-turbo-$LJT_VERSION/libjpeg-turbo.pkg -target / &&
hdiutil detach /Volumes/libjpeg-turbo-$LJT_VERSION &&
popd;
fi
script:
- if [ "${BUILD_OFFICIAL:-}" != "" ]; then
mkdir -p ~/src/vnc.nightly &&
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
mkdir $HOME/rpmkeys &&
wget --no-check-certificate "$LJT_GPG_KEY" -O $HOME/rpmkeys/LJT-GPG-KEY &&
wget --no-check-certificate http://www.turbovnc.org/key/VGLPR-GPG-KEY -O $HOME/rpmkeys/VGLPR-GPG-KEY &&
docker run -v $HOME/src/vnc.nightly:/root/src/vnc.nightly -v $HOME/src/buildscripts:/root/src/buildscripts -v $TRAVIS_BUILD_DIR:/root/src/turbovnc -v $HOME/.gnupg:/root/.gnupg -v $HOME/libjpeg-turbo-jni:/opt/libjpeg-turbo-jni -v $HOME/libjpeg-turbo-rpm:/rpms -v $HOME/rpmkeys:/rpmkeys -t dcommander/buildvnc:latest bash -c "rpm --import /rpmkeys/LJT-GPG-KEY && rpm -K /rpms/*.rpm && rpm -i /rpms/*.rpm && rpm --import /rpmkeys/VGLPR-GPG-KEY && ~/src/buildscripts/buildvnc -d /root/src/turbovnc -v" &&
sudo chown -R travis:travis ~/src/vnc.nightly;
else
~/src/buildscripts/buildvnc -d $TRAVIS_BUILD_DIR -v;
fi &&
mv ~/src/vnc.nightly/latest/log-$TRAVIS_OS_NAME.txt ~/src/vnc.nightly/latest/files/;
fi
- if [ "${BUILD_OFFICIAL:-}" == "" ]; then
mkdir build &&
pushd build &&
cmake -G"Unix Makefiles" ${CMAKE_FLAGS} .. &&
export NUMCPUS=`grep -c '^processor' /proc/cpuinfo` &&
make -j$NUMCPUS --load-average=$NUMCPUS &&
popd;
fi
deploy:
- provider: s3
bucket: turbovnc-pr
access_key_id:
secure: G+x3WRY/nWPntRjmWr+PMW9G3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TXLheglM5lrxJzn1wuaKom029VDkyhDe8J881EkuA0miECyR0g98ZyyCN/HoDlg8D17ixRSYqNkfmZQmiSHOlmPVGkP7/ElQWW6yEe1u7elq/v2i3OtjG3I+LLiNGwFy9reyq132dhmoiR9eLK0ppqoqFb4eP01FgqnS5avaZnFDUi+RVRERTZ1JazxR12vY8DFtUDaFiYszkD29Lp4pG3L9me0COodU2mp7Lg6+zmNt0VLMd5XcKlngFXeFRApIqmTlH83WZ04jyMaYa+E=
acl: public_read
local-dir: $HOME/src/vnc.nightly/latest/files
upload-dir: $TRAVIS_BRANCH/$TRAVIS_OS_NAME
on:
branch: master
condition: -n "$BUILD_OFFICIAL"
- provider: s3
bucket: turbovnc-pr
access_key_id:
secure: G+x3WRY/nWPntRjmWr+PMW9G3QhGI0X79E9FC41XxkSzbBMVAOoxdC6TDmN1wiyajhZbKj5cjBBvbB43Jy2MagyhOTMZ3o6Gz3PRPkCJrqmT+qtoKmYtASNqirATFKSPRumsT3zGqbScvC0hIA/YY0I7DTq0sRYrhfo1IitlwR/vtb0j3NmxfBOqi84+tD1s7qVU9ibzg6MD0TAseIO7wRxgm22Wx3ekNjjc6PBlkgORam5Vx0AYoaDeXnUNm4dJWHAgcenPzKz2qEdw5Vkaot+YjXHdIf72pV+mkahtjInIeHgcyr7uUW89w2WNIAKZ8VdSoh+oKyb6PGYXG7dsHhFb1lYcZXERR/CjB9MlLlMsV6/4NFGJOknKSRYTh8J5ijg2uV/dkaMK0V/9bUgv+sG9qxvW0FlQNCteCUFSTsspY4oNvRXrVnQhXj6qb0vFV5L7OGlE8Y9c/UMskcfeDGxMVRMldm2RwYj1KS3mkAecSGSTAYEEKTEH6E980ZmIFsHe4u1yZB8eiIFibCdoRdZuCdTBnXC9cN4aUqg5WSz8lMS3v130rc260p3UEbU5Z/q2ettJ5f2PKhTyuexZFJ+cjmDf4CgcZv1EEUC+G2yuybydy/zNXVOgeD4XrPnDbcA3p8KCdVk1wr8g/0vvyGjGeazWfoEGGy4CdtTHudc=
secret_access_key:
secure: 6odGWpddG2WBa1cZ7nlTnCX3lv0Xlq/tNQo005dFA7ySLyal3qNId2fdXpTStNmYjfXx7kXj62wl094hJ5hzxD/dEyY+x83VpaFJ7bYNfz/pWGNWw/SIDrvkjdn+sPApgBUter710eO3kE77QIUjrnVPXEdurIN5Gsue45XDFSOmf/TBDDBKi0FlyoWj687GJyxZSNRSMpEW29EzXU45kj78sEsPE96eo7cNZ5aIsvV+bpWEritiuGZdzfixOzpHI/ypmm7Hctyz2JOMyMSR0VIbf43zCeEQf4UBN0yz0RtB+bBVtwjWo+0Rt0hLQjsxlFri5ox67NwWe3k9yC2hLCWpQdVvVyqM6C1wVjA5RcSMQJQU2/Z34y+F84AdwgM6Zh0KD9TROVjjg6bAGYkVTtWqTXLheglM5lrxJzn1wuaKom029VDkyhDe8J881EkuA0miECyR0g98ZyyCN/HoDlg8D17ixRSYqNkfmZQmiSHOlmPVGkP7/ElQWW6yEe1u7elq/v2i3OtjG3I+LLiNGwFy9reyq132dhmoiR9eLK0ppqoqFb4eP01FgqnS5avaZnFDUi+RVRERTZ1JazxR12vY8DFtUDaFiYszkD29Lp4pG3L9me0COodU2mp7Lg6+zmNt0VLMd5XcKlngFXeFRApIqmTlH83WZ04jyMaYa+E=
acl: public_read
local-dir: $HOME/src/vnc.nightly/latest/files
upload-dir: $TRAVIS_BRANCH/$TRAVIS_OS_NAME
on:
branch: dev
condition: -n "$BUILD_OFFICIAL"