-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
44 lines (36 loc) · 1.2 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
language: python
if: branch = master OR tag IS present
python: 3.6
dist: bionic
services:
- docker
before_script:
- echo "$QUAY_PASSWORD" | docker login -u "$QUAY_USERNAME" --password-stdin quay.io
- pip show rkd
jobs:
allow_failures:
env:
- CAN_FAIL=true
include:
- stage: Run unit tests on Python 3.6
python: 3.6
script:
- pip install -r ./requirements-dev.txt
- tox -e py36
- stage: Run unit tests on Python 3.7
python: 3.7
script:
- pip install -r ./requirements-dev.txt
- tox -e py37
- stage: Run unit tests on Python 3.8
python: 3.8
script:
- pip install -r ./requirements-dev.txt
- tox -e py38
- stage: Release
python: 3.7
script: "PYTHONUNBUFFERED=1 rkd :release:pypi"
- stage: Build recent x86_64 image
script: "PYTHONUNBUFFERED=1 GIT_TAG=${TRAVIS_TAG} rkd :release:docker:x86"
- stage: Build recent ARM image
script: "PYTHONUNBUFFERED=1 GIT_TAG=${TRAVIS_TAG} travis_wait 30 rkd :release:docker:arm"