forked from Consensys/constellation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (41 loc) · 1.33 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
sudo: required
services:
- docker
env:
global:
- BUILD=${TRAVIS_BUILD_NUMBER}
- CACHE_DIR=$HOME/.cache/docker
matrix:
- TYPE=deb
PLATFORM=ubuntu
DISTRO_VERSION=trusty
- TYPE=deb
PLATFORM=ubuntu
DISTRO_VERSION=xenial
- TYPE=deb
PLATFORM=ubuntu
DISTRO_VERSION=zesty
- TYPE=rpm
PLATFORM=fedora
DISTRO_VERSION=24
- TYPE=rpm
PLATFORM=fedora
DISTRO_VERSION=25
- TYPE=rpm
PLATFORM=fedora
DISTRO_VERSION=26
cache:
directories:
- $CACHE_DIR
before_install:
- ./scripts/travis-ci/upgrade-docker.sh
- ./scripts/travis-ci/attempt-cache-load.sh ${PLATFORM}-${DISTRO_VERSION} ${CACHE_DIR}
install:
- docker build -f build-${PLATFORM}.dockerfile --build-arg DISTRO_VERSION=${DISTRO_VERSION} -t ${PLATFORM}-${DISTRO_VERSION} .
- ./scripts/travis-ci/save-docker-cache.sh ${PLATFORM}-${DISTRO_VERSION} ${CACHE_DIR}
before_script:
- ./scripts/travis-ci/extract-built-package.sh ${PLATFORM}-${DISTRO_VERSION} ${TYPE}
- ./scripts/travis-ci/attempt-cache-load.sh test-${PLATFORM}-${DISTRO_VERSION} ${CACHE_DIR}
script:
- docker build -f test-${PLATFORM}.dockerfile --build-arg DISTRO_VERSION=${DISTRO_VERSION} -t test-${PLATFORM}-${DISTRO_VERSION} .
- ./scripts/travis-ci/save-docker-cache.sh test-${PLATFORM}-${DISTRO_VERSION} ${CACHE_DIR}