forked from Muterra/py_daemoniker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
68 lines (54 loc) · 1.27 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
language: python
env:
global:
- CI=true
matrix:
include:
- os: linux
python: 3.6
env: TESTSUITE=lin36
- os: linux
python: 3.5
env: TESTSUITE=lin35
- os: osx
sudo: required
language: generic
env: TESTSUITE=osx35
- os: linux
python: 3.4
env: TESTSUITE=lin34
- os: osx
sudo: required
language: generic
env: TESTSUITE=osx34
allow_failures:
- env: TESTSUITE=osx34
- env: TESTSUITE=lin34
# Manually install python on osx
install: |
if [[ $TESTSUITE == 'osx35' ]]; then
brew update;
brew install python3;
python3 -m venv venv;
source venv/bin/activate;
pip install . test
elif [[ $TESTSUITE == 'osx34' ]]; then
git clone --depth 1 https://github.com/yyuu/pyenv.git ~/.pyenv
PYENV_ROOT="$HOME/.pyenv"
PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
pyenv install 3.4.5
pyenv global 3.4.5
pyenv rehash
python -m pip install --user virtualenv
python -m virtualenv ~/.venv
source ~/.venv/bin/activate
pip install . test
else
pip install . test
fi
script: python tests/supervisor.py
branches:
only:
- master
- develop