-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
125 lines (115 loc) · 3.16 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
sudo: false
language: C
services:
- docker
dist: xenial
cache:
directories:
- $HOME/.cache
git:
depth: 100500
stages:
- test
- name: deploy
# Deploy packages to PackageCloud from tags and master
# see:
# * https://github.com/tarantool/tarantool/issues/3745
# * https://github.com/travis-ci/travis-ci/issues/7780#issuecomment-302389370
# Also skip deploys for pull-requests, api and cron events.
if: (type = push) AND (branch = master OR tag IS present) AND (env(PACKAGECLOUD_TOKEN) IS present)
env:
global:
- PRODUCT=watcher
- ROCK_NAME=watcher
_test: &test
before_install:
- sudo apt-get -y install wget
- wget --no-check-certificate -qO - http://download.tarantool.org/tarantool/$TARANTOOL_VERSION/gpgkey | sudo apt-key add -
- echo "deb http://download.tarantool.org/tarantool/$TARANTOOL_VERSION/ubuntu/ xenial main" |
sudo tee /etc/apt/sources.list.d/tarantool.list
- sudo apt-get -y update
- sudo apt-get install -y tarantool tarantool-dev
- tarantoolctl rocks make
- tarantoolctl rocks install luacheck 0.25.0
- tarantoolctl rocks install avro-schema scm-1
script:
- .rocks/bin/luacheck watcher-scm-1.rockspec
- ./test/watcher.test.lua
_deploy: &deploy
provider: packagecloud
username: iamio
token: ${PACKAGECLOUD_TOKEN}
dist: ${OS}/${DIST}
package_glob: build/*.{deb,rpm}
skip_cleanup: true
on:
branch: master
condition: -n "${OS}" && -n "${DIST}" && -n "${PACKAGECLOUD_TOKEN}"
_packpack: &packpack
stage: deploy
script:
- sudo apt-get install -y tarantool tarantool-dev
- git describe --long
- git clone https://github.com/packpack/packpack.git packpack
- packpack/packpack
- ls -l build/
deploy:
# Deploy packages to PackageCloud
- <<: *deploy
repository: "1_7"
- <<: *deploy
repository: "1_9"
- <<: *deploy
repository: "1_10"
- <<: *deploy
repository: "2x"
- <<: *deploy
repository: "2_2"
jobs:
include:
- <<: *test
env: TARANTOOL_VERSION=1.10
- <<: *test
env: TARANTOOL_VERSION=2x
- <<: *packpack
env: OS=el DIST=6
- <<: *packpack
env: OS=el DIST=7
- <<: *packpack
env: OS=fedora DIST=26
- <<: *packpack
env: OS=fedora DIST=27
- <<: *packpack
env: OS=fedora DIST=28
- <<: *packpack
env: OS=fedora DIST=29
- <<: *packpack
env: OS=ubuntu DIST=trusty
- <<: *packpack
env: OS=ubuntu DIST=xenial
- <<: *packpack
env: OS=ubuntu DIST=bionic
- <<: *packpack
env: OS=debian DIST=jessie
- <<: *packpack
env: OS=debian DIST=stretch
- stage: deploy
script: skip
deploy:
# Deploy packages to PackageCloud
provider: packagecloud
username: ${PACKAGECLOUD_USER}
repository: ${PACKAGECLOUD_REPO}
token: ${PACKAGECLOUD_TOKEN}
dist: ${OS}/${DIST}
package_glob: build/*.{deb,rpm}
skip_cleanup: true
on:
branch: master
condition: -n "${OS}" && -n "${DIST}" && -n "${PACKAGECLOUD_TOKEN}"
notifications:
email:
recipients:
- ${YO_EMAIL}
on_success: change
on_failure: always