forked from MicrochipTech/cryptoauthlib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
37 lines (35 loc) · 833 Bytes
/
.travis.yml
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
28
29
30
31
32
33
34
35
36
37
language: python
matrix:
include:
# - sudo: required
# services:
# - docker
# env:
# - PIP=pip
# - PYTHON=python
# - CIBW_BEFORE_BUILD_LINUX='yum install cmake -y'
- os: osx
language: generic
compiler: gcc
env:
- PIP=pip2
- PYTHON=python2
script:
- cd python
- git describe --tags >VERSION
- cp -r ../lib .
- cp -r ../third_party .
- cp ../test/atca_utils_sizes.c .
- mkdir app
- cp -r ../app/tng app
- $PIP install wheel
- $PYTHON setup.py sdist --dist-dir wheelhouse
- $PIP install cibuildwheel
- export CIBW_SKIP='cp34-*'
- export CIBW_BUILD_VERBOSITY=3
- cibuildwheel --output-dir wheelhouse
- |
if [[ $TRAVIS_TAG ]]; then
$PIP install twine
$PYTHON -m twine upload wheelhouse/* --skip-existing
fi