-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.travis.yml
More file actions
42 lines (36 loc) · 1.17 KB
/
.travis.yml
File metadata and controls
42 lines (36 loc) · 1.17 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
language: python
matrix:
allow_failures:
- os: osx
include:
- python: 3.5
os: linux
- python: nightly
os: linux
- language: generic
os: osx
before_install:
- curl -O http://www.antlr.org/download/antlr-4.5.1-complete.jar
- antlr4='java -jar antlr-4.5.1-complete.jar'
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update ; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install python3; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then virtualenv --python=python3 env; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then source env/bin/activate; fi
- python --version; pip --version
# command to install dependencies
install:
- "pip install coverage"
- "pip install coveralls"
- "pip install -r requirements.txt"
- "$antlr4 -visitor tinypy/parser/TinyPy.g4"
- "pip install ."
# Add subprocess support for coverage
- SPACK=$(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
- printf "\nimport coverage; coverage.process_startup()\n" >> "$SPACK/sitecustomize.py"
# command to run tests
script:
- "coverage run setup.py test"
- "coverage combine"
- "coverage report"
after_success:
coveralls