forked from aws/sagemaker-tensorflow-extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildspec-release.yml
45 lines (37 loc) · 1.38 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
version: 0.2
phases:
pre_build:
commands:
- apt-get update
- apt-get -y install libcurl4-openssl-dev g++-9
- python3.10 -m pip install cpplint==1.5.5
# - python3.11 -m pip install cpplint==1.5.5
- start-dockerd
build:
commands:
# prepare the release (update versions, changelog etc.)
- git-release --prepare
- tox -e flake8
- python3.10 -m cpplint --linelength=120 --filter=-build/c++11,-build/header_guard --extensions=cpp,hpp --quiet --recursive src/
# - python3.11 -m cpplint --linelength=120 --filter=-build/c++11,-build/header_guard --extensions=cpp,hpp --quiet --recursive src/
# run tests
- tox -e py39,py310 -- test/
# - tox -e py38,py39,py310,py311 -- test/
# generate the distribution package
- python setup.py sdist
- |
PYTHON_VERSIONS="python3.10 python3.9"
for PYTHON in ${PYTHON_VERSIONS}; do
$PYTHON -m pip install -U pip
$PYTHON -m pip install wheel tensorflow==2.14.0 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-*-cp39-*.whl
- dist/sagemaker_tensorflow-*-cp310-*.whl
# - dist/sagemaker_tensorflow-*-cp311-*.whl
name: ARTIFACT_1
discard-paths: yes