forked from aws/sagemaker-inference-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildspec-release.yml
49 lines (37 loc) · 1.09 KB
/
buildspec-release.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
version: 0.2
env:
variables:
LC_ALL: "C.UTF-8"
LANG: "C.UTF-8"
phases:
pre_build:
commands:
- start-dockerd
build:
commands:
# prepare the release
- git-release --prepare
# run linters
- tox -e flake8,twine,pylint
# run format verification
- tox -e black-check
# run unit tests
- tox -e py38,py39,py310 -- test/unit
# build dummy container
- python3 setup.py sdist
- cp dist/sagemaker_inference-*.tar.gz test/container/sagemaker_inference.tar.gz
- cd test/container
- docker build -t sagemaker-inference-toolkit-test:dummy -f dummy/Dockerfile .
- rm sagemaker_inference.tar.gz
# build mxnet container
- docker build -t sagemaker-inference-toolkit-test:mxnet -f mxnet/Dockerfile .
- cd ../..
# run local integration tests
- IGNORE_COVERAGE=- tox -e py38,py39,py310 -- test/integration/local
# publish the release to github
- git-release --publish
artifacts:
files:
- dist/sagemaker_inference-*.tar.gz
name: ARTIFACT_1
discard-paths: yes