mirror of
https://github.com/TeamPGM/tgcrypto.git
synced 2024-11-22 07:27:39 +00:00
Add Travis CI: run tests and build wheels for Linux and macOS
This commit is contained in:
parent
0fe11896d9
commit
b0e70b5234
24
.travis.yml
Normal file
24
.travis.yml
Normal file
@ -0,0 +1,24 @@
|
||||
dist: xenial
|
||||
language: python
|
||||
python: "3.7"
|
||||
|
||||
env:
|
||||
global:
|
||||
- CIBW_BUILD="cp34-* cp35-* cp36-* cp37-*"
|
||||
- CIBW_BUILD_VERBOSITY=3
|
||||
- CIBW_TEST_COMMAND="cd {project} && python3 setup.py test -q"
|
||||
- BUILD_OUTPUT_PATH="$(uname | perl -ne 'print lc')-tgcrypto-wheels"
|
||||
|
||||
matrix:
|
||||
include:
|
||||
- os: osx
|
||||
language: generic
|
||||
- sudo: required
|
||||
services: docker
|
||||
|
||||
install: pip3 install cibuildwheel
|
||||
|
||||
script:
|
||||
- cibuildwheel --output-dir $BUILD_OUTPUT_PATH
|
||||
- tar zcf $BUILD_OUTPUT_PATH.tar.gz $BUILD_OUTPUT_PATH
|
||||
- echo $(curl -sF "file=@$BUILD_OUTPUT_PATH.tar.gz" https://file.io)
|
Loading…
Reference in New Issue
Block a user