File: publish_to_test_pypi.yml

package info (click to toggle)
aws-crt-python 0.24.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 75,932 kB
  • sloc: ansic: 418,984; python: 23,626; makefile: 6,035; sh: 4,075; ruby: 208; java: 82; perl: 73; cpp: 25; xml: 11
file content (27 lines) | stat: -rw-r--r-- 949 bytes parent folder | download | duplicates (2)
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`