From b0e70b5234d996b67097071fa7449dd0e619f2b7 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Fri, 14 Jun 2019 19:37:52 +0200 Subject: [PATCH] Add Travis CI: run tests and build wheels for Linux and macOS --- .travis.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..8fccb37 --- /dev/null +++ b/.travis.yml @@ -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)