-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding a bit of a shonky script to skip build jobs if the combination…
… of (python version, django version) is not officially supported
- Loading branch information
Showing
4 changed files
with
26 additions
and
4 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
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,2 @@ | ||
#!/bin/bash | ||
python test/test_func.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
PYSCR=$(cat <<EOF | ||
import os, sys | ||
for skip_ver in os.environ.get('SKIP', '').split(): | ||
skip_ver = tuple(map(int, skip_ver.split('.'))) | ||
if skip_ver == sys.version_info[:len(skip_ver)]: | ||
sys.exit(1) | ||
sys.exit(0) | ||
EOF | ||
) | ||
|
||
python -c "$PYSCR" | ||
|
||
if [ "$?" -eq "0" ] | ||
then | ||
coverage run test/test_func.py | ||
fi |
This file was deleted.
Oops, something went wrong.