-
Notifications
You must be signed in to change notification settings - Fork 85
/
Copy path.travis.yml
185 lines (178 loc) · 5.74 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
sudo: required
language: cpp
dist: bionic
group: edge
matrix:
include:
# VM-based 64-bit skylake build (GCC)
- os: linux
dist: bionic
sudo: required
compiler: gcc
env:
- DISTRIBUTION=ubuntu/bionic
- DEPLOY_PACKAGE=true
- DEPLOY_IMAGE=true
- GENERIC_BUILD=false
script:
- bash ./CI/runci.sh ubuntu-18.04
- source ./CI/prepare-docker-image.sh
# VM-based 64-bit generic build (GCC)
- os: linux
dist: bionic
sudo: required
compiler: gcc
env:
- DISTRIBUTION=ubuntu/bionic
- DEPLOY_PACKAGE=false
- DEPLOY_IMAGE=true
- GENERIC_BUILD=true
script:
- bash ./CI/runci.sh ubuntu-18.04
- source ./CI/prepare-docker-image.sh
if: branch = master OR tag IS present
# VM-based 64-bit build (Clang)
- os: linux
dist: bionic
sudo: required
compiler: clang
env:
- DISTRIBUTION=ubuntu/bionic
- DEPLOY_PACKAGE=false
- DEPLOY_IMAGE=false
- GENERIC_BUILD=false
#- DEBUG_BUILD=true
script:
- bash ./CI/runci.sh ubuntu-18.04
if: branch = master OR tag IS present
# VM-based 64-bit WAL check build (GCC)
- os: linux
dist: bionic
sudo: required
compiler: gcc
env:
- DISTRIBUTION=ubuntu/bionic
- DEPLOY_PACKAGE=false
- DEPLOY_IMAGE=false
- GENERIC_BUILD=false
#- DEBUG_BUILD=true
script:
- bash ./CI/runci.sh ubuntu-18.04-wal
# Container based 32-bit Xenial build
- os: linux
dist: trusty
sudo: required
services:
- docker
env:
- DISTRIBUTION=ubuntu/xenial
- DEPLOY_PACKAGE=false
- DEPLOY_IMAGE=false
- GENERIC_BUILD=false
before_install:
- docker pull i386/ubuntu:xenial
script:
- echo "Disabled"
# Disabled because build fails due to timeout because of the slow ubuntu mirror
#- docker run --log-driver=none -a stdin -a stdout -a stderr --rm -ti -u root -e FORCE_ARCH=i386 -e GENERIC_BUILD='false' -v "${TRAVIS_BUILD_DIR}":/opt/akumuli -w /opt/akumuli i386/ubuntu:xenial ./CI/runci.sh ubuntu-16.04
# Container based 64-bit Xenial build
- os: linux
dist: bionic
sudo: required
services:
- docker
env:
- DISTRIBUTION=ubuntu/xenial
- DEPLOY_PACKAGE=true
- DEPLOY_IMAGE=false
- GENERIC_BUILD=false
before_install:
- sudo docker pull ubuntu:16.04
script:
- sudo docker run --log-driver=none -a stdin -a stdout -a stderr --rm -ti -u root -e GENERIC_BUILD='false' -v "${TRAVIS_BUILD_DIR}":/opt/akumuli -w /opt/akumuli ubuntu:16.04 ./CI/runci.sh ubuntu-16.04
if: branch = master OR tag IS present
# Container based 64-bit Debian Stretch build
- os: linux
dist: bionic
sudo: required
services:
- docker
env:
- DISTRIBUTION=debian/stretch
- DEPLOY_PACKAGE=true
- DEPLOY_IMAGE=false
- GENERIC_BUILD=false
before_install:
- sudo docker pull debian:stretch
script:
- sudo docker run --log-driver=none -a stdin -a stdout -a stderr --rm -ti -u root -e GENERIC_BUILD='false' -v "${TRAVIS_BUILD_DIR}":/opt/akumuli -w /opt/akumuli debian:stretch ./CI/runci.sh debian-stretch
if: branch = master OR tag IS present
# Container based 64-bit Debian Jessie build
- os: linux
dist: bionic
sudo: required
services:
- docker
env:
- DISTRIBUTION=debian/jessie
- DEPLOY_PACKAGE=true
- DEPLOY_IMAGE=false
- GENERIC_BUILD=false
before_install:
- sudo docker pull debian:jessie
script:
- sudo docker run --log-driver=none -a stdin -a stdout -a stderr --rm -ti -u root -e GENERIC_BUILD='false' -v "${TRAVIS_BUILD_DIR}":/opt/akumuli -w /opt/akumuli debian:jessie ./CI/runci.sh debian-jessie
if: branch = master OR tag IS present
# Container based 64-bit CentOS 7 build
- os: linux
dist: bionic
sudo: required
services:
- docker
env:
- DISTRIBUTION=el/7
- DEPLOY_PACKAGE=true
- DEPLOY_IMAGE=false
- GENERIC_BUILD=false
before_install:
- sudo docker pull centos:centos7
script:
- sudo docker run --log-driver=none -a stdin -a stdout -a stderr --rm -ti -u root -e GENERIC_BUILD='false' -v "${TRAVIS_BUILD_DIR}":/opt/akumuli -w /opt/akumuli centos:centos7 ./CI/runci.sh centos7
if: branch = master OR tag IS present
env:
global:
- secure: DHaTv1euwlpVgePMbw0LEBihzru8VP5RmY7/TUdEpS1dBlJx6nyT6lgmyRcdb19RmTBUXZl1hm7Zu8TfqJJgfty4o9EnpLfTHbY7JwglSqbOo7b/FNAa1Qi0RhVDwc/WvFJDYBUvOtPtVQbPtVtECXm8PZcRqfOuEjkbHmmnIk8=
# Ship Akumuli logs to the S3 bucket
addons:
artifacts:
provider: s3
s3_region: us-west-2
access_key_id: "$ARTIFACTS_KEY"
secret_access_key: "$ARTIFACTS_SECRET"
bucket: "$ARTIFACTS_BUCKET"
acl: public_read
paths:
- "${TRAVIS_BUILD_DIR}/akumuli.log"
# Packagecloud deployment configuration
deploy:
provider: packagecloud
repository: Akumuli
username: Lazin
dist: $DISTRIBUTION
package_glob: "${TRAVIS_BUILD_DIR}/build/*.{deb,rpm}"
token:
secure: TNIqxlIMy4PUJIn65Yl7dyr1A+TVCMSCOUZOd/XlqlmjntFbxdBKY2M+bX5Cc+uOvNNxFU0m0/RpxYibeN8Juo3BTV0B8YJ4Hjr60F+Sag0UFvvDmxd4vzK+rm+XbYyyx0ukO2ETUxEqxaJaEi0CJPEvEiIeXyJAzIytoVNukkM=
on:
tags: true
condition: $DEPLOY_PACKAGE = "true"
skip_cleanup: true
after_success:
# Push docker image. Docker image should be created and the variables REPO,
# VERSION, and TAG should exist.
- if [[ $TRAVIS_PULL_REQUEST == "false" && $DEPLOY_IMAGE == "true" ]]; then
echo "Pushing to $REPO $VERSION $TAG";
sudo docker login -u "$DOCKER_USER" -p "$DOCKER_PASS";
sudo docker push $REPO:$VERSION-$TAG;
fi
after_failure:
- echo "Build failed"