Skip to content

Commit

Permalink
[tl-tests] add CIs, codeclimate+appveyor
Browse files Browse the repository at this point in the history
  • Loading branch information
netzulo committed Jul 4, 2018
1 parent c9e6c11 commit fa4a942
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 2 deletions.
49 changes: 49 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Python CircleCI 2.0 configuration file
version: 2
jobs:
build:
environment:
CC_TEST_REPORTER_ID: 181a274c2c68483ff80af63a8a87e1f5fab71f37744eab702f25695501b5ca85
docker:
- image: circleci/python:3.6.1

working_directory: ~/repo

steps:
- checkout
- run:
name: Install dependencies
command: |
# CI, CircleCI dependencies
python3 -m venv venv
. venv/bin/activate
# CI, codeclimate dependencies
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
pip install codeclimate-test-reporter
# project dependencies
pip install tox
pip install coverage==4.2
- run:
name: Install project
command: |
. venv/bin/activate
python setup.py install
- run:
name: Before Tests
command: |
./cc-test-reporter before-build
- run:
name: Run Tests
command: |
. venv/bin/activate
tox -e coverage,flake8
- run:
name: After Tests
command: |
. venv/bin/activate
ls -ltra tests/reports/
codeclimate-test-reporter --token $CC_TEST_REPORTER_ID --file .coverage
- store_artifacts:
path: dist
destination: dist
6 changes: 4 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -99,5 +99,7 @@ Getting Started
:target: https://travis-ci.org/netzulo/testlink-tests
.. |master_ci_appveyor| image:: https://ci.appveyor.com/api/projects/status/8kqf9o9mjgvte40j?svg=true
:target: https://ci.appveyor.com/project/netzulo/testlink-tests
.. |master_ci_circleci| image:: http://demo.testlink.org
.. |master_ci_codeclimate| image:: http://demo.testlink.org
.. |master_ci_circleci| image:: https://circleci.com/gh/netzulo/testlink-tests.svg?style=svg
:target: https://circleci.com/gh/netzulo/testlink-tests)
.. |master_ci_codeclimate| image:: https://api.codeclimate.com/v1/badges/84904556cd07ad4fcf00/maintainability
:target: https://codeclimate.com/github/netzulo/testlink-tests/maintainability

0 comments on commit fa4a942

Please sign in to comment.