Skip to content

Commit fba22e3

Browse files
committed
[skip ci] travis: scripts cleanup
1 parent 52cc06c commit fba22e3

File tree

3 files changed

+0
-94
lines changed

3 files changed

+0
-94
lines changed

.travis.yml

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,6 @@ cache:
6565
aliases:
6666
- &precache_default
6767
stage: precache
68-
# os: linux
69-
# dist: xenial
70-
# language: cpp
71-
# compiler: gcc
7268
install:
7369
- . ./.travis_scripts/deps_install/install_common.sh
7470
script: echo "Preparing cache finished"
@@ -89,12 +85,6 @@ jobs:
8985
env: TEST_SUITE=pbl MPI=mvapich2
9086
- <<: *precache_default
9187
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
9888

9989
# excluded jobs
10090
exclude:
@@ -148,20 +138,7 @@ before_install:
148138
- if [[ $TRAVIS_OS_NAME == 'linux' && $CXX == 'clang++' ]]; then export COMPILER=clang++; fi
149139
- if [[ $TRAVIS_OS_NAME == 'linux' && $CXX == 'g++' ]]; then export COMPILER=g++; fi
150140
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then export COMPILER=clang++; fi # only clang on osx
151-
152-
# to avoid python lib/interpreter mismatch; https://github.com/travis-ci/travis-ci/issues/5326
153-
# - if [[ $TRAVIS_OS_NAME == 'linux' ]]; then export PATH=$(echo $PATH | tr ':' "\n" | sed '/\/opt\/python/d' | tr "\n" ":" | sed "s|::|:|g"); fi
154-
# - if [[ $TRAVIS_OS_NAME == 'linux' ]]; then sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu/ trusty main universe multiverse"; fi
155-
# - if [[ $TRAVIS_OS_NAME == 'linux' ]]; then sudo apt-get update; fi
156141
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then export apt_get_install="apt-get install --no-install-recommends -t xenial -y"; fi
157-
# - if [[ $TRAVIS_OS_NAME == 'osx' ]]; then brew update; fi
158-
159-
# - if [[ $TRAVIS_OS_NAME == 'osx' ]]; then brew tap homebrew/science; fi
160-
# - if [[ $TRAVIS_OS_NAME == 'osx' ]]; then rvm get stable; fi #see https://github.com/travis-ci/travis-ci/issues/6307
161-
162-
# Workaround for upgrading gcc, see https://github.com/travis-ci/travis-ci/issues/8826
163-
# Seems like this is now done by Travis, but leaving it (commented out) for now
164-
#- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then brew cask uninstall oclint; fi
165142

166143
# gnuplot-iostream
167144
- git clone -n https://github.com/dstahlke/gnuplot-iostream && cd gnuplot-iostream
@@ -191,18 +168,13 @@ before_install:
191168
# testing Python 3 on Linux
192169
- export PY3DEB=""
193170
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then PY3DEB=3; fi
194-
# - PY3DEB=3 # had problems with building h5py using python3-pip
195-
# - if [[ $PY3DEB != '' ]]; then sudo apt-get install python3-dev; fi
196171

197172
# upgrade pip
198-
#- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then sudo pip install --upgrade pip; fi
199173
- sudo pip$PY3DEB install --upgrade pip
200174

201175
install:
202176
- . ./.travis_scripts/deps_install/install_common.sh
203177

204-
# - if [[ $TRAVIS_OS_NAME == 'linux' ]]; then sudo $apt_get_install -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" libpango-1.0-0 libpangocairo-1.0-0 libhdf5-dev; fi
205-
# - if [[ $TRAVIS_OS_NAME == 'linux' ]]; then sudo $apt_get_install hdf5-tools; fi
206178
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then brew install hdf5; fi
207179

208180
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then sudo $apt_get_install gnuplot-nox; fi

.travis_scripts/UWLCM.sh

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,6 @@ cd libmpdata++/build
1111
sudo make install
1212
cd ../..
1313

14-
# making Python 2 back the default if needed - TODO: support Python3 in libcloudph++
15-
# if [[ $PY3DEB != '' ]]; then sudo update-alternatives --remove python /usr/bin/python3; fi
16-
# if [[ $PY3DEB != '' ]]; then sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 10; fi
17-
18-
# libcloudph++'s dependencies
19-
#if [[ $TRAVIS_OS_NAME == 'linux' ]]; then sudo $apt_get_install libboost-python1.55-dev python-numpy; fi
20-
#if [[ $TRAVIS_OS_NAME == 'linux' ]]; then sudo $apt_get_install python3-numpy; fi
21-
#
22-
#if [[ $TRAVIS_OS_NAME == 'osx' ]]; then brew install boost-python; fi
23-
24-
# odeint
25-
#if [[ $TRAVIS_OS_NAME == 'linux' ]]; then git clone --depth=1 https://github.com/boostorg/odeint.git; fi # get boost odeint > 1.58
26-
#if [[ $TRAVIS_OS_NAME == 'linux' ]]; then sudo rm -f /usr/include/boost/numeric/odeint.hpp; fi
27-
#if [[ $TRAVIS_OS_NAME == 'linux' ]]; then sudo rm -rf /usr/include/boost/numeric/odeint; fi
28-
#if [[ $TRAVIS_OS_NAME == 'linux' ]]; then sudo ln -s `pwd`/odeint/include/boost/numeric/odeint.hpp /usr/include/boost/numeric/odeint.hpp; fi
29-
#if [[ $TRAVIS_OS_NAME == 'linux' ]]; then sudo ln -s `pwd`/odeint/include/boost/numeric/odeint /usr/include/boost/numeric/; fi
30-
3114
# newest thrust
3215
git clone --depth=1 git://github.com/thrust/thrust.git;
3316
sudo ln -s `pwd`/thrust/thrust /usr/local/include/thrust;

.travis_scripts/deps_install/install_common.sh

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,6 @@ if [[ $TRAVIS_OS_NAME == 'linux' && $COMPILER == 'g++' ]]; then export CXX=g
1818
# downloads and setups local clang on osx
1919
if [[ $TEST_SUITE == 'osx_local_clang' ]]; then . ./.travis_scripts/setup_local_clang.sh; fi
2020

21-
#<<<<<<< HEAD
22-
# add a definition -DBOOST_HAS_INT128=1 to clang calls on linux to avoid errors with boost.atomic (https://svn.boost.org/trac/boost/ticket/9610)
23-
# if [[ $TRAVIS_OS_NAME == 'linux' && $CXX == 'clang++' ]]; then mkdir /tmp/bin; fi
24-
# if [[ $TRAVIS_OS_NAME == 'linux' && $CXX == 'clang++' ]]; then printf "#!/bin/sh\nexec /usr/bin/clang++ -DBOOST_HAS_INT128=1 \"\$@\"" > /tmp/bin/clang++; fi
25-
# if [[ $TRAVIS_OS_NAME == 'linux' && $CXX == 'clang++' ]]; then chmod +x /tmp/bin/clang++; fi
26-
# if [[ $TRAVIS_OS_NAME == 'linux' && $CXX == 'clang++' ]]; then sudo ln -sf /tmp/bin/clang++ /usr/bin/clang++; fi
27-
# put /usr/bin first to use clang++-3.5 instead of the default 3.4
28-
#if [[ $TRAVIS_OS_NAME == 'linux' && $CXX == 'clang++' ]]; then export PATH=/usr/bin:$PATH; fi
29-
3021
if [[ $TRAVIS_OS_NAME == 'linux' && $CXX == 'clang++' ]]; then export CXXFLAGS="-DBOOST_HAS_INT128=1 ${CXXFLAGS}"; fi
3122

3223
# cmake
@@ -61,50 +52,10 @@ if [[ $MPI == 'openmpi' ]]; then sudo $apt_get_install openmpi-bin libopenmpi-d
6152
if [[ $MPI != 'none' ]]; then export CXX=${DEPS_DIR}/mvapich2-2.3b/bin/mpic++ ; fi # full path, since libtool in hdf5 installation does not understand PATH set above (?)
6253
if [[ $MPI != 'none' ]]; then export CC=${DEPS_DIR}/mvapich2-2.3b/bin/mpicc ; fi
6354

64-
# boost
65-
#if [[ $TRAVIS_OS_NAME == 'linux' ]]; then sudo $apt_get_install libboost-thread1.55-dev libboost-timer1.55-dev libboost-iostreams1.55-dev libboost-filesystem1.55-dev; fi
66-
#if [[ $TRAVIS_OS_NAME == 'linux' && $MPI != 'none' ]]; then sudo $apt_get_install libboost-mpi1.55-dev; fi
67-
#if [[ $TRAVIS_OS_NAME == 'osx' ]]; then brew reinstall boost --c++11; fi # ...what takes too long :(
68-
6955
# no MPI
7056
if [[ $TRAVIS_OS_NAME == 'linux' && $MPI == 'none' ]]; then
71-
# 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
7357
sudo $apt_get_install boost1.61
7458
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
75-
# UWLCM test without MPI - we need boost.python3 >=1.63(?) for libcloud bindings
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
10859
fi
10960

11061
# 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)