Skip to content

Commit 52cc06c

Browse files
committed
travis: uwlcm tests: boost from package, link to proper boost python
1 parent 823ac55 commit 52cc06c

File tree

2 files changed

+41
-40
lines changed

2 files changed

+41
-40
lines changed

.travis.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,12 @@ jobs:
8989
env: TEST_SUITE=pbl MPI=mvapich2
9090
- <<: *precache_default
9191
env: TEST_SUITE=bconds_div MPI=mvapich2
92-
- <<: *precache_default
93-
env: TEST_SUITE=UWLCM_MT MPI=none
94-
- <<: *precache_default
95-
env: TEST_SUITE=UWLCM_unit_iles MPI=none
96-
- <<: *precache_default
97-
env: TEST_SUITE=UWLCM_unit_smg MPI=none
92+
# - <<: *precache_default
93+
# env: TEST_SUITE=UWLCM_MT MPI=none
94+
# - <<: *precache_default
95+
# env: TEST_SUITE=UWLCM_unit_iles MPI=none
96+
# - <<: *precache_default
97+
# env: TEST_SUITE=UWLCM_unit_smg MPI=none
9898

9999
# excluded jobs
100100
exclude:

.travis_scripts/deps_install/install_common.sh

Lines changed: 35 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -69,41 +69,42 @@ if [[ $MPI != 'none' ]]; then export CC=${DEPS_DIR}/mvapich2-2.3b/bin/mpicc ;
6969
# no MPI
7070
if [[ $TRAVIS_OS_NAME == 'linux' && $MPI == 'none' ]]; then
7171
# not UWLCM test - get boost from the repository
72-
if [[ $TEST_SUITE != 'UWLCM_MT' && $TEST_SUITE != 'UWLCM_unit_iles' && $TEST_SUITE != 'UWLCM_unit_smg' ]]; then
73-
sudo $apt_get_install boost1.61
72+
# if [[ $TEST_SUITE != 'UWLCM_MT' && $TEST_SUITE != 'UWLCM_unit_iles' && $TEST_SUITE != 'UWLCM_unit_smg' ]]; then
73+
sudo $apt_get_install boost1.61
74+
sudo ln -s /usr/lib/x86_64-linux-gnu/libboost_python-py35.so /usr/lib/x86_64-linux-gnu/libboost_python3.so # different naming conventions for boost python with python 3
7475
# UWLCM test without MPI - we need boost.python3 >=1.63(?) for libcloud bindings
75-
else
76-
ls -A ${DEPS_DIR}/boost
77-
if [[ -z "$(ls -A ${DEPS_DIR}/boost)" ]]; then
78-
wget http://sourceforge.net/projects/boost/files/boost/1.65.1/boost_1_65_1.tar.gz
79-
tar xf boost_1_65_1.tar.gz
80-
cd boost_1_65_1
81-
# configure and install
82-
if [[ $COMPILER == 'g++' ]]; then echo "using gcc : 6.2 : g++-6 ;" > $HOME/user-config.jam; fi
83-
if [[ $COMPILER == 'clang++' ]]; then echo "using clang : 5.0 : clang++-5.0 ;" > $HOME/user-config.jam; fi
84-
echo "using python : 3.5 : /opt/pyenv/shims/python3 ;" >> $HOME/user-config.jam
85-
cat $HOME/user-config.jam
86-
if [[ $COMPILER == 'g++' ]]; then
87-
./bootstrap.sh --prefix=${DEPS_DIR}/boost/ --with-libraries=thread,date_time,system,iostreams,timer,filesystem,program_options,python
88-
./b2 -d0 install
89-
fi
90-
if [[ $COMPILER == 'clang++' ]]; then
91-
#clang installation taken from https://gist.github.com/jimporter/10442880
92-
./bootstrap.sh --prefix=${DEPS_DIR}/boost/ --with-libraries=thread,date_time,system,iostreams,timer,filesystem,program_options,python --with-toolset=clang
93-
./b2 clean
94-
./b2 toolset=clang cxxflags="-std=c++14 -stdlib=libc++" linkflags="-stdlib=libc++" --prefix=${DEPS_DIR}/boost/ -j 4 stage release
95-
./b2 install toolset=clang cxxflags="-std=c++14 -stdlib=libc++" linkflags="-stdlib=libc++" --prefix=${DEPS_DIR}/boost/
96-
fi
97-
cd ..
98-
else
99-
echo "Using cached boost."
100-
fi
101-
export BOOST_ROOT=${DEPS_DIR}/boost
102-
export LD_LIBRARY_PATH=${DEPS_DIR}/boost/lib:${LD_LIBRARY_PATH}
103-
export LD_RUN_PATH=${DEPS_DIR}/boost/lib:${LD_RUN_PATH}
104-
export LIBRARY_PATH=${DEPS_DIR}/boost/lib:${LIBRARY_PATH}
105-
export CPATH=${DEPS_DIR}/boost/include:${CPATH}
106-
fi
76+
# else
77+
# ls -A ${DEPS_DIR}/boost
78+
# if [[ -z "$(ls -A ${DEPS_DIR}/boost)" ]]; then
79+
# wget http://sourceforge.net/projects/boost/files/boost/1.65.1/boost_1_65_1.tar.gz
80+
# tar xf boost_1_65_1.tar.gz
81+
# cd boost_1_65_1
82+
# # configure and install
83+
# if [[ $COMPILER == 'g++' ]]; then echo "using gcc : 6.2 : g++-6 ;" > $HOME/user-config.jam; fi
84+
# if [[ $COMPILER == 'clang++' ]]; then echo "using clang : 5.0 : clang++-5.0 ;" > $HOME/user-config.jam; fi
85+
# echo "using python : 3.5 : /opt/pyenv/shims/python3 ;" >> $HOME/user-config.jam
86+
# cat $HOME/user-config.jam
87+
# if [[ $COMPILER == 'g++' ]]; then
88+
# ./bootstrap.sh --prefix=${DEPS_DIR}/boost/ --with-libraries=thread,date_time,system,iostreams,timer,filesystem,program_options,python
89+
# ./b2 -d0 install
90+
# fi
91+
# if [[ $COMPILER == 'clang++' ]]; then
92+
# #clang installation taken from https://gist.github.com/jimporter/10442880
93+
# ./bootstrap.sh --prefix=${DEPS_DIR}/boost/ --with-libraries=thread,date_time,system,iostreams,timer,filesystem,program_options,python --with-toolset=clang
94+
# ./b2 clean
95+
# ./b2 toolset=clang cxxflags="-std=c++14 -stdlib=libc++" linkflags="-stdlib=libc++" --prefix=${DEPS_DIR}/boost/ -j 4 stage release
96+
# ./b2 install toolset=clang cxxflags="-std=c++14 -stdlib=libc++" linkflags="-stdlib=libc++" --prefix=${DEPS_DIR}/boost/
97+
# fi
98+
# cd ..
99+
# else
100+
# echo "Using cached boost."
101+
# fi
102+
# export BOOST_ROOT=${DEPS_DIR}/boost
103+
# export LD_LIBRARY_PATH=${DEPS_DIR}/boost/lib:${LD_LIBRARY_PATH}
104+
# export LD_RUN_PATH=${DEPS_DIR}/boost/lib:${LD_RUN_PATH}
105+
# export LIBRARY_PATH=${DEPS_DIR}/boost/lib:${LIBRARY_PATH}
106+
# export CPATH=${DEPS_DIR}/boost/include:${CPATH}
107+
# fi
107108
fi
108109

109110
# for MPI we need boost>=1.59 with mpi support, boost installation based on https://github.com/boostorg/compute/blob/master/.travis.yml

0 commit comments

Comments
 (0)