Skip to content

Commit 450cc3d

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 e3851e7 commit 450cc3d

File tree

2 files changed

+69
-19
lines changed

2 files changed

+69
-19
lines changed

.travis.yml

Lines changed: 67 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,74 @@ cache: false
77

88
env:
99
matrix:
10-
- OS=el DIST=6 PACK=rpm
11-
- OS=el DIST=7 PACK=rpm
12-
- OS=fedora DIST=23 PACK=rpm
13-
- OS=fedora DIST=24 PACK=rpm
14-
- OS=fedora DIST=rawhide PACK=rpm
15-
- OS=ubuntu DIST=precise PACK=deb
16-
- OS=ubuntu DIST=trusty PACK=deb
17-
- OS=ubuntu DIST=wily PACK=deb
18-
- OS=ubuntu DIST=xenial PACK=deb
19-
- OS=debian DIST=wheezy PACK=deb
20-
- OS=debian DIST=jessie PACK=deb
21-
- OS=debian DIST=stretch PACK=deb
22-
- OS=debian DIST=sid PACK=deb
23-
- PACK=none
10+
- TARGET=test
11+
- OS=el DIST=6
12+
- OS=el DIST=7
13+
- OS=fedora DIST=24
14+
- OS=fedora DIST=25
15+
- OS=ubuntu DIST=precise
16+
- OS=ubuntu DIST=trusty
17+
- OS=ubuntu DIST=xenial
18+
- OS=ubuntu DIST=yakkety
19+
- OS=debian DIST=wheezy
20+
- OS=debian DIST=jessie
21+
- OS=debian DIST=stretch
22+
23+
matrix:
24+
allow_failures:
25+
# - env: OS=el DIST=6
26+
# - env: OS=el DIST=7
27+
# - env: OS=fedora DIST=24
28+
# - env: OS=fedora DIST=25
29+
# - env: OS=ubuntu DIST=precise
30+
# - env: OS=ubuntu DIST=trusty
31+
# - env: OS=ubuntu DIST=xenial
32+
# - env: OS=ubuntu DIST=yakkety
33+
# - env: OS=debian DIST=wheezy
34+
# - env: OS=debian DIST=jessie
35+
# - env: OS=debian DIST=stretch
2436

2537
script:
26-
- git clone https://github.com/tarantool/build.git
27-
- PACKAGECLOUD_REPO=tarantool/1_6 REPO_PREFIX=1.6 ./build/pack/travis.sh
28-
- PACKAGECLOUD_REPO=tarantool/1_7 REPO_PREFIX=1.7 ./build/pack/travis.sh
38+
- git describe --long
39+
- export VERSION=$(git describe --long --always | sed -n 's/^\([0-9\.]*\)-\([0-9]*\)-\([a-z0-9]*\)/\1/p')
40+
- export RELEASE=$(git describe --long --always | sed -n 's/^\([0-9\.]*\)-\([0-9]*\)-\([a-z0-9]*\)/\2/p')
41+
- |
42+
if [ "${TARGET}" = "test" ]; then
43+
./test.sh;
44+
else
45+
git clone https://github.com/packpack/packpack.git packpack;
46+
packpack/packpack;
47+
fi;
48+
49+
before_deploy:
50+
- ls -l build/
51+
52+
deploy:
53+
# Deploy packages to PackageCloud
54+
- provider: packagecloud
55+
username: tarantool
56+
repository: "1_6"
57+
token: ${PACKAGECLOUD_TOKEN}
58+
dist: ${OS}/${DIST}
59+
package_glob: build/*.{rpm,deb}
60+
skip_cleanup: true
61+
on:
62+
branch: master
63+
condition: -n "${OS}" && -n "${DIST}" && -n "${PACKAGECLOUD_TOKEN}"
64+
- provider: packagecloud
65+
username: tarantool
66+
repository: "1_7"
67+
token: ${PACKAGECLOUD_TOKEN}
68+
dist: ${OS}/${DIST}
69+
package_glob: build/*.{rpm,deb}
70+
skip_cleanup: true
71+
on:
72+
branch: master
73+
condition: -n "${OS}" && -n "${DIST}" && -n "${PACKAGECLOUD_TOKEN}"
2974

3075
notifications:
31-
email: true
32-
irc: false
76+
email:
77+
recipients:
78+
79+
on_success: change
80+
on_failure: always

test.sh

100644100755
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/bin/bash
2+
13
curl http://tarantool.org/dist/public.key | sudo apt-key add -
24
echo "deb http://tarantool.org/dist/master/ubuntu/ `lsb_release -c -s` main" | sudo tee -a /etc/apt/sources.list.d/tarantool.list
35
sudo apt-get update > /dev/null

0 commit comments

Comments
 (0)