@@ -9,8 +9,6 @@ branches:
99# all jobs should enable the release flag for compiler optimizations
1010env :
1111 global :
12- - WHITENOISE_RELEASE=True
13- - PROTO_VERSION=3.11.4
1412 # Note: Without the IS_CI_BUILD set to True, the python tests will stall
1513 - IS_CI_BUILD=True
1614 - TWINE_USERNAME=__token__
@@ -27,22 +25,19 @@ jobs:
2725 # - XBuild pypi OS X wheel
2826 # -------------------------------------------------------
2927 - name : Build/Test Python package
30- if : branch = skipit
3128 os : osx
3229 osx_image : xcode11 # python3.7 comes installed with xcode11 image
3330 language : rust
3431 rust : stable
3532 install :
3633 - python3 -V; pip3 -V # for debugging
3734 - pip3 install -U setuptools
38- - pip3 install -r requirements/ci-osx_build.txt
3935 script :
36+ - pip3 install -r requirements/dev.txt
4037 # Build Rust libraries + python binaries + OS X wheel
41- - bash scripts/ci-osx_build_wheel .sh;
38+ - bash scripts/build_wheel .sh;
4239 # Run python tests (build stops if these fail)
4340 - python3 -m pytest -x -v;
44- # Clean up the wheel
45- - bash scripts/ci-osx_link_wheel.sh;
4641 # Build the python docs
4742 - bash scripts/build_docs.sh;
4843 deploy :
@@ -56,19 +51,38 @@ jobs:
5651 keep_history : true
5752 target_branch : gh-pages
5853 on :
59- branch : 1-cleanup
60- # branch: test-branch
61- # -------------------------------------------------------
62- # Deploy to pypi; credentials are in env variables
63- # - TWINE_USERNAME, TWINE_PASSWORD (using token)
64- # -------------------------------------------------------
65- # - provider: script
66- # skip_cleanup: true
67- # script:
68- # python3 -m pip install --upgrade pip && python3 -m pip install twine && python3 -m twine upload --non-interactive --verbose --skip-existing wheelhouse/*
69- # on:
70- # branch: master
71- # #branch: test-branch
54+ branch : master
7255
73- # Manylinux CI build in progress
74- #
56+ - name : Deploy production wheel
57+ if : branch = xskip-job
58+ os : osx
59+ osx_image : xcode11 # python3.7 comes installed with xcode11 image
60+ language : rust
61+ rust : stable
62+ services :
63+ - docker
64+ addons :
65+ apt :
66+ update : true
67+ packages :
68+ - python3-pip
69+ env :
70+ - DOCKER_IMAGE=quay.io/pypa/manylinux2010_x86_64
71+ install :
72+ - docker pull $DOCKER_IMAGE
73+ - chmod +x scripts/build_binaries_manylinux.sh
74+ script :
75+ - docker run --rm -e PLAT=$PYTHON_PLAT -v `pwd`:/io $DOCKER_IMAGE /io/scripts/build_binaries_manylinux.sh
76+ - cp whitenoise-core/target/release/libwhitenoise_validator.so tmp_binaries
77+ - cp whitenoise-core/target/release/libwhitenoise_runtime.so tmp_binaries
78+ - python3 scripts/code_generation.py
79+ - cp tmp_binaries/libwhitenoise_validator.so opendp/whitenoise/core/lib
80+ - cp tmp_binaries/libwhitenoise_runtime.so opendp/whitenoise/core/lib
81+ - python3 setup.py bdist_wheel -d ./wheelhouse
82+ deploy :
83+ skip_cleanup : true
84+ provider : script
85+ script :
86+ python3 -m pip install --upgrade pip && python3 -m pip install twine && python3 -m twine upload --verbose --skip-existing wheelhouse/*
87+ on :
88+ branch : develop
0 commit comments