Skip to content

Commit e3edd5c

Browse files
thk123Thomas Kiley
thk123
authored and
Thomas Kiley
committed
Run existing variant tests on travis
1 parent a9db042 commit e3edd5c

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ install:
326326
- make -C src/cpp library_check
327327
- make -C src "CXX=${COMPILER} ${EXTRA_CXXFLAGS}" -j3
328328
- make -C jbmc/src "CXX=${COMPILER} ${EXTRA_CXXFLAGS}" -j3
329+
- ./scripts/run_variant_tests.sh -j3
329330

330331
script:
331332
- if [ -e bin/gcc ] ; then export PATH=$PWD/bin:$PATH ; fi ;

scripts/run_variant_tests.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
cd lib/variant
6+
mkdir -p build
7+
cd build
8+
cmake -DMPARK_VARIANT_INCLUDE_TESTS="mpark" -DCMAKE_CXX_FLAGS="-std=c++11" ..
9+
cmake --build . -- $@
10+
ctest --output-on-failure

0 commit comments

Comments
 (0)