move external dependence mapbox/variant into third_party directory

This commit is contained in:
Dennis Luxen
2015-01-20 18:06:26 +01:00
parent ec9b2dbe42
commit 501863a0eb
24 changed files with 0 additions and 0 deletions
+40
View File
@@ -0,0 +1,40 @@
#!/usr/bin/env bash
set -e -u
set -o pipefail
# ppa for latest boost
sudo add-apt-repository -y ppa:boost-latest/ppa
# ppa for g++ 4.7 and 4.8
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get update -y
# install boost headers and g++ upgrades
sudo apt-get -y -qq install boost1.55 gcc-4.8 g++-4.8 gcc-4.7 g++-4.7
# run tests against g++ 4.7
export CXX="g++-4.7"; export CC="gcc-4.7"
echo 'running tests against g++ 4.7'
make test
make bench
make clean
# run tests against g++ 4.8
export CXX="g++-4.8"; export CC="gcc-4.8"
echo 'running tests against g++ 4.8'
make test
make bench
make clean
# compare object sizes against boost::variant
echo 'comparing object sizes to boost::variant'
make sizes /usr/include/boost/variant.hpp
make clean
# test building with gyp
echo 'testing build with gyp'
make gyp
# set strictness back to normal
# to avoid tripping up travis
set +e +u
+20
View File
@@ -0,0 +1,20 @@
#!/usr/bin/env bash
set -e -u
set -o pipefail
# install boost headers
brew unlink boost
brew install boost
# run tests
make test
make bench
make clean
# compare object sizes against boost::variant
make sizes `brew --prefix`/include/boost/variant.hpp
make clean
# test building with gyp
make gyp