mirror of
https://github.com/rbock/sqlpp11.git
synced 2024-11-15 20:31:16 +08:00
need to override CMAKE vars before building
This commit is contained in:
parent
949089d9f3
commit
42de1557b2
@ -38,12 +38,11 @@ before_script:
|
|||||||
sudo apt-get install python-pyparsing;
|
sudo apt-get install python-pyparsing;
|
||||||
fi
|
fi
|
||||||
- if [[ "$CXX" = "g++" && "$CONFIG" = "Debug" && "$TRAVIS_OS_NAME" = "linux" ]]; then export CXXFLAGS="--coverage"; fi
|
- if [[ "$CXX" = "g++" && "$CONFIG" = "Debug" && "$TRAVIS_OS_NAME" = "linux" ]]; then export CXXFLAGS="--coverage"; fi
|
||||||
- cmake .. -DCMAKE_BUILD_TYPE=$CONFIG -DCMAKE_PREFIX_PATH=$PWD/../date
|
- if [[ -n "${TESTS_CXX_STD:-}" ]]; then ADD_OPTS="-DSQLPP11_TESTS_CXX_STD=$TESTS_CXX_STD"; fi
|
||||||
|
- cmake .. -DCMAKE_BUILD_TYPE=$CONFIG -DCMAKE_PREFIX_PATH=$PWD/../date $ADD_OPTS
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- ARGS="--config $CONFIG"
|
- cmake --build . --config $CONFIG
|
||||||
- if [[ -n "${TESTS_CXX_STD:-}" ]]; then ARGS="$ARGS -DSQLPP11_TESTS_CXX_STD=$TESTS_CXX_STD"; fi
|
|
||||||
- cmake --build . $ARGS
|
|
||||||
- ctest --output-on-failure
|
- ctest --output-on-failure
|
||||||
|
|
||||||
after_script:
|
after_script:
|
||||||
|
Loading…
Reference in New Issue
Block a user