-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (37 loc) · 1.06 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
dist: trusty
language: python
group: edge
python:
- "3.6"
services:
- docker
addons:
apt:
packages:
- docker-ce
env:
global:
- SERVICE0="conda"
- SERVICE1="keras-tf"
matrix:
- PYTHON_MAJOR="2" ARCH_TAG="amd64"
- PYTHON_MAJOR="3" ARCH_TAG="amd64"
# - PYTHON_MAJOR="2" ARCH_TAG="arm32v7"
# - PYTHON_MAJOR="3" ARCH_TAG="arm32v7"
# - PYTHON_MAJOR="3" ARCH_TAG="arm64v8"
before_install:
# Put docker into "experimental" for manifest function
- mkdir -p $HOME/.docker
- echo '{"experimental":"enabled"}' > "$HOME/.docker/config.json"
- pip3 install pyyaml # for manifest-it
# Register qemu as cross-compiler
- docker run --rm --privileged multiarch/qemu-user-static:register --reset
install:
# Build image
- docker-compose build $SERVICE0-py$PYTHON_MAJOR-$ARCH_TAG $SERVICE1-py$PYTHON_MAJOR-$ARCH_TAG
script: true
after_success:
# Login to docker for push
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
# manifest and push
- python3 manifest-it.py conda-xarch.manifest.yml