-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
56 lines (51 loc) · 1.46 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
sudo: required
services:
- docker
language: python
python:
- "3.6"
install:
- pip install -U pip
- pip install tox
- pip freeze
script:
- tox
stages:
- lint
- test
- docker-build
- name: release
if: tag IS present
jobs:
include:
- env: TOXENV=py36
- stage: lint
env: TOXENV=lint
- stage: docker-build
env: TOXENV=docker-build ARCH=aarch64
- stage: docker-build
env: TOXENV=docker-build ARCH=i386
- stage: docker-build
env: TOXENV=docker-build ARCH=amd64
- stage: docker-build
env: TOXENV=docker-build ARCH=armhf
- stage: release
env: TOXENV=docker-build ARCH=aarch64
script:
- echo "$DOCKER_PASSWORD" | docker login -u ${DOCKER_USERNAME} --password-stdin
- bash scripts/docker-push.sh ${TRAVIS_BUILD_DIR}
- stage: release
env: TOXENV=docker-build ARCH=i386
script:
- echo "$DOCKER_PASSWORD" | docker login -u ${DOCKER_USERNAME} --password-stdin
- bash scripts/docker-push.sh ${TRAVIS_BUILD_DIR}
- stage: release
env: TOXENV=docker-build ARCH=amd64
script:
- echo "$DOCKER_PASSWORD" | docker login -u ${DOCKER_USERNAME} --password-stdin
- bash scripts/docker-push.sh ${TRAVIS_BUILD_DIR}
- stage: release
env: TOXENV=docker-build ARCH=armhf
script:
- echo "$DOCKER_PASSWORD" | docker login -u ${DOCKER_USERNAME} --password-stdin
- bash scripts/docker-push.sh ${TRAVIS_BUILD_DIR}