-
Notifications
You must be signed in to change notification settings - Fork 9
/
.travis.yml
33 lines (33 loc) · 1.03 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
sudo: required
dist: bionic
language: python
env:
global:
- VERSION=1.${TRAVIS_BUILD_NUMBER}
matrix:
- ARCH=rpi
GOIMG=raspbian/stretch
DOCKER_BUILD=mastermindg/docker-flow-proxy:rpi-${VERSION}
DOCKERFILE=test.Dockerfile
services:
- xvfb # X virtual framebuffer. Run the graphical application without display them while also having the ability to take screenshots.
- docker
cache:
directories:
- /usr/share/t_system
script:
# prepare qemu
- docker run --rm --privileged multiarch/qemu-user-static:register --reset
# build image
- docker build -f test.Dockerfile -t t_system/test:"$TRAVIS_COMMIT" -t t_system/test:latest . --cache-from t_system/test:latest
# push image
- >
if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
docker push t_system/test:"$TRAVIS_COMMIT"
docker push t_system/test:latest
fi
after_success:
— coveralls
notifications:
on_success: change
on_failure: change # `always` will be the setting once code changes slow down