mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-10-23 18:58:44 +08:00
ENH: move travis support scripts to .travis_scripts
Move the build support scripts for travis to a hidden subdirectory to keep the top level directory more clean.
This commit is contained in:

committed by
Hans Johnson

parent
fa61a49b83
commit
10a1a38b37
7
.travis_scripts/travis.before_install.linux.sh
Normal file
7
.travis_scripts/travis.before_install.linux.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
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
|
5
.travis_scripts/travis.before_install.osx.sh
Normal file
5
.travis_scripts/travis.before_install.osx.sh
Normal file
@@ -0,0 +1,5 @@
|
||||
# NOTHING TO DO HERE
|
||||
# set -vex
|
||||
|
||||
#brew install pyenv
|
||||
#which pyenv
|
14
.travis_scripts/travis.install.linux.sh
Normal file
14
.travis_scripts/travis.install.linux.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
set -vex
|
||||
|
||||
wget https://github.com/ninja-build/ninja/releases/download/v1.7.2/ninja-linux.zip
|
||||
unzip -q ninja-linux.zip -d build
|
||||
|
||||
pip3 install meson
|
||||
# /usr/bin/gcc is 4.6 always, but gcc-X.Y is available.
|
||||
if [[ $CXX = g++ ]]; then export CXX="g++-4.9" CC="gcc-4.9"; fi
|
||||
# /usr/bin/clang has a conflict with gcc, so use clang-X.Y.
|
||||
if [[ $CXX = clang++ ]]; then export CXX="clang++-3.5" CC="clang-3.5"; fi
|
||||
echo ${PATH}
|
||||
ls /usr/local
|
||||
ls /usr/local/bin
|
||||
export PATH="${PWD}"/build:/usr/local/bin:/usr/bin:${PATH}
|
5
.travis_scripts/travis.install.osx.sh
Normal file
5
.travis_scripts/travis.install.osx.sh
Normal file
@@ -0,0 +1,5 @@
|
||||
# NOTHING TO DO HERE
|
||||
# set -vex
|
||||
|
||||
#python3 -m venv venv
|
||||
#source venv/bin/activate
|
34
.travis_scripts/travis.sh
Executable file
34
.travis_scripts/travis.sh
Executable file
@@ -0,0 +1,34 @@
|
||||
#!/usr/bin/env sh
|
||||
# This is called by `.travis.yml` via Travis CI.
|
||||
# Travis supplies $TRAVIS_OS_NAME.
|
||||
# http://docs.travis-ci.com/user/multi-os/
|
||||
# Our .travis.yml also defines:
|
||||
# - SHARED_LIB=ON/OFF
|
||||
# - STATIC_LIB=ON/OFF
|
||||
# - CMAKE_PKG=ON/OFF
|
||||
# - BUILD_TYPE=release/debug
|
||||
# - VERBOSE_MAKE=false/true
|
||||
# - VERBOSE (set or not)
|
||||
|
||||
# -e: fail on error
|
||||
# -v: show commands
|
||||
# -x: show expanded commands
|
||||
set -vex
|
||||
|
||||
env | sort
|
||||
|
||||
which python3
|
||||
which meson
|
||||
which ninja
|
||||
echo ${CXX}
|
||||
${CXX} --version
|
||||
python3 --version
|
||||
meson --version
|
||||
ninja --version
|
||||
meson --buildtype ${BUILD_TYPE} --default-library ${LIB_TYPE} . build-${LIB_TYPE}
|
||||
ninja -v -C build-${LIB_TYPE}
|
||||
#ninja -v -C build-${LIB_TYPE} test
|
||||
cd build-${LIB_TYPE}
|
||||
meson test --no-rebuild --print-errorlogs
|
||||
cd -
|
||||
rm -r build-${LIB_TYPE}
|
Reference in New Issue
Block a user