forked from letmaik/lensfunpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (40 loc) · 1.26 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
language: generic
env:
global:
- PYPI_USER=letmaik
matrix:
include:
- os: linux
services:
- docker
env: DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64
- os: osx
# use oldest available image to be as compatible as possible when producing wheels
osx_image: xcode6.4 # = OS X 10.10
# (NumPy 1.7.2 has no macOS wheels)
env: PYTHON_VERSION=2.7 NUMPY_VERSION=1.7.1
- os: osx
osx_image: xcode6.4
env: PYTHON_VERSION=3.4 NUMPY_VERSION=1.8.*
- os: osx
osx_image: xcode6.4
env: PYTHON_VERSION=3.5 NUMPY_VERSION=1.9.*
- os: osx
osx_image: xcode6.4
env: PYTHON_VERSION=3.6 NUMPY_VERSION=1.11.*
install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then docker pull $DOCKER_IMAGE; fi
script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then docker run --rm -e TRAVIS_TAG -e PYPI_USER -e PYPI_PASS -v `pwd`:/io $DOCKER_IMAGE /io/travis/build_linux.sh; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then travis/build_macos.sh; fi
after_success:
- ls dist/
- ls build/
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard
local_dir: build/sphinx/html
on:
tags: true
condition: $PYTHON_VERSION = '3.6' && $TRAVIS_OS_NAME == 'osx'