forked from tarantool/luatest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
109 lines (100 loc) · 2.68 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
os: linux
dist: xenial
language: shell
services:
- docker
env:
global:
- ROCK_NAME=luatest
- PRODUCT=luatest
stages:
- test
- name: deploy
if: (type = push) AND (branch = master OR tag IS present)
before_script:
- git describe --long
_test: &test
before_install:
- curl -L https://tarantool.io/installer.sh | VER=$TARANTOOL_VERSION sudo -E bash
- sudo apt install tarantool-dev
script:
- cmake .
- make lint test_with_coverage_report
_deploy_to_packagecloud: &deploy_to_packagecloud
provider: packagecloud
username: tarantool
token: $PACKAGECLOUD_TOKEN
dist: $OS/$DIST
package_glob: build/*.{rpm,deb}
skip_cleanup: true
on:
tags: true
# Pack and deploy packages to PackageCloud
_packpack: &packpack
stage: deploy
# Build packages only at `pr` stage, skip at `push` stage
if: branch = master
script:
- git clone https://github.com/packpack/packpack.git
- packpack/packpack
- ls -l build/
deploy:
- <<: *deploy_to_packagecloud
repository: '1_10'
- <<: *deploy_to_packagecloud
repository: '2x'
- <<: *deploy_to_packagecloud
repository: '2_2'
- <<: *deploy_to_packagecloud
repository: '2_3'
jobs:
include:
- <<: *test
env: TARANTOOL_VERSION=1.10
- <<: *test
env: TARANTOOL_VERSION=2.3
- stage: deploy
name: Publish rockspecs
script: skip
deploy:
- provider: script
script: curl --fail -X PUT -F rockspec=@$ROCK_NAME-scm-1.rockspec
https://$ROCKS_USERNAME:$ROCKS_PASSWORD@rocks.tarantool.org
- on:
tags: true
all_branches: true
provider: script
script: cat $ROCK_NAME-scm-1.rockspec |
sed -E
-e "s/branch = '.+'/tag = '$TRAVIS_TAG'/g"
-e "s/version = '.+'/version = '$TRAVIS_TAG-1'/g" |
curl --fail -X PUT -F "rockspec=@-;filename=$ROCK_NAME-$TRAVIS_TAG-1.rockspec"
https://$ROCKS_USERNAME:$ROCKS_PASSWORD@rocks.tarantool.org
- <<: *packpack
env: OS=el DIST=7
- <<: *packpack
env: OS=el DIST=8
stage: test # test rpm packaging
- <<: *packpack
env: OS=fedora DIST=30
- <<: *packpack
env: OS=ubuntu DIST=trusty
- <<: *packpack
env: OS=ubuntu DIST=xenial
- <<: *packpack
env: OS=ubuntu DIST=bionic
stage: test # test deb packaging
- <<: *packpack
env: OS=ubuntu DIST=eoan
- <<: *packpack
env: OS=debian DIST=jessie
- <<: *packpack
env: OS=debian DIST=stretch
- <<: *packpack
env: OS=debian DIST=buster
notifications:
email:
recipients:
- build@tarantool.org
on_success: change
on_failure: always