This repository has been archived by the owner on Sep 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
56 lines (56 loc) · 2.08 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
alpine: &alpine
stage: Alpine
os: linux
language: shell
script:
- docker build --build-arg PY_VER=$PY_VER --build-arg ALPINE_VER=$ALPINE_VER -t datajoint/pydev -f ./dist/alpine/Dockerfile .
- docker rmi golang:alpine${ALPINE_VER}
- docker rmi python:${PY_VER}-alpine${ALPINE_VER}
- docker tag datajoint/pydev:latest datajoint/pydev:${PY_VER}-alpine${ALPINE_VER}
- docker tag datajoint/pydev:latest datajoint/pydev:${PY_VER}-alpine${ALPINE_VER}-${TRAVIS_COMMIT:0:7}
- sh -c "[ \"$UBUNTU_VER\" = \"16.04\" ] || docker rmi datajoint/pydev:latest"
after_success:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker images
- for i in `docker images --format {{.Repository}}:{{.Tag}}`; do docker push $i; done
ubuntu: &ubuntu
stage: Ubuntu
os: linux
language: shell
script:
- docker build --build-arg UBUNTU_VER=$UBUNTU_VER -t datajoint/pydev -f ./dist/ubuntu/Dockerfile .
- docker rmi golang:alpine3.9
- docker rmi ubuntu:${UBUNTU_VER}
- docker tag datajoint/pydev:latest datajoint/pydev:${PY_VER}
- docker tag datajoint/pydev:latest datajoint/pydev:${PY_VER}-ubuntu${UBUNTU_VER}
- docker tag datajoint/pydev:latest datajoint/pydev:${PY_VER}-ubuntu${UBUNTU_VER}-${TRAVIS_COMMIT:0:7}
- sh -c "[ \"$UBUNTU_VER\" = \"16.04\" ] || docker rmi datajoint/pydev:latest"
after_success:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker images
- for i in `docker images --format {{.Repository}}:{{.Tag}}`; do docker push $i; done
jobs:
include:
- <<: *alpine
env:
- PY_VER: 3.8
- ALPINE_VER: "3.10"
- <<: *alpine
env:
- PY_VER: 3.7
- ALPINE_VER: "3.10"
- <<: *alpine
env:
- PY_VER: 3.6
- ALPINE_VER: "3.10"
- <<: *alpine
env:
- PY_VER: 3.5
- ALPINE_VER: "3.10"
- <<: *ubuntu
env:
- PY_VER: 3
- UBUNTU_VER: 16.04