forked from MacPython/scipy-wheels
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
71 lines (64 loc) · 1.77 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
68
69
70
71
env:
global:
- REPO_DIR=SHTOOLS
- BUILD_COMMIT=master
- PROJECT_SPEC="pyshtools"
- PLAT=x86_64
- NP_BUILD_DEP="numpy"
- CYTHON_BUILD_DEP="Cython"
- NP_TEST_DEP="numpy"
- UNICODE_WIDTH=32
- MB_ML_VER=2014
branches:
only:
- master
language: c
dist: trusty
services: docker
matrix:
include:
- os: linux
env:
- MB_PYTHON_VERSION=3.7
- os: linux
env:
- MB_PYTHON_VERSION=3.8
- os: linux
env:
- MB_PYTHON_VERSION=3.9
- os: osx
language: generic
env:
- MB_PYTHON_VERSION=3.7
- os: osx
language: generic
env:
- MB_PYTHON_VERSION=3.8
- os: osx
language: generic
env:
- MB_PYTHON_VERSION=3.9
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew uninstall --ignore-dependencies gcc;
brew install gcc;
fi
- BUILD_DEPENDS="$NP_BUILD_DEP $CYTHON_BUILD_DEP"
- TEST_DEPENDS="$NP_TEST_DEP"
- source multibuild/common_utils.sh
- source multibuild/travis_steps.sh
- before_install
install:
- build_index_wheel $PROJECT_SPEC # download source from pypi
# - build_wheel $REPO_DIR $PLAT # versioneer does not work with submodules
script:
- install_run $PLAT
after_success:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
pip install --upgrade pyOpenSSL;
fi
- pip install twine
# Upload wheels to PYPI
- twine upload --skip-existing --username $PYPI_USERNAME --password $PYPI_PASSWORD ${TRAVIS_BUILD_DIR}/wheelhouse/*
# Upload wheels to PYPITEST
#- twine upload --repository-url https://test.pypi.org/legacy/ --skip-existing --username $PYPITEST_USERNAME --password $PYPITEST_PASSWORD ${TRAVIS_BUILD_DIR}/wheelhouse/*