forked from fedden/poker_ai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
34 lines (27 loc) · 1002 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
28
29
30
31
32
33
34
language: python
# Environment variables.
env:
global:
- CC_TEST_REPORTER_ID=607f73633cb88df8c21568f855bd394dc47772d2228b2f0476ad8c87b625a334
# Which version(s) of python we want to use for testing.
python:
- "3.7"
# command to install dependencies
install:
- pip install -r requirements.txt
- pip install pytest pytest-cov
- pip install .
# Hook up code coverage in the before test script.
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
# command to run test script.
script: pytest
# Code to run after the test script.
after_script:
- pytest test -v --cov-report term --cov-report xml --cov-fail-under=90 --cov=pluribus
- if [[ "$TRAVIS_PULL_REQUEST" == "false" ]]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi
# Alert us in slack.
notifications:
slack: pluribusworkspace:MSz1cpRLvkGsMHpYkDhbGOLE