-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
30 lines (24 loc) · 898 Bytes
/
.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
sudo: required
language: python
services:
- docker
before_install:
- docker version
- sudo apt-get update
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
- docker version
install:
- pip install -r requirements.txt
script:
- py.test -v test_*.py
after_success:
- docker build -f Dockerfile -t "$DOCKER_USERNAME"/alpine:3.6 --build-arg TAG=3.6 .
- docker build -f Dockerfile -t "$DOCKER_USERNAME"/alpine:3.7 --build-arg TAG=3.7 .
- docker build -f Dockerfile -t "$DOCKER_USERNAME"/alpine:3.8 --build-arg TAG=3.8 .
- docker build -f Dockerfile -t "$DOCKER_USERNAME"/alpine:latest .
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
- docker push "$DOCKER_USERNAME"/alpine:3.6
- docker push "$DOCKER_USERNAME"/alpine:3.7
- docker push "$DOCKER_USERNAME"/alpine:3.8
- docker push "$DOCKER_USERNAME"/alpine:latest
- docker logout