File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -14,9 +14,10 @@ addons:
1414 - g++-7
1515 - gcc-8
1616 - g++-8
17- matrix :
17+ jobs :
1818 include :
19- - python : 3.6
19+ - stage : unit tests
20+ python : 3.6
2021 env :
2122 - CC=gcc-4.8
2223 - CXX=g++-4.8
@@ -71,6 +72,23 @@ matrix:
7172 - CC=gcc-8
7273 - CXX=g++-8
7374 - TENSORFLOW_VERSION=2.1
75+ - stage : build whls
76+ services : docker
77+ env :
78+ - TWINE_USERNAME=__token__
79+ - CIBW_BUILD="cp36-* cp37-*"
80+ - CIBW_BEFORE_BUILD="pip install tensorflow && sed -i 's/libresolv.so.2\"/libresolv.so.2\", \"libtensorflow_framework.so.2\"/g' \$(find / -name policy.json)"
81+ - CIBW_SKIP="*-win32 *-manylinux_i686"
82+ - CC=gcc-7
83+ - CXX=g++-7
84+ - TENSORFLOW_VERSION=2.1
85+ install :
86+ - python -m pip install twine cibuildwheel==1.1.0 scikit-build
87+ script :
88+ - python -m cibuildwheel --output-dir wheelhouse
89+ - python setup.py sdist
90+ after_success :
91+ - if [[ $TRAVIS_TAG ]]; then python -m twine upload wheelhouse/*; python -m twine upload dist/*.tar.gz; fi
7492before_install :
7593 - pip install --upgrade pip
7694 - pip install --upgrade setuptools
You can’t perform that action at this time.
0 commit comments