-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
27 lines (22 loc) · 984 Bytes
/
.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
language: python
matrix:
include:
- language: generic-covered
python: 3.6
os: osx
env: pyver=3.6.0 pydist=macpython
python:
- "3.6"
before_install:
- if [ $TRAVIS_OS_NAME == "osx" ]; then echo "Running on OS X"; else echo "Running on Linux"; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then git clone https://github.com/gappleto97/terryfy; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then source terryfy/travis_tools.sh; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then get_python_environment $pydist $pyver; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then $PIP_CMD install virtualenv; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then virtualenv -p $PYTHON_EXE venv; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then source venv/bin/activate; fi
- echo $(python --version)
install: "pip install -r ci/requirements-travis.txt"
script:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then pwd; ls; pytest; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then pytest tests; fi