Skip to content

Commit 47f9717

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 e13296e commit 47f9717

File tree

1 file changed

+66
-27
lines changed

1 file changed

+66
-27
lines changed

.travis.yml

Lines changed: 66 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,76 @@
1-
sudo: required
1+
sudo: false
2+
language: C
23
services:
34
- docker
45

5-
language: c
6-
compiler: gcc
6+
cache:
7+
directories:
8+
- $HOME/.cache
79

810
env:
9-
global:
10-
- PRODUCT=tarantool-mqtt
11-
matrix:
12-
- PACK=none
13-
- OS=el DIST=7 PACK=rpm
14-
- OS=fedora DIST=23 PACK=rpm
15-
- OS=fedora DIST=24 PACK=rpm
16-
- OS=ubuntu DIST=wily PACK=deb
17-
- OS=ubuntu DIST=xenial PACK=deb
18-
- OS=debian DIST=jessie PACK=deb
19-
20-
matrix:
21-
allow_failures:
22-
- env: OS=el DIST=7 PACK=rpm
23-
- env: OS=fedora DIST=23 PACK=rpm
24-
- env: OS=fedora DIST=24 PACK=rpm
25-
- env: OS=ubuntu DIST=wily PACK=deb
26-
- env: OS=ubuntu DIST=xenial PACK=deb
27-
- env: OS=debian DIST=jessie PACK=deb
11+
global:
12+
- PRODUCT=tarantool-mqtt
13+
matrix:
14+
# - OS=el DIST=6
15+
- OS=el DIST=7
16+
- OS=fedora DIST=24
17+
- OS=fedora DIST=25
18+
# - OS=ubuntu DIST=precise
19+
# - OS=ubuntu DIST=trusty
20+
- OS=ubuntu DIST=xenial
21+
- OS=ubuntu DIST=yakkety
22+
# - OS=debian DIST=wheezy
23+
- OS=debian DIST=jessie
24+
- OS=debian DIST=stretch
2825

26+
#matrix:
27+
# allow_failures:
28+
# - env: OS=el DIST=6
29+
# - env: OS=el DIST=7
30+
# - env: OS=fedora DIST=24
31+
# - env: OS=fedora DIST=25
32+
# - env: OS=ubuntu DIST=precise
33+
# - env: OS=ubuntu DIST=trusty
34+
# - env: OS=ubuntu DIST=xenial
35+
# - env: OS=ubuntu DIST=yakkety
36+
# - env: OS=debian DIST=wheezy
37+
# - env: OS=debian DIST=jessie
38+
# - env: OS=debian DIST=stretch
2939

3040
script:
31-
- git clone https://github.com/tarantool/build.git
32-
- PACKAGECLOUD_REPO=tarantool/1_6 REPO_PREFIX=1.6 ./build/pack/travis.sh
33-
- PACKAGECLOUD_REPO=tarantool/1_7 REPO_PREFIX=1.7 ./build/pack/travis.sh
41+
- git describe --long
42+
- git clone https://github.com/packpack/packpack.git packpack
43+
- packpack/packpack
44+
45+
before_deploy:
46+
- ls -l build/
47+
48+
deploy:
49+
# Deploy packages to PackageCloud
50+
- provider: packagecloud
51+
username: tarantool
52+
repository: "1_6"
53+
token: ${PACKAGECLOUD_TOKEN}
54+
dist: ${OS}/${DIST}
55+
package_glob: build/*.{rpm,deb,dsc}
56+
skip_cleanup: true
57+
on:
58+
branch: master
59+
condition: -n "${OS}" && -n "${DIST}" && -n "${PACKAGECLOUD_TOKEN}"
60+
- provider: packagecloud
61+
username: tarantool
62+
repository: "1_7"
63+
token: ${PACKAGECLOUD_TOKEN}
64+
dist: ${OS}/${DIST}
65+
package_glob: build/*.{rpm,deb,dsc}
66+
skip_cleanup: true
67+
on:
68+
branch: master
69+
condition: -n "${OS}" && -n "${DIST}" && -n "${PACKAGECLOUD_TOKEN}"
3470

3571
notifications:
36-
email: true
37-
irc: false
72+
email:
73+
recipients:
74+
- build@tarantool.org
75+
on_success: change
76+
on_failure: always

0 commit comments

Comments
 (0)