-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace CircleCi with Travis CI (#15)
* Delete CircleCi config * Add TravisCi config * Fix indentation * Remove pylint * Fix PEP8 errors * Add Codeclimate configuration * Add Coveralls
- Loading branch information
Showing
7 changed files
with
123 additions
and
111 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
version: "2" | ||
plugins: | ||
git-legal: | ||
enabled: true | ||
fixme: | ||
enabled: true | ||
sonar-python: | ||
enabled: true | ||
config: | ||
tests_patterns: | ||
- tests/** | ||
pylint: | ||
enabled: true | ||
channel: "beta" | ||
editorconfig: | ||
enabled: true | ||
channel: beta | ||
config: | ||
editorconfig: .editorconfig | ||
checks: | ||
similar-code: | ||
enabled: false | ||
identical-code: | ||
enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ end_of_line = lf | |
charset = utf-8 | ||
|
||
[*.py] | ||
indent_size = 4 | ||
max_line_length = 160 | ||
|
||
[*.json] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,4 @@ __pycache__/ | |
/workflow | ||
/Alfred_Workflow-* | ||
*.alfredworkflow | ||
.coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
language: python | ||
|
||
python: | ||
- "2.7" | ||
- "3.4" | ||
- "3.5" | ||
- "3.6" | ||
- "3.7" | ||
|
||
env: | ||
global: | ||
# This is a write-only ID that can only post test reports. | ||
- CC_TEST_REPORTER_ID=b8cbd5fee1ea6bd07ec2941a31efdac0b94388f5a4a9498a2605eb1e59b2fcf2 | ||
- COVERALLS_REPO_TOKEN=97gr8Jdu5WXrcer1UmmGAQeG4C9AH9V8b | ||
- GIT_COMMITTED_AT=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then git log -1 --pretty=format:%ct; else git log -1 --skip 1 --pretty=format:%ct; fi) | ||
|
||
install: | ||
- pip install -r requirements.txt | ||
- 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 | ||
|
||
script: | ||
- coverage run --branch -m unittest discover --start-directory tests | ||
|
||
after_success: | ||
- travis_retry coveralls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
Alfred-Workflow==1.37.2 | ||
xkcdpass==1.17.3 | ||
coverage==4.5.4 | ||
python-coveralls==2.9.3 |