Skip to content

Commit 3cece1c

Browse files
committed
Travis CI: update to the latest version of .travis.yml
* Switch to PackPack for packages * Use `packagecloud` deployment instead of travis.sh script * Enable email notifications * Add Fedora 25, Ubuntu Yakkety * Remove Ubuntu Wily (EOL)
1 parent a5d351f commit 3cece1c

File tree

1 file changed

+86
-55
lines changed

1 file changed

+86
-55
lines changed

.travis.yml

Lines changed: 86 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,83 +1,114 @@
1-
sudo: required
2-
services:
3-
- docker
4-
5-
language: c
1+
sudo: false
2+
language: C
63
compiler:
74
- clang
85
- gcc
96

7+
services:
8+
- docker
9+
10+
cache:
11+
directories:
12+
- $HOME/.cache
13+
1014
env:
1115
global:
1216
- ENCRYPTION_LABEL="27298b445e90"
1317
matrix:
14-
- OS=el DIST=6 PACK=rpm
15-
- OS=el DIST=7 PACK=rpm
16-
- OS=fedora DIST=23 PACK=rpm
17-
- OS=fedora DIST=24 PACK=rpm
18-
- OS=fedora DIST=rawhide PACK=rpm
19-
- OS=ubuntu DIST=trusty PACK=deb
20-
- OS=ubuntu DIST=precise PACK=deb
21-
- OS=ubuntu DIST=wily PACK=deb
22-
- OS=ubuntu DIST=xenial PACK=deb
23-
- OS=debian DIST=jessie PACK=deb
24-
- OS=debian DIST=wheezy PACK=deb
25-
- OS=debian DIST=stretch PACK=deb
26-
- OS=debian DIST=sid PACK=deb
27-
- PACK=none
28-
- PACK=documentation.sh
18+
- TARGET=documentation
19+
- TARGET=test
20+
- OS=el DIST=6
21+
- OS=el DIST=7
22+
- OS=fedora DIST=24
23+
- OS=fedora DIST=25
24+
- OS=ubuntu DIST=precise
25+
- OS=ubuntu DIST=trusty
26+
- OS=ubuntu DIST=xenial
27+
- OS=ubuntu DIST=yakkety
28+
- OS=debian DIST=wheezy
29+
- OS=debian DIST=jessie
30+
- OS=debian DIST=stretch
2931

3032
matrix:
31-
fast_finish: true
3233
allow_failures:
33-
- env: OS=el DIST=6 PACK=rpm
34-
- env: OS=el DIST=7 PACK=rpm
35-
- env: OS=fedora DIST=23 PACK=rpm
36-
- env: OS=fedora DIST=24 PACK=rpm
37-
- env: OS=fedora DIST=rawhide PACK=rpm
38-
- env: OS=ubuntu DIST=precise PACK=deb
39-
- env: OS=ubuntu DIST=trusty PACK=deb
40-
- env: OS=ubuntu DIST=wily PACK=deb
41-
- env: OS=ubuntu DIST=xenial PACK=deb
42-
- env: OS=debian DIST=jessie PACK=deb
43-
- env: OS=debian DIST=wheezy PACK=deb
44-
- env: OS=debian DIST=stretch PACK=deb
45-
- env: OS=debian DIST=sid PACK=deb
34+
# - env: OS=el DIST=6
35+
# - env: OS=el DIST=7
36+
# - env: OS=fedora DIST=24
37+
# - env: OS=fedora DIST=25
38+
# - env: OS=ubuntu DIST=precise
39+
# - env: OS=ubuntu DIST=trusty
40+
# - env: OS=ubuntu DIST=xenial
41+
# - env: OS=ubuntu DIST=yakkety
42+
# - env: OS=debian DIST=wheezy
43+
# - env: OS=debian DIST=jessie
44+
# - env: OS=debian DIST=stretch
4645
exclude:
47-
- env: OS=el DIST=6 PACK=rpm
48-
compiler: clang
49-
- env: OS=el DIST=7 PACK=rpm
46+
- env: OS=el DIST=6
5047
compiler: clang
51-
- env: OS=fedora DIST=23 PACK=rpm
48+
- env: OS=el DIST=7
5249
compiler: clang
53-
- env: OS=fedora DIST=24 PACK=rpm
50+
- env: OS=fedora DIST=24
5451
compiler: clang
55-
- env: OS=fedora DIST=rawhide PACK=rpm
52+
- env: OS=fedora DIST=25
5653
compiler: clang
57-
- env: OS=ubuntu DIST=precise PACK=deb
54+
- env: OS=ubuntu DIST=precise
5855
compiler: clang
59-
- env: OS=ubuntu DIST=trusty PACK=deb
56+
- env: OS=ubuntu DIST=trusty
6057
compiler: clang
61-
- env: OS=ubuntu DIST=wily PACK=deb
58+
- env: OS=ubuntu DIST=xenial
6259
compiler: clang
63-
- env: OS=ubuntu DIST=xenial PACK=deb
60+
- env: OS=ubuntu DIST=yakkety
6461
compiler: clang
65-
- env: OS=debian DIST=wheezy PACK=deb
62+
- env: OS=debian DIST=wheezy
6663
compiler: clang
67-
- env: OS=debian DIST=jessie PACK=deb
64+
- env: OS=debian DIST=jessie
6865
compiler: clang
69-
- env: OS=debian DIST=stretch PACK=deb
66+
- env: OS=debian DIST=stretch
7067
compiler: clang
71-
- env: OS=debian DIST=sid PACK=deb
68+
- env: TARGET=documentation
7269
compiler: clang
73-
- env: PACK=documentation.sh
74-
compiler: gcc
7570

7671
script:
77-
- git clone https://github.com/tarantool/build.git -b extended-pack
78-
- PACKAGECLOUD_REPO=tarantool/1_6 REPO_PREFIX=1.6 ./build/pack/travis.sh
79-
- PACKAGECLOUD_REPO=tarantool/1_7 REPO_PREFIX=1.7 ./build/pack/travis.sh
72+
- git describe --long
73+
- |
74+
if [ "${TARGET}" = "test" ]; then
75+
./test.sh;
76+
elif [ "${TARGET}" = "documentation" ]; then
77+
./documentation.sh;
78+
else
79+
git clone https://github.com/packpack/packpack.git packpack;
80+
packpack/packpack;
81+
fi;
82+
83+
before_deploy:
84+
- ls -l build/
85+
86+
deploy:
87+
# Deploy packages to PackageCloud
88+
- provider: packagecloud
89+
username: tarantool
90+
repository: "1_6"
91+
token: ${PACKAGECLOUD_TOKEN}
92+
dist: ${OS}/${DIST}
93+
package_glob: build/*.{rpm,deb}
94+
skip_cleanup: true
95+
on:
96+
branch: master
97+
condition: -n "${OS}" && -n "${DIST}" && -n "${PACKAGECLOUD_TOKEN}"
98+
- provider: packagecloud
99+
username: tarantool
100+
repository: "1_7"
101+
token: ${PACKAGECLOUD_TOKEN}
102+
dist: ${OS}/${DIST}
103+
package_glob: build/*.{rpm,deb}
104+
skip_cleanup: true
105+
on:
106+
branch: master
107+
condition: -n "${OS}" && -n "${DIST}" && -n "${PACKAGECLOUD_TOKEN}"
80108

81109
notifications:
82-
email: true
83-
irc: false
110+
email:
111+
recipients:
112+
113+
on_success: change
114+
on_failure: always

0 commit comments

Comments
 (0)