Skip to content

Commit 9b5c0c3

Browse files
committed
Boost does not yet build from conan with mpi, thus, leave it open for later.
1 parent ac091e9 commit 9b5c0c3

File tree

2 files changed

+27
-24
lines changed

2 files changed

+27
-24
lines changed

.travis.yml

Lines changed: 26 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,30 @@ install:
6969
cd -;
7070
fi
7171
- cmake --version;
72+
#############################################################################
73+
# BOOST #
74+
#############################################################################
75+
- export CMAKE_PREFIX_PATH=$BOOST_ROOT:$CMAKE_PREFIX_PATH;
76+
- cmake --find-package -DNAME=Boost -DCOMPILER_ID=GNU -DLANGUAGE=CXX -DMODE=EXIST
77+
- echo -e "#include <boost/version.hpp>\n#include <iostream>\nint main() { std::cout << BOOST_VERSION << std::endl; return 0; }"
78+
| $CXX -I$BOOST_ROOT/include -x c++ - >/dev/null || { echo 0; }
79+
- ls $BOOST_ROOT
80+
- BOOST_FOUND=$([ $(./a.out) -ge $BOOST_MIN ] && { echo 0; } || { echo 1; });
81+
- if [ $BOOST_FOUND -ne 0 ]; then
82+
mkdir -p $BOOST_ROOT &&
83+
cd $BOOST_ROOT &&
84+
travis_retry wget --no-check-certificate -O boost.tar.bz2 http://sourceforge.net/projects/boost/files/boost/1.61.0/boost_1_61_0.tar.bz2/download &&
85+
tar -xjf boost.tar.bz2 --overwrite &&
86+
cd boost_1_61_0 &&
87+
echo "using gcc "":"" 6 "":"" /usr/bin/g++-6 ; " >> tools/build/src/user-config.jam &&
88+
./bootstrap.sh toolset=gcc-6 --with-libraries=filesystem,mpi,program_options,system,test,serialization --prefix=$BOOST_ROOT &&
89+
echo "using mpi ;" >> tools/build/src/user-config.jam &&
90+
./b2 -j2 -target=shared,static &&
91+
./b2 install &&
92+
rm -rf boost.tar.bz2 boost_1_61_0 &&
93+
cd $HOME;
94+
fi;
95+
7296

7397
#############################################################################
7498
# Resolve dependencies manually
@@ -80,29 +104,7 @@ install:
80104
pip install conan --user;
81105
fi
82106

83-
#############################################################################
84-
# BOOST #
85-
#############################################################################
86-
# export CMAKE_PREFIX_PATH=$BOOST_ROOT:$CMAKE_PREFIX_PATH;
87-
# # cmake --find-package -DNAME=Boost -DCOMPILER_ID=GNU -DLANGUAGE=CXX -DMODE=EXIST
88-
# echo -e "#include <boost/version.hpp>\n#include <iostream>\nint main() { std::cout << BOOST_VERSION << std::endl; return 0; }";
89-
# | $CXX -I$BOOST_ROOT/include -x c++ - >/dev/null || { echo 0; }
90-
# ls $BOOST_ROOT;
91-
# BOOST_FOUND=$([ $(./a.out) -ge $BOOST_MIN ] && { echo 0; } || { echo 1; });
92-
# if [ $BOOST_FOUND -ne 0 ]; then
93-
# mkdir -p $BOOST_ROOT &&
94-
# cd $BOOST_ROOT &&
95-
# travis_retry wget --no-check-certificate -O boost.tar.bz2 http://sourceforge.net/projects/boost/files/boost/1.61.0/boost_1_61_0.tar.bz2/download &&
96-
# tar -xjf boost.tar.bz2 --overwrite &&
97-
# cd boost_1_61_0 &&
98-
# echo "using gcc "":"" 6 "":"" /usr/bin/g++-6 ; " >> tools/build/src/user-config.jam &&
99-
# ./bootstrap.sh toolset=gcc-6 --with-libraries=filesystem,mpi,program_options,system,test,serialization --prefix=$BOOST_ROOT &&
100-
# echo "using mpi ;" >> tools/build/src/user-config.jam &&
101-
# ./b2 -j2 -target=shared,static &&
102-
# ./b2 install &&
103-
# rm -rf boost.tar.bz2 boost_1_61_0 &&
104-
# cd $HOME;
105-
# fi;
107+
106108
#############################################################################
107109
# ZMQ #
108110
#############################################################################
@@ -130,6 +132,7 @@ install:
130132
# echo "Resolve library dependencies using conan.";
131133

132134
# fi
135+
# TODO Metis
133136

134137
script:
135138
- if [ "$RESOLVE_DEPS_BY" == "manual" ]; then

conanfile.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[requires]
22
zmqcpp/4.1.1@memsharded/stable
33
Metis/5.1.0.p1@erikzenker/testing
4-
Boost/1.62.0.beta.1@erikzenker/testing
4+
#Boost/1.62.0.beta.1@erikzenker/testing
55

66
[generators]
77
cmake

0 commit comments

Comments
 (0)