-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml-disabled
53 lines (49 loc) · 1.77 KB
/
.travis.yml-disabled
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
dist: bionic
os: linux
language: bash
services:
- docker
addons:
apt:
sources:
- sourceline: 'deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable'
key_url: 'https://download.docker.com/linux/ubuntu/gpg'
packages:
- docker-ce
update: true
env:
global:
- IMAGE=drpsychick/dnsmasq
- PLATFORMS=linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6
- DOCKER_CLI_EXPERIMENTAL=enabled
jobs:
- ALPINE_VERSION=latest
- ALPINE_VERSION=3.13
- ALPINE_VERSION=3.12
- ALPINE_VERSION=3.11
- ALPINE_VERSION=3
before_script:
# upgrade to latest docker-ce from repo
- sudo apt-get -y upgrade docker-ce
# enable experimental in docker daemon
- docker_conf=$(sudo cat /etc/docker/daemon.json |jq '. + {"experimental":"enabled"}')
- echo "$docker_conf" | sudo tee /etc/docker/daemon.json
- sudo systemctl reload-or-restart docker.service || sudo systemctl status docker.service
- docker version
- docker buildx version
# build the image for all platforms
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- docker buildx create --name xbuilder --use
- docker buildx inspect --bootstrap
- docker buildx build --progress plain --platform $PLATFORMS --build-arg ALPINE_VERSION=$ALPINE_VERSION -t $IMAGE .
# load a single image for local tests, see https://github.com/docker/buildx/issues/59
- docker buildx build --progress plain --platform linux/amd64 -t $IMAGE --load .
- export DNSMASQ_VERSION=$(docker run --rm $IMAGE --version |head -n1 |sed -e 's/Dnsmasq version \([0-9.]*\) *Copyright.*/\1/')
script:
# test always passes
- echo "Alpine $ALPINE_VERSION Dnsmasq $DNSMASQ_VERSION"
- >
echo "Running tests...";
docker run $IMAGE --version
after_success:
- bash deploy.sh