Skip to content

Commit

Permalink
Generate Codacy report
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Oct 4, 2017
1 parent dbce58c commit e442d0f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,7 @@ script:
## END FOR NON DOCKER TESTS

after_success:
- export CODACY_PROJECT_TOKEN=1605f78ffb214af5ba6cb172a95db5d1
- ./docker-run python-codacy-coverage -r coverage.xml
- ./docker-run travis/codacy.sh
- openssl aes-256-cbc -K $encrypted_ae821512cabf_key -iv $encrypted_ae821512cabf_iv -in deploy_key.enc -out ~/.ssh/id_rsa -d | true
- chmod 600 ~/.ssh/id_rsa
- git config --global user.email travis@camptocamp.com
Expand Down
1 change: 0 additions & 1 deletion docker-run
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ def main():
"--env=USER_NAME={}".format(os.getlogin()),
"--env=USER_ID={}".format(os.getuid() if os.name == "posix" else 1000),
"--env=GROUP_ID={}".format(os.getgid() if os.name == "posix" else 1000),
"--env=CODACY_PROJECT_TOKEN={}".format(os.environ.get("CODACY_PROJECT_TOKEN", "")),
"--env=GIT_BRANCH={}".format(git_branch)
])

Expand Down
5 changes: 5 additions & 0 deletions travis/codacy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash -ex

export CODACY_PROJECT_TOKEN=1605f78ffb214af5ba6cb172a95db5d1
coverage xml
python-codacy-coverage -r coverage.xml

0 comments on commit e442d0f

Please sign in to comment.