-
Notifications
You must be signed in to change notification settings - Fork 147
/
.travis.yml
67 lines (61 loc) · 1.57 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
language: c
compiler:
- clang
- gcc
services:
- docker
env:
- TARGET=test
- OS=el DIST=6
- OS=el DIST=7
- OS=fedora DIST=24
- OS=fedora DIST=25
- OS=ubuntu DIST=precise
- OS=ubuntu DIST=trusty
- OS=ubuntu DIST=xenial
- OS=ubuntu DIST=yakkety
- OS=debian DIST=wheezy
- OS=debian DIST=jessie
- OS=debian DIST=stretch
matrix:
exclude:
- env: OS=el DIST=6
compiler: clang
- env: OS=el DIST=7
compiler: clang
- env: OS=fedora DIST=24
compiler: clang
- env: OS=fedora DIST=25
compiler: clang
- env: OS=ubuntu DIST=precise
compiler: clang
- env: OS=ubuntu DIST=trusty
compiler: clang
- env: OS=ubuntu DIST=xenial
compiler: clang
- env: OS=ubuntu DIST=yakkety
compiler: clang
- env: OS=ubuntu DIST=zesty
compiler: clang
- env: OS=debian DIST=wheezy
compiler: clang
- env: OS=debian DIST=jessie
compiler: clang
- env: OS=debian DIST=stretch
compiler: clang
install: skip
script:
- if [ "$TARGET" == "test" ]; then make -j2 && make clean; fi
- if [ -n "$TRAVIS_TAG" ] && [ -n "$OS" ]; then git clone https://github.com/packpack/packpack.git packpack; fi
- if [ -n "$TRAVIS_TAG" ] && [ -n "$OS" ]; then VERSION=${TRAVIS_TAG:1} packpack/packpack; fi
deploy:
provider : packagecloud
username : ${PACKAGECLOUD_USER}
repository : ${PACKAGECLOUD_REPO}
token : ${PACKAGECLOUD_TOKEN}
dist : ${OS}/${DIST}
package_glob : build/*.{deb,rpm}
skip_cleanup : true
on :
tags: true
condition : -n "${OS}"