forked from niteshpatel/habitica-slack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (24 loc) · 1.36 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
language: python
python:
- "2.7"
env:
global:
- DJANGO=1.10.1
- CC_TEST_REPORTER_ID=c58f68be8b3bdb0ce6b42fe37093649753c32d4fbd49f2236c17702da6f70056
install:
- pip install -r requirements.txt
- pip install coverage
- pip install -q Django==$DJANGO
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:
- export DJANGO_SECRETKEY=secret
- coverage run --source=habitica_slack manage.py test
- coverage xml
after_script:
- ./cc-test-reporter after-build -t coverage.py --exit-code $TRAVIS_TEST_RESULT
notifications:
slack:
secure: "r5Pip72WRWGIa9koX1H6SVh/3NL3XF7haSV6rWhVdlW3jT454rEUAjNLwU5MXFSSzv73IcsybeYrKQx4JeVfEM4HpNV3GTWvlgLbRxjLhOvQAl85+0S6Df+8qMn1wIl6HpAlkAINgWGCZUYyMzf4nL6sZu1Awo4fpcjqW1vucivxJN14iXs8TrtNVT/BVpSQeLECVRByeQ2uk50RCAGz8X06oaJwNmDSoncTybxOgvdu+DbNm+nKNZRtW0559mWV4HoX2MlSr68ucroGPpkYp6x+X7WqWFdOuiq+onH5FMqO9CiqTIaJu93mbswO/8wpJyVXKw9SrcK6Y05GiTe5H5UTyiwREfYf0ZD7jv0AX1tNDExrMlpia40GmCKDNWGvvsSU7beke6UHLJdEqVZOMLHF2zGNnYF1CVKYODT8WpA/G6tIlfReMG8h28KzLnPLeAmtcI8NPK68K/JsYutfo9k8+ssGrQzFjUsKtO27SzBc6TNsCfmUJnNGBsTGaoemN4BJ3MlfPFYHdeJyuuLlPqm8P2G1AttuGkMU/EgxkHEeim7DOh/2iXZ5udgdDj7BRBIJDOV67+9H24y6JebJYITYJ1R+atfbq7dE72i9ksPSk3GuOt9FQHztTX6czFLyCZccIsSB3pM5GuYhwN3IrxTEVjTqtTnIG2jSdt3lWYU="