This repository was archived by the owner on Aug 20, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.travis.yml
More file actions
70 lines (55 loc) · 1.5 KB
/
.travis.yml
File metadata and controls
70 lines (55 loc) · 1.5 KB
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
#Travis-Ci
language: python
matrix:
include:
- os: linux
sudo: required
python: "3.5"
dist: xenial
- os: linux
sudo: required
python: "3.6"
dist: xenial
- os: linux
sudo: required
python: "3.7"
dist: xenial
- os: osx
osx_image: xcode10
language: generic
env: PYTHON=35
- os: osx
osx_image: xcode10
language: generic
env: PYTHON=36
- os: osx
osx_image: xcode10
language: generic
env: PYTHON=37
# For OSX
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
curl -LO https://raw.githubusercontent.com/GiovanniBussi/macports-ci/master/macports-ci;
source ./macports-ci install;
fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
yes | sudo port install python$PYTHON;
yes | sudo port install py$PYTHON-pip;
sudo port select --set python3 python$PYTHON;
sudo port select --set pip pip$PYTHON;
export PATH=$PATH:$(python3 -c "import site; print(site.USER_BASE)")/bin;
fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
python3 --version;
pip --version;
fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
pip install -r requirements.txt --user;
fi
script:
- make test
before_cache:
- rm -rf $HOME/.cache/pip/log
cache:
directories:
- $HOME/.cache/pip