forked from JuliaPy/pyjulia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
63 lines (63 loc) · 2.09 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
matrix:
# Python environment is not functional on OS X
include:
- language: python
python: 2.7
env: JULIA_VERSION=juliareleases
os: linux
- language: python
python: 2.7
env: JULIA_VERSION=julianightlies
os: linux
- language: python
python: 3.5
env: JULIA_VERSION=juliareleases
os: linux
- language: python
python: 3.5
env: JULIA_VERSION=julianightlies
os: linux
- language: python
python: 3.5
env:
- JULIA_VERSION=julianightlies
- CROSS_VERSION=1
os: linux
- language: generic
env:
- PYTHON_VERSION=py2
- JULIA_VERSION=julianightlies
os: osx
- language: generic
env:
- PYTHON_VERSION=py2
- JULIA_VERSION=juliareleases
os: osx
- language: generic
env:
- PYTHON_VERSION=py3
- JULIA_VERSION=julianightlies
os: osx
- language: generic
env:
- PYTHON_VERSION=py3
- JULIA_VERSION=juliareleases
os: osx
notifications:
email: false
before_script:
- echo ./ci/install-julia.sh "$JULIA_VERSION"
- ./ci/install-julia.sh "$JULIA_VERSION"
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get update -qq -y; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install libpcre3-dev -y; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install python-numpy python3-numpy -y; fi
- if [ "$TRAVIS_OS_NAME" = "osx" -a "$PYTHON_VERSION" = "py3" ]; then brew list python3 &>/dev/null || brew install python3; fi
- if [ "$TRAVIS_OS_NAME" = "osx" -a "$PYTHON_VERSION" = "py2" ]; then brew list python &>/dev/null || brew install python; fi
script:
- julia -e 'Pkg.add("PyCall")'
- julia -e 'Pkg.checkout("PyCall"); Pkg.build("PyCall")'
- julia -e 'Pkg.init(); run(`ln -s $(pwd()) $(Pkg.dir())/PyCall`); Pkg.resolve()'
- /usr/bin/python --version
- python --version
- if [ "$CROSS_VERSION" = "1" ]; then /usr/bin/python -m unittest discover; fi
- python -m unittest discover