-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
44 lines (35 loc) · 1.11 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
37
38
39
40
41
42
43
44
env:
global:
- CC_TEST_REPORTER_ID=494e5448387409f38ba3d761e1673e401abd5695e0aee464e675481481d0bd86
language: python
python:
- "2.7"
- "3.6"
# command to install dependencies
install:
- "pip install -r requirements.txt"
sudo: required
#addons:
# apt:
# packages:
# - mosquitto
services:
- mongodb
- docker
# - mosquitto
# - rabbitmq
#before_script: mosquitto
before_script:
- docker run -dti -p 1883:1883 -p 9001:9001 toke/mosquitto
- 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 tests
script:
- nosetests --with-coverage
# - nosetests --cover-inclusive --cover-erase --cover-package=hyperstream --with-coverage
# - nosetests --cover-inclusive --cover-erase --with-coverage
#after_sucess:
# - CODECLIMATE_REPO_TOKEN=494e5448387409f38ba3d761e1673e401abd5695e0aee464e675481481d0bd86 codeclimate-test-reporter
after_script:
- if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi