forked from aws/sagemaker-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuildspec-release.yml
More file actions
34 lines (26 loc) · 855 Bytes
/
buildspec-release.yml
File metadata and controls
34 lines (26 loc) · 855 Bytes
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
version: 0.2
phases:
build:
commands:
# prepare the release (update versions, changelog etc.)
- git-release --prepare
# run linters
- tox -e flake8,twine,pylint
# run format verification
- tox -e black-check
# run unit tests
- AWS_ACCESS_KEY_ID= AWS_SECRET_ACCESS_KEY= AWS_SESSION_TOKEN=
AWS_CONTAINER_CREDENTIALS_RELATIVE_URI= AWS_DEFAULT_REGION=
tox -e py27,py36 -- test/unit
# run functional tests
- $(aws ecr get-login --no-include-email --region us-west-2)
- IGNORE_COVERAGE=- tox -e py27,py36 -- test/functional
# generate the distribution package
- python3 setup.py sdist
# publish the release to github
- git-release --publish
artifacts:
files:
- dist/sagemaker_containers*.tar.gz
name: ARTIFACT_1
discard-paths: yes