generated from IBM/repo-template
-
Notifications
You must be signed in to change notification settings - Fork 13
/
.travis.yml
58 lines (54 loc) · 2.18 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
58
dist: bionic
language: python
python:
- "3.8"
# Additional services for testing and deployment
services:
- docker
before_install:
- sudo apt-get update
- sudo apt-get install qemu binfmt-support qemu-user-static # Install the qemu packages
- bash scripts/update_docker.sh
stages:
- name: testing
- name: verify-versions
- name: deploy
if: (branch IN (develop, main) AND NOT (type IN (pull_request))) OR (tag IS present)
jobs:
include:
- stage: testing
script:
- cd ops-implementations/ads-ml-service
- cp ../../open-prediction-service.yaml app/gen/tmp.schemas.ops.yaml
- bash scripts/tests.sh
name: "ads-ml-service-test"
- script:
- cd ops-implementations/wml-service
- pip3 install --quiet tox
- tox
name: "wml-proxy-test"
- script:
- cd ops-implementations/sagemaker-service
- pip3 install --quiet tox
- tox
name: "sagemaker-proxy-test"
- stage: deploy
script: ops-implementations/deploy.sh "${TARGET}" "$(grep -m 1 -oP -e "__version__ = ['\"]\K([^'\"]*)(?=['\"])" ops-implementations/ads-ml-service/app/version.py)" "${PLATFORM}"
env:
- TARGET=ads-ml-service
- PLATFORM=linux/amd64
- script: ops-implementations/deploy.sh "${TARGET}" "$(grep -m 1 -oP -e "__version__ = ['\"]\K([^'\"]*)(?=['\"])" ops-implementations/sagemaker-service/openapi_server/version.py)" "${PLATFORM}"
env:
- TARGET=sagemaker-service
- PLATFORM=linux/amd64
- script: ops-implementations/deploy.sh "${TARGET}" "$(grep -m 1 -oP -e "__version__ = ['\"]\K([^'\"]*)(?=['\"])" ops-implementations/wml-service/swagger_server/version.py)" "${PLATFORM}"
env:
- TARGET=wml-service
- PLATFORM=linux/amd64
- script:
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes # This step will execute the registering scripts
- ops-implementations/deploy.sh "${TARGET}" "$(grep -m 1 -oP -e "__version__ = ['\"]\K([^'\"]*)(?=['\"])" ops-implementations/ads-ml-service/app/version.py)" "${PLATFORM}"
env:
- TARGET=ads-ml-service
- DOCKER_NAMESPACE=decisions-tooling/aarch64
- PLATFORM=linux/arm64