File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Python CircleCI 2.0 configuration file
2+ version : 2
3+ jobs :
4+ build :
5+ environment :
6+ CC_TEST_REPORTER_ID : 181a274c2c68483ff80af63a8a87e1f5fab71f37744eab702f25695501b5ca85
7+ docker :
8+ - image : circleci/python:3.6.1
9+
10+ working_directory : ~/repo
11+
12+ steps :
13+ - checkout
14+ - run :
15+ name : Install dependencies
16+ command : |
17+ # CI, CircleCI dependencies
18+ python3 -m venv venv
19+ . venv/bin/activate
20+ # CI, codeclimate dependencies
21+ curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
22+ chmod +x ./cc-test-reporter
23+ pip install codeclimate-test-reporter
24+ # project dependencies
25+ pip install tox
26+ pip install coverage==4.2
27+ - run :
28+ name : Install project
29+ command : |
30+ . venv/bin/activate
31+ python setup.py install
32+ - run :
33+ name : Before Tests
34+ command : |
35+ ./cc-test-reporter before-build
36+ - run :
37+ name : Run Tests
38+ command : |
39+ . venv/bin/activate
40+ tox -e coverage,flake8
41+ - run :
42+ name : After Tests
43+ command : |
44+ . venv/bin/activate
45+ ls -ltra tests/reports/
46+ codeclimate-test-reporter --token $CC_TEST_REPORTER_ID --file .coverage
47+ - store_artifacts :
48+ path : dist
49+ destination : dist
Original file line number Diff line number Diff line change @@ -99,5 +99,7 @@ Getting Started
9999 :target: https://travis-ci.org/netzulo/testlink-tests
100100.. |master_ci_appveyor | image :: https://ci.appveyor.com/api/projects/status/8kqf9o9mjgvte40j?svg=true
101101 :target: https://ci.appveyor.com/project/netzulo/testlink-tests
102- .. |master_ci_circleci | image :: http://demo.testlink.org
103- .. |master_ci_codeclimate | image :: http://demo.testlink.org
102+ .. |master_ci_circleci | image :: https://circleci.com/gh/netzulo/testlink-tests.svg?style=svg
103+ :target: https://circleci.com/gh/netzulo/testlink-tests)
104+ .. |master_ci_codeclimate | image :: https://api.codeclimate.com/v1/badges/84904556cd07ad4fcf00/maintainability
105+ :target: https://codeclimate.com/github/netzulo/testlink-tests/maintainability
You can’t perform that action at this time.
0 commit comments