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
|
version: 0.2
# this image assumes Ubuntu 14.04 base image
phases:
install:
commands:
- sudo apt-get update -y
- sudo apt-get install python3 python3-pip -y
- python3 -m pip install --user --upgrade pip
- python3 -m pip install --user --upgrade twine setuptools wheel boto3 PyOpenSSL six
pre_build:
commands:
- export CC=gcc
build:
commands:
- echo Build started on `date`
- mkdir dist
- cp -rv $CODEBUILD_SRC_DIR_aws_crt_python_windows/dist/* dist/
- cp -rv $CODEBUILD_SRC_DIR_aws_crt_python_manylinux1/dist/* dist/
- cp -rv $CODEBUILD_SRC_DIR_aws_crt_python_musllinux1_1/dist/* dist/
- cp -rv $CODEBUILD_SRC_DIR_aws_crt_python_osx/* dist/
- ls -la dist/
- cd aws-crt-python
- python3 continuous-delivery/pull-pypirc.py alpha
- python3 -m twine upload -r testpypi ../dist/*
post_build:
commands:
- echo Build completed on `date`
|