-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update dependencies * Fix for numpy v1.17.0 * Downgrade pytest version for travis * Update .travis.yml * Rollback to previous docker image * Update .travis.yml * Trying to upgrade pytest * Try to ignore pytest warning * Update setup.cfg * Use full name to ignore pytest warning * Correct import * Remove gym and tf warnings * Add TD3 to tensorboard tests * Ignore additional gym warning * Get rid of additional tf warning * Re-enable new docker image * Test with different tf version * Upgrade pytest * Upgrade tf to 1.13.2 * Try downgrading tf * Move Travis CI test to separate bash file * Try splitting up test suite * Diagnostic: echo test glob * Avoid unintended wildcard * Upgrade TF to 1.13.2, move scripts to subdirectory * Split up tests to keep them <20m long * Try thread-safe SubprocVecEnv * Disable non-thread safe start methods in tests; document default change * Rebalance tests * Rebalance some more * Rebalance, hopefully for the last time * Fix globs * Update docker cpu image: add coverage reporter for travis * Codacy partial upload * Bump Docker image version * Make Travis read environment variable * Pass project token in * Remove pip install and fix coverage final report
- Loading branch information
Showing
18 changed files
with
143 additions
and
50 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
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
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
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
File renamed without changes.
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,35 @@ | ||
#!/usr/bin/env bash | ||
|
||
DOCKER_CMD="docker run -it --rm --network host --ipc=host --mount src=$(pwd),target=/root/code/stable-baselines,type=bind" | ||
BASH_CMD="cd /root/code/stable-baselines/" | ||
|
||
if [[ $# -ne 1 ]]; then | ||
echo "usage: $0 <test glob>" | ||
exit 1 | ||
fi | ||
|
||
if [[ ${DOCKER_IMAGE} = "" ]]; then | ||
echo "Need DOCKER_IMAGE environment variable to be set." | ||
exit 1 | ||
fi | ||
|
||
TEST_GLOB=$1 | ||
|
||
set -e # exit immediately on any error | ||
|
||
# For pull requests from fork, Codacy token is not available, leading to build failure | ||
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then | ||
${DOCKER_CMD} ${DOCKER_IMAGE} \ | ||
bash -c "${BASH_CMD} && \ | ||
pytest --cov-config .coveragerc --cov-report term --cov=. -v tests/test_${TEST_GLOB}" | ||
else | ||
if [[ ${CODACY_PROJECT_TOKEN} = "" ]]; then | ||
echo "Need CODACY_PROJECT_TOKEN environment variable to be set." | ||
exit 1 | ||
fi | ||
|
||
${DOCKER_CMD} --env CODACY_PROJECT_TOKEN=${CODACY_PROJECT_TOKEN} ${DOCKER_IMAGE} \ | ||
bash -c "${BASH_CMD} && \ | ||
pytest --cov-config .coveragerc --cov-report term --cov-report xml --cov=. -v tests/test_${TEST_GLOB} && \ | ||
/root/code/codacy-coverage-reporter report -l python -r coverage.xml --partial" | ||
fi |
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
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
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
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