-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
68 lines (62 loc) · 1.9 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
67
68
sudo: required
services: docker
language: bash
git:
depth: 1
stages:
- test
- test-images
- tag
env:
global:
- REPO=${DOCKER_USERNAME}/crossbuilder
- TRAVIS_QUALIFIER=-travis-ci
matrix:
- ARCH=armhf
- ARCH=aarch64
before_script:
- uname -a
- curl -LO https://storage.googleapis.com/container-structure-test/v0.2.1/container-structure-test && chmod +x container-structure-test && sudo mv container-structure-test /usr/local/bin/
# - docker --version
# - which docker-compose
# - env
# - sudo apt-get update
# - sudo apt-get install tree
# - tree
script:
- make build TAG=${ARCH} VARIANT=${TRAVIS_QUALIFIER}
# - echo "${DOCKER_PASSWORD}" | docker login -u="${DOCKER_USERNAME}" --password-stdin
- docker images
- make login
- make push TAG=${ARCH} VARIANT=${TRAVIS_QUALIFIER}
# - make test TARGET=${ARCH}
# - docker images
# - container-structure-test -test.v -image ${REPO}:${ARCH} container-tests/tests-${ARCH}.yaml
jobs:
include:
- &test_image
stage: test-images
env:
- ARCH=armhf
script:
- echo "${ARCH}"
- make pull TAG=${ARCH} VARIANT=${TRAVIS_QUALIFIER}
- container-structure-test -test.v -image ${REPO}:${ARCH}${TRAVIS_QUALIFIER} container-tests/tests-${ARCH}.yaml
- <<: *test_image
env:
- ARCH=aarch64
- &tag_image
stage: tag
env:
- ARCH=armhf
script:
- echo "Tagging ${REPO}:${ARCH}"
- make pull TAG=${ARCH} VARIANT=${TRAVIS_QUALIFIER}
# - echo "${DOCKER_PASSWORD}" | docker login -u="${DOCKER_USERNAME}" --password-stdin
- make tag TAG=${ARCH} VARIANT=${TRAVIS_QUALIFIER}
- docker images
- make login
- make push TAG=${ARCH}
- <<: *tag_image
env:
- ARCH=aarch64