-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (41 loc) · 1.21 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
# safelist
branches:
only:
- system_python
dist: trusty
language: python
group: edge
python:
- "3.6"
services:
- docker
addons:
apt:
packages:
- docker-ce
env:
global:
- SERVICE0="diana"
- SERVICE1="diana-ai"
matrix:
- ARCH_TAG="amd64"
# - ARCH_TAG="arm32v7"
# - ARCH_TAG="arm64v8"
before_install:
# Put docker into "experimental" for manifest function
- mkdir -p $HOME/.docker
- echo '{"experimental":"enabled"}' > "$HOME/.docker/config.json"
# Git the docker-manifest package
- pip install pyyaml git+https://github.com/derekmerck/docker-manifest
# Register qemu as cross-compiler
- docker run --rm --privileged multiarch/qemu-user-static:register --reset
install:
# Build images
- docker-compose build $SERVICE0-$ARCH_TAG $SERVICE1-$ARCH_TAG
script:
- docker run --rm $SERVICE1-$ARCH_TAG python3 /opt/diana/apps/cli/diana-classify.py -m /opt/diana/tests/resources/chest_cr/pose_weights.h5 -d /opt/diana/tests/resources/chest_cr/CR00.dcm
after_success:
# Login to docker for push
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
# manifest and push
- python3 -m docker-manifest -d $DOCKER_USERNAME $SERVICE0 $SERVICE1