Skip to content

Commit

Permalink
Travis: OSX testing
Browse files Browse the repository at this point in the history
  • Loading branch information
dhardy committed Dec 11, 2018
1 parent 20ec802 commit 4523035
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ env:
- OMP_NUM_THREADS=4

os:
- linux
#- linux — disabled for OSX testing
- osx

matrix:
Expand Down Expand Up @@ -45,23 +45,25 @@ install:
- cmake -DCMAKE_BUILD_TYPE=Release ..

script:
- make -j4
- ./openMalaria --version
- test "$TRAVIS_OS_NAME" == "linux" && ldd openMalaria || otool -L openMalaria
#- make -j4
#- ./openMalaria --version
#- test "$TRAVIS_OS_NAME" == "linux" && ldd openMalaria || otool -L openMalaria
- echo "Testing release example"
# We copy everything in this directory. The developer must update the XML to
# work with the current schema version (USUALLY just updating the numbers).
- cp -R ../util/example/ ./
- cp ../test/*.csv example/
- cp -r ../util/example/ ./
- ls -l example
- echo ../test/*.csv
- cp ../test/*.csv example
# NOTE: we expect the developer to copy schema/scenario_current.xsd to ../schema/$SCHEMA
# when creating a new schema version. We DO NOT AUTOMATE this step because we do not want to
# proliferate multiple incompatible versions of $SCHEMA.
- echo "Using schema ../schema/$SCHEMA"
- cp ../schema/$SCHEMA example/
- cp openMalaria example/
- pushd example && strip openMalaria && ./run-example-scenario.sh && popd
#- cp openMalaria example/
#- pushd example && strip openMalaria && ./run-example-scenario.sh && popd
- echo "Running test scenarios"
- ctest -j4
#- ctest -j4
- popd

after_success:
Expand Down

0 comments on commit 4523035

Please sign in to comment.