-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
47 lines (39 loc) · 1.22 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
language: python
jobs:
include:
- name: Debian 11 bullseye (amd64)
os: linux
env:
- DEBIAN_RELEASE: bullseye
- DEBIAN_ARCH: amd64
services:
- docker
- name: Debian 11 bullseye (arm64)
os: linux
env:
- DEBIAN_RELEASE: bullseye
- DEBIAN_ARCH: arm64
services:
- docker
before_install:
- if [ "$DEBIAN_ARCH" != amd64 ]; then docker run --rm --privileged multiarch/qemu-user-static:register --reset; fi
- |-
if [ -f docker_images/${DEBIAN_RELEASE}-${DEBIAN_ARCH}.tar.gz ]; then
gzip -dc docker_images/${DEBIAN_RELEASE}-${DEBIAN_ARCH}.tar.gz | docker load
else
docker build -t docker-deb-builder:${DEBIAN_RELEASE}-${DEBIAN_ARCH} -f docker-deb-builder/Dockerfile-debian-${DEBIAN_RELEASE}-${DEBIAN_ARCH} .
fi
- pip3 install cloudsmith-cli
before_cache:
- |-
if [ ! -f docker_images/${DEBIAN_RELEASE}-${DEBIAN_ARCH}.tar.gz ]; then
docker save docker-deb-builder:${DEBIAN_RELEASE}-${DEBIAN_ARCH} | gzip > docker_images/${DEBIAN_RELEASE}-${DEBIAN_ARCH}.tar.gz
fi
cache:
directories:
- docker_images
install:
- ./scan-and-build.sh
- ./remove-outdated.sh
script:
- ./summary.sh