Skip to content

Commit

Permalink
[ci-cron]test
Browse files Browse the repository at this point in the history
  • Loading branch information
rienafairefr committed Oct 20, 2016
1 parent 7edc5aa commit 5796456
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@ before_install:
- export TRAVIS_COMMIT_MESSAGE=$(git log --format=%B -n 1 $TRAVIS_COMMIT)
- echo "$TRAVIS_COMMIT_MESSAGE"
script:
- 'if [[ "$TRAVIS_EVENT_TYPE" = "cron" || "$TRAVIS_COMMIT_MESSAGE" == *"[ci-cron]"* ]]; then
export NYNAB_LOGGINGLEVEL=debug;
- 'export NYNAB_LOGGINGLEVEL=debug;
coverage run -m unittest discover tests;
if [[ "$TRAVIS_EVENT_TYPE" = "cron" || "$TRAVIS_COMMIT_MESSAGE" == *"[ci-cron]"* ]]; then
python -m unittest discover test_sync;
else
export NYNAB_LOGGINGLEVEL=debug;
coverage run -m unittest discover tests;
fi'
- ( if [ -n "$TRAVIS_TAG" ]; then if [ $TAG_NAME != $TRAVIS_TAG ]; then echo "This tag is for the wrong version. Got \"$TRAVIS_TAG\" expected \"$TAG_NAME\"."; exit 1; fi; fi; )
after_success:
Expand Down

0 comments on commit 5796456

Please sign in to comment.