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:
Hans Johnson
2019-01-12 08:54:50 -06:00
committed by Hans Johnson
parent fa61a49b83
commit 10a1a38b37
6 changed files with 7 additions and 10 deletions

View 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

View File

@@ -0,0 +1,5 @@
# NOTHING TO DO HERE
# set -vex
#brew install pyenv
#which pyenv

View 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}

View 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
View 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}