forked from puneetgavri/python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
378 changed files
with
11,240 additions
and
3,822 deletions.
There are no files selected for viewing
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 @@ | ||
* @exercism/python |
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,26 +1,32 @@ | ||
sudo: false | ||
|
||
language: python | ||
|
||
dist: xenial | ||
|
||
python: | ||
- 2.7 | ||
- 3.3 | ||
- 3.4 | ||
- 3.5 | ||
- 3.6 | ||
- 3.7 | ||
- nightly | ||
|
||
matrix: | ||
include: | ||
# Python 3.4 not supported in xenial | ||
- python: 3.4 | ||
dist: trusty | ||
- env: JOB=HOUSEKEEPING | ||
install: ./bin/fetch-configlet | ||
before_script: ./bin/check-readmes.sh | ||
script: | ||
# May provide more useful output than configlet fmt | ||
# if JSON is not valid or items are incomplete | ||
- ./bin/configlet lint . | ||
# Verify correct formatting in config.json | ||
- ./bin/configlet fmt . && git diff --quiet | ||
allow_failures: | ||
- python: nightly | ||
|
||
install: | ||
- pip install -r requirements-travis.txt | ||
|
||
before_script: | ||
- flake8 | ||
- ./bin/fetch-configlet | ||
- ./bin/configlet lint . | ||
|
||
script: | ||
|
||
script: | ||
- ./test/check-exercises.py |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
get_timestamp() | ||
{ | ||
path="$1" | ||
git log -n1 --pretty=format:%ct -- "$path" | ||
} | ||
|
||
ret=0 | ||
for exercise in $(ls -d exercises/*/); do | ||
meta_dir="${exercise}.meta" | ||
if [ -d "$meta_dir" ]; then | ||
meta_timestamp="$(get_timestamp "$meta_dir")" | ||
readme_timestamp="$(get_timestamp "${exercise}README.md")" | ||
if [ "$meta_timestamp" -gt "$readme_timestamp" ]; then | ||
ret=1 | ||
echo "$(basename "$exercise"): .meta/ contents newer than README. Please regenerate it with configlet." | ||
fi | ||
fi | ||
done | ||
|
||
exit $ret |
Oops, something went wrong.