Skip to content

Commit

Permalink
Changed datetime output format of previous commit. Moved last echo to…
Browse files Browse the repository at this point in the history
… after_script to make sure Travis detects pass/fail correctly
  • Loading branch information
LocoDelAssembly committed Apr 6, 2019
1 parent c382fb0 commit ec88d1b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,16 @@ env:
services:
- postgresql
before_install:
- echo [TEST_WORKER=$TEST_WORKER before_install date] $(date)
- echo ===[TEST_WORKER=$TEST_WORKER before_install $(date -u +%Y%m%d-%H%M%S)]===
- nvm install node
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.7.0
- export PATH=$HOME/.yarn/bin:$PATH
install:
- echo [TEST_WORKER=$TEST_WORKER install date] $(date)
- echo ===[TEST_WORKER=$TEST_WORKER install $(date -u +%Y%m%d-%H%M%S)]===
- npm install
- bundle install --without development production
before_script:
- echo [TEST_WORKER=$TEST_WORKER before_script date] $(date)
- echo ===[TEST_WORKER=$TEST_WORKER before_script $(date -u +%Y%m%d-%H%M%S)]===
- "export DISPLAY=:99.0"
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1600x1200x16"
- sleep 3
Expand All @@ -74,12 +74,13 @@ before_script:
- export BEGIN_INDEX=$[($SPEC_COUNT + $TEST_WORKERS - 1) / $TEST_WORKERS * $TEST_WORKER + 1]
- export END_INDEX=$[($SPEC_COUNT + $TEST_WORKERS - 1) / $TEST_WORKERS * ($TEST_WORKER + 1)]
script:
- echo [TEST_WORKER=$TEST_WORKER script date] $(date)
- echo ===[TEST_WORKER=$TEST_WORKER script $(date -u +%Y%m%d-%H%M%S)]===
- bundle exec rake assets:precompile
# - bundle exec parallel_test spec/ -n 6 --only-group $TEST_GROUP --group-by filesize --type rspec
- echo [TEST_WORKER=$TEST_WORKER TESTS_BEGIN date] $(date)
- echo ===[TEST_WORKER=$TEST_WORKER rspec $(date -u +%Y%m%d-%H%M%S)]===
- bundle exec rspec $(echo $SPEC_FILES | cut -d " " -f $BEGIN_INDEX-$END_INDEX)
- echo [TEST_WORKER=$TEST_WORKER TESTS_END date] $(date)
after_script:
- echo ===[TEST_WORKER=$TEST_WORKER after_script $(date -u +%Y%m%d-%H%M%S)]===
notifications:
email:
recipients:
Expand Down

0 comments on commit ec88d1b

Please sign in to comment.