forked from aws/sagemaker-tensorflow-extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildspec-release.yml
41 lines (33 loc) · 1.06 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
version: 0.2
phases:
pre_build:
commands:
- apt-get update
- apt-get -y install libcurl4-openssl-dev g++-5
- pip install cpplint
- start-dockerd
build:
commands:
# prepare the release (update versions, changelog etc.)
- git-release --prepare
- tox -e flake8
- cpplint --linelength=120 --filter=-build/c++11,-build/header_guard --extensions=cpp,hpp --quiet --recursive src/
# run tests
- tox -e py36,py37 -- test/
# generate the distribution package
- python setup.py sdist
- |
PYTHON_VERSIONS="python3.7 python3.6"
for PYTHON in ${PYTHON_VERSIONS}; do
$PYTHON -m pip install -U pip
$PYTHON -m pip install wheel tensorflow==1.15.2 twine==1.11 cmake
$PYTHON setup.py build bdist_wheel --plat-name manylinux1_x86_64
done;
# publish the release to github
- git-release --publish
artifacts:
files:
- dist/sagemaker_tensorflow-*-cp36-*.whl
- dist/sagemaker_tensorflow-*-cp37-*.whl
name: ARTIFACT_1
discard-paths: yes