Skip to content

Commit

Permalink
Bug 45 travisci (#47)
Browse files Browse the repository at this point in the history
* validate ci logs outside docker container. See #45 for details

* added missing travisci CI script
  • Loading branch information
fmoessbauer authored and fuchsto committed Nov 3, 2016
1 parent d001abb commit 893f504
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ compiler:
before_install:
- docker build --tag=dash/testing ./dash/scripts/docker-testing/mpich/
script:
- docker run -v $PWD:/opt/dash dash/testing /bin/sh -c "export DASH_MAX_UNITS='2'; sh dash/scripts/dash-ci.sh | grep -v 'LOG =' | tee dash-ci.log 2> dash-ci.err;"
- sh ./dash/scripts/travisci/run-docker.sh
- cat ./dash-ci.log | grep "PASSED" || return 1
after_script:
- cat ./build-ci/*/*/test_mpi.log | grep -v "LOG"
Expand Down
13 changes: 13 additions & 0 deletions dash/scripts/travisci/run-docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh

echo "Starting docker container ..."

docker run -v $PWD:/opt/dash dash/testing /bin/sh -c "export DASH_MAX_UNITS='2'; sh dash/scripts/dash-ci.sh | grep -v 'LOG =' | tee dash-ci.log 2> dash-ci.err;"

echo "checking logs"

cat $PWD/dash-ci.log | grep "FAILED"
if [ "$?" -eq "0" ]; then
echo "Log contains errors"
return 1
fi

0 comments on commit 893f504

Please sign in to comment.