forked from BondGraphTools/BondGraphTools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (27 loc) · 1.24 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
dist: trusty
env:
global:
- CC_TEST_REPORTER_ID=895919e9413384a08a878a372ecad8e82ac0f6f80933e23cc36261e9986d27c0
language: python
python:
- "3.6"
before_install:
# This workaround is required to avoid libstdc++ errors while running "extended" hugo with SASS support.
- wget -q -O libstdc++6 http://security.ubuntu.com/ubuntu/pool/main/g/gcc-5/libstdc++6_5.4.0-6ubuntu1~16.04.10_amd64.deb
- sudo dpkg --force-all -i libstdc++6
- curl -L https://julialang-s3.julialang.org/bin/linux/x64/0.6/julia-0.6.2-linux-x86_64.tar.gz > julia-0.6.2-linux-x86_64.tar.gz
- tar xf julia-0.6.2-linux-x86_64.tar.gz
- export PATH=$PATH:./julia-d386e40c17/bin/
- chmod +x ./julia-d386e40c17/bin/julia
install:
- python -m pip install -r requirements.txt
- python -m pip install pytest==4.1.0 coverage==4.5.1 mock pytest-cov==2.6.1
- LD_LIBRARY_PATH=/usr/local/lib64/:$LD_LIBRARY_PATH
- export LD_LIBRARY_PATH
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script: pytest --runslow --cov=BondGraphTools --cov-report=xml test
after_script:
./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT