mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-01-06 08:41:10 +01:00
Update travis scripts
This commit is contained in:
parent
408b466b57
commit
c84f2e19c9
@ -12,10 +12,10 @@
|
|||||||
# Optional environmental variables
|
# Optional environmental variables
|
||||||
# - DESTDIR <- used for setting the install prefix
|
# - DESTDIR <- used for setting the install prefix
|
||||||
# - BUILD_TOOL=["Unix Makefile"|"Ninja"]
|
# - BUILD_TOOL=["Unix Makefile"|"Ninja"]
|
||||||
# - BUILDNAME <-- how to identify this build on the dashboard
|
# - BUILDNAME <- how to identify this build on the dashboard
|
||||||
# - DO_MemCheck <- if set, try to use valgrind
|
# - DO_MemCheck <- if set, try to use valgrind
|
||||||
# - DO_Coverage <- if set, try to do dashboard coverage testing
|
# - DO_Coverage <- if set, try to do dashboard coverage testing
|
||||||
#
|
#
|
||||||
|
|
||||||
env_set=1
|
env_set=1
|
||||||
if ${BUILD_TYPE+false}; then
|
if ${BUILD_TYPE+false}; then
|
||||||
@ -78,7 +78,7 @@ if ! ${DO_MemCheck+false}; then
|
|||||||
valgrind --version
|
valgrind --version
|
||||||
CTEST_TESTING_OPTION="-D ExperimentalMemCheck"
|
CTEST_TESTING_OPTION="-D ExperimentalMemCheck"
|
||||||
else
|
else
|
||||||
# - DO_Coverage <- if set, try to do dashboard coverage testing
|
# - DO_Coverage <- if set, try to do dashboard coverage testing
|
||||||
if ! ${DO_Coverage+false}; then
|
if ! ${DO_Coverage+false}; then
|
||||||
export CXXFLAGS="-fprofile-arcs -ftest-coverage"
|
export CXXFLAGS="-fprofile-arcs -ftest-coverage"
|
||||||
export LDFLAGS="-fprofile-arcs -ftest-coverage"
|
export LDFLAGS="-fprofile-arcs -ftest-coverage"
|
||||||
@ -117,14 +117,14 @@ cd "${_BUILD_DIR_NAME}"
|
|||||||
ctest -C ${BUILD_TYPE} -D ExperimentalStart -D ExperimentalConfigure -D ExperimentalBuild ${CTEST_TESTING_OPTION} -D ExperimentalSubmit
|
ctest -C ${BUILD_TYPE} -D ExperimentalStart -D ExperimentalConfigure -D ExperimentalBuild ${CTEST_TESTING_OPTION} -D ExperimentalSubmit
|
||||||
# Final step is to verify that installation succeeds
|
# Final step is to verify that installation succeeds
|
||||||
cmake --build . --config ${BUILD_TYPE} --target install
|
cmake --build . --config ${BUILD_TYPE} --target install
|
||||||
|
|
||||||
if [ "${DESTDIR}" != "/usr/local" ]; then
|
if [ "${DESTDIR}" != "/usr/local" ]; then
|
||||||
${_BUILD_EXE} install
|
${_BUILD_EXE} install
|
||||||
fi
|
fi
|
||||||
cd -
|
cd -
|
||||||
|
|
||||||
if ${CLEANUP+false}; then
|
if ${CLEANUP+false}; then
|
||||||
echo "Skipping cleanup: build directory will persist."
|
echo "Skipping cleanup: build directory will persist."
|
||||||
else
|
else
|
||||||
rm -r "${_BUILD_DIR_NAME}"
|
rm -r "${_BUILD_DIR_NAME}"
|
||||||
fi
|
fi
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
set -vex
|
set -vex
|
||||||
#before_install: pyenv install 3.5.4 && pyenv global 3.5.4
|
|
||||||
#before_install: pyenv global 3.6
|
|
||||||
# https://docs.travis-ci.com/user/languages/python/
|
|
||||||
# "for Trusty, this means 2.7.6 and 3.4.3"
|
|
||||||
|
|
||||||
pyenv global 3.6
|
# Preinstalled versions of python are dependent on which Ubuntu distribution
|
||||||
|
# you are running. The below version needs to be updated whenever we roll
|
||||||
|
# the Ubuntu version used in Travis.
|
||||||
|
# https://docs.travis-ci.com/user/languages/python/
|
||||||
|
|
||||||
|
pyenv global 3.7.1
|
||||||
|
@ -1,5 +1 @@
|
|||||||
# NOTHING TO DO HERE
|
# NOTHING TO DO HERE
|
||||||
# set -vex
|
|
||||||
|
|
||||||
#brew install pyenv
|
|
||||||
#which pyenv
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
set -vex
|
set -vex
|
||||||
|
|
||||||
wget https://github.com/ninja-build/ninja/releases/download/v1.7.2/ninja-linux.zip
|
wget https://github.com/ninja-build/ninja/releases/download/v1.9.0/ninja-linux.zip
|
||||||
unzip -q ninja-linux.zip -d build
|
unzip -q ninja-linux.zip -d build
|
||||||
|
|
||||||
pip3 install meson
|
pip3 install meson
|
||||||
|
@ -1,5 +1 @@
|
|||||||
# NOTHING TO DO HERE
|
# NOTHING TO DO HERE
|
||||||
# set -vex
|
|
||||||
|
|
||||||
#python3 -m venv venv
|
|
||||||
#source venv/bin/activate
|
|
||||||
|
Loading…
Reference in New Issue
Block a user