File tree 3 files changed +16
-5
lines changed
3 files changed +16
-5
lines changed Original file line number Diff line number Diff line change 15
15
global :
16
16
- CC_TEST_REPORTER_ID=$TRAVIS_CODE_CLIMATE_TOKEN SENDGRID_API_KEY=SGAPIKEY
17
17
install :
18
- - python setup.py install
19
- - pip install pyyaml flask six coverage codecov
18
+ - make install
19
+ - make test- install
20
20
before_script :
21
21
- " ./test/prism.sh &"
22
22
- sleep 20
23
23
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
24
24
- chmod +x ./cc-test-reporter
25
25
- ./cc-test-reporter before-build
26
26
script :
27
- - coverage run -m unittest discover
27
+ - . venv/bin/activate; coverage run -m unittest discover
28
28
after_script :
29
- - codecov
29
+ - . venv/bin/activate; codecov
30
30
- ./cc-test-reporter after-build --exit-code $?
31
31
deploy :
32
32
provider : pypi
Original file line number Diff line number Diff line change @@ -8,7 +8,12 @@ install: venv
8
8
. venv/bin/activate; python setup.py install
9
9
. venv/bin/activate; pip install -r requirements.txt
10
10
11
- test :
11
+ test-install :
12
+ . venv/bin/activate; pip install -r test/requirements.txt
13
+
14
+ test : test-install
15
+ ./test/prism.sh &
16
+ sleep 2
12
17
. venv/bin/activate; python -m unittest discover -v
13
18
14
19
clean : nopyc
Original file line number Diff line number Diff line change
1
+ pyyaml
2
+ flask
3
+ six
4
+ coverage
5
+ codecov
6
+ mock
You can’t perform that action at this time.
0 commit comments