Commit a2c583f0 authored by Yunhua Koglin's avatar Yunhua Koglin
Browse files

upload to codeartifact

parent ed8502b4
......@@ -30,9 +30,18 @@ phases:
- export REPO_NAME=${PWD##*/}
- export BRANCH_NAME=`echo ${CODEBUILD_SOURCE_VERSION} | awk '{gsub("refs/heads/","");gsub("\\.","-");gsub("[[:space:]]","-")}1' | sed 's/\//-/g' | awk '{print tolower($0)}'`
- pylint ./osdu_aws/storage/*.py --disable=F0001 --errors-only
# run basic build
- python setup.py build
- echo ---- ---- ---- UNIT TESTS ---- ---- ----
- pytest tests --junitxml=report.xml
# publish new artifact to code artifact
- aws codeartifact login --tool twine --domain osdu-dev --domain-owner 888733619319 --repository osdu-python –region us-east-1
- python setup.py sdist bdist_wheel
- twine upload --skip-existing --repository codeartifact dist/osdu-core-lib*.tar.gz
artifacts:
files:
- report.xml
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment