mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
add travis folding commands
This commit is contained in:
parent
a98e0633ce
commit
d45daccc8a
|
@ -34,9 +34,8 @@ before_install:
|
|||
|
||||
script:
|
||||
- export SOL2_DIR=${TRAVIS_BUILD_DIR}
|
||||
- sudo docker image pull ThePhD/sol2:gcc-${GCC_VERSION}_llvm-${LLVM_VERSION}
|
||||
- sudo docker image pull thephd/sol2:gcc-${GCC_VERSION}_llvm-${LLVM_VERSION}
|
||||
- sudo docker run --rm --interactive --tty --name "sol2.test" -v "${SOL2_DIR}:/root/sol2" --env "CI=${CI}" --env "LUA_VERSION=${LUA_VERSION}" --env "GCC_VERSION=${GCC_VERSION}" --env "LLVM_VERSION=${LLVM_VERSION}" thephd/sol2:gcc-${GCC_VERSION}_llvm-${LLVM_VERSION}
|
||||
- sudo docker rm $(sudo docker ps -a -q)
|
||||
- sudo docker rmi $(sudo docker image ls -q)
|
||||
|
||||
matrix:
|
||||
|
|
|
@ -63,4 +63,4 @@ RUN ["/usr/bin/env", "zsh", "-e", "/root/sol2-scripts/preparation.linux.sh"]
|
|||
# gets "saved" in...
|
||||
# it only runs the last CMD/ENTRYPOINT as the default behavior:
|
||||
# multiple CMDs will not be respected
|
||||
ENTRYPOINT ["/usr/bin/env", "zsh", "-x", "-e", "/root/sol2-scripts/run.linux.sh"]
|
||||
ENTRYPOINT ["/usr/bin/env", "zsh", "-e", "/root/sol2-scripts/run.linux.sh"]
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
echo -en "travis_fold:start:build_preparation.1\r"
|
||||
if [ -z "${SOL2_DIR}"]
|
||||
then
|
||||
if [ ${CI} = true ]
|
||||
|
@ -52,8 +53,11 @@ mkdir -p Debug Release
|
|||
|
||||
export build_type_cc=-DCMAKE_C_COMPILER\=${CC}
|
||||
export build_type_cxx=-DCMAKE_CXX_COMPILER\=${CXX}
|
||||
echo -en "travis_fold:end:build_preparation.1\r"
|
||||
|
||||
|
||||
# show the tool and compiler versions we're using
|
||||
echo -en "travis_fold:start:build_preparation.2\r"
|
||||
echo "=== Compiler and tool variables ==="
|
||||
ninja --version
|
||||
cmake --version
|
||||
|
@ -61,16 +65,24 @@ ${CC} --version
|
|||
${CXX} --version
|
||||
echo build_type_cc : "${build_type_cc}"
|
||||
echo build_type_cxx: "${build_type_cxx}"
|
||||
echo -en "travis_fold:end:build_preparation.2\r"
|
||||
|
||||
|
||||
echo -en "travis_fold:start:build.debug\r"
|
||||
cd Debug
|
||||
cmake ${SOL2_DIR} -G Ninja -DCMAKE_BUILD_TYPE=Debug ${build_type_cc} ${build_type_cxx} -DLUA_VERSION="${LUA_VERSION}" -DBUILD_LUA=ON -DBUILD_LUA_AS_DLL=OFF -DTESTS=ON -DEXAMPLES=ON -DSINGLE=ON -DTESTS_EXAMPLES=ON -DEXAMPLES_SINGLE=ON -DTESTS_SINGLE=ON -DCI=ON
|
||||
cmake --build . --config Debug
|
||||
echo -en "travis_fold:end:build.debug\r"
|
||||
echo -en "travis_fold:start:test.debug\r"
|
||||
ctest --build-config Debug --output-on-failure
|
||||
cd ..
|
||||
echo -en "travis_fold:end:test.debug\r"
|
||||
|
||||
echo "travis_fold:start:build.release\r"
|
||||
cd Release
|
||||
cmake ${SOL2_DIR} -G Ninja -DCMAKE_BUILD_TYPE=Release ${build_type_cc} ${build_type_cxx} -DLUA_VERSION="${LUA_VERSION}" -DBUILD_LUA=ON -DBUILD_LUA_AS_DLL=OFF -DTESTS=ON -DEXAMPLES=ON -DSINGLE=ON -DTESTS_EXAMPLES=ON -DEXAMPLES_SINGLE=ON -DTESTS_SINGLE=ON -DCI=ON
|
||||
cmake --build . --config Release
|
||||
echo -en "travis_fold:end:build.release\r"
|
||||
echo -en "travis_fold:start:test.release\r"
|
||||
ctest --build-config Release --output-on-failure
|
||||
cd ..
|
||||
echo -en "travis_fold:end:test.release\r"
|
||||
|
|
Loading…
Reference in New Issue
Block a user