forked from NESTCollaboration/nestpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
67 lines (58 loc) · 2.64 KB
/
.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# This file arranges for the build server for tests and automatic
# deployment to PyPI such that we can pip install.
notifications:
email: false
language: generic # This needs to be set for OSX support
# Deploy releases to PyPI for pip installs
# See https://docs.travis-ci.com/user/encryption-keys/
env:
global:
- TWINE_USERNAME=NESTCollaboration
- secure: "IgoVu7BeBx2mfNdq3mUbVyiUKF7DcNNx90lEFu5Du9CSOsO19q/wxIXD4mVNFXDO4uXEUIy/7386hJlDXrKrGeQ4W6jiAuPdQJ2KAhcZ1Jnkg0OQoXDtt8Y3WrldWahH+XNS7msIFGuWflbaTSRsOdnBLgulV8Uzp7cb6YIYyY88a+pZtqMKrhYWP/MyWUvm+JqCcs0lIYO95J0tSmAgpN9iLlThoyNKKLYf2IVRCjfWt4uQFJBrUyw3PleokDSHIEYAz7AFWA+71pjhRrzWFkN0Ot1BaPDCQWRiWlG+hR191lI7Ui8rOmaU5zuvx6Na57vMlG7XLOBOq0vgt1hNy0GqKoyxA4ZPqoMdc2Qqo/bh8G/goNfOsGwm00WfyQRvQiGmsGh/KLOGLfbvD9PzmKf44UEHOEAuBVHUMCKLEI+1W9H3IQhmQ3dGJjYpTLT9R9m+wuDv/cwr64ValJUcWIcYCbtNUefHJD6bpoEzLtm5QFF4jxmE/SMVHActlfWUEbuiggaR55/TT8cuoJ7gf4ZNEu0XI7zhacwpQVSHmWVybG94JTrjQ+CfDxMY1QB0Ilg0QVgoEU8+D4rd0iUprxaWndiw35w7h8DLO82RRVG3xjePtG4G47g/5Z3BmB36NkEDsMBgV2+5IJlolnrImn/fELq5R73LoHl9gnQUpkw="
matrix:
include:
- sudo: required
services:
- docker
env: DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64
language: python
# No 32 bit, see https://github.com/NESTCollaboration/nest/issues/33
# - sudo: required
# services:
# - docker
# env: DOCKER_IMAGE=quay.io/pypa/manylinux1_i686 PRE_CMD=linux32
# language: python
- os: osx
osx_image: xcode9.4
env: PYTHON=2.7
# No longer in conda
# - os: osx
# osx_image: xcode9.4
# env: PYTHON=3.4
- os: osx
osx_image: xcode9.4
env: PYTHON=3.5
- os: osx
osx_image: xcode9.4
env: PYTHON=3.6
- os: osx
osx_image: xcode11
env: PYTHON=3.7
- os: osx
osx_image: xcode9.4
env: PYTHON=3.7
before_install:
- if [ "${TRAVIS_OS_NAME}" == "osx" ]; then source travis/setup-osx.sh; fi
install:
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then docker pull $DOCKER_IMAGE; fi
- if [ "${TRAVIS_OS_NAME}" == "osx" ]; then pip install wheel; fi
script:
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then docker run --rm -v `pwd`:/io $DOCKER_IMAGE $PRE_CMD /io/travis/build-wheels.sh; fi
- if [ "${TRAVIS_OS_NAME}" == "osx" ]; then python setup.py test; fi
- if [ "${TRAVIS_OS_NAME}" == "osx" ]; then python setup.py bdist_wheel; fi
- if [ "${PYTHON}" == "3.7" ]; then python setup.py sdist ; fi
after_success:
- pip install twine
- echo TRAVIS_TAG $TRAVIS_TAG
- if [ ! -z "$TRAVIS_TAG" ] && [ "${TRAVIS_OS_NAME}" == "linux" ]; then python -m twine upload wheelhouse/*.whl; fi
- if [ ! -z "$TRAVIS_TAG" ] && [ "${TRAVIS_OS_NAME}" == "osx" ]; then python -m twine upload dist/*; fi