-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
66 lines (54 loc) · 1.4 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
# Build, test and deploy website via Travis
os: linux
dist: xenial
language: generic
branches:
only:
- latest
- dev
addons:
apt:
packages:
- docker-ce
services:
- docker
env:
global:
- DOCKER_COMPOSE_VERSION=1.24.0
matrix:
include:
- env: SUB_IMAGE=dump1090
- env: SUB_IMAGE=adsbexchange
- env: SUB_IMAGE=adsbexchange-mlat
- env: SUB_IMAGE=adsbhub
- env: SUB_IMAGE=flightaware
- env: SUB_IMAGE=flightradar24
- env: SUB_IMAGE=openskynetwork
- env: SUB_IMAGE=planefinder
- env: SUB_IMAGE=virtualradar
before_install:
# exit on error
- set -o errexit
- set -o pipefail
# Update Docker
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
# Pull images to help with cache (allow failure as tag may not exist)
- docker pull "thebiggerguy/docker-ads-b-${SUB_IMAGE}:${TRAVIS_BRANCH}" || true
# setup QEMU
- docker run --rm --privileged multiarch/qemu-user-static:register
script:
- TAG="${TRAVIS_BRANCH}"
docker-compose build
--pull
--build-arg VCS_REF=$(git rev-parse --short HEAD)
"${SUB_IMAGE}"
deploy:
provider: script
script: bash .travis/docker_push.sh
on:
branch:
- master
- dev