mirror of
https://github.com/boostorg/metaparse.git
synced 2026-07-21 13:23:39 +00:00
add drone config [ci skip]
This commit is contained in:
+32
@@ -0,0 +1,32 @@
|
||||
# Use, modification, and distribution are
|
||||
# subject to the Boost Software License, Version 1.0. (See accompanying
|
||||
# file LICENSE.txt)
|
||||
#
|
||||
# Copyright Rene Rivera 2020.
|
||||
|
||||
# For Drone CI we use the Starlark scripting language to reduce duplication.
|
||||
# As the yaml syntax for Drone CI is rather limited.
|
||||
#
|
||||
#
|
||||
globalenv={}
|
||||
linuxglobalimage="cppalliance/droneubuntu1404:1"
|
||||
windowsglobalimage="cppalliance/dronevs2019"
|
||||
|
||||
def main(ctx):
|
||||
return [
|
||||
linux_cxx("CXX_VER=3.4 TOOLSET=clang STD=c++98 Job 0", "clang++", packages="doxygen xsltproc", buildtype="4e3fa5de4a-f44b5bccc0", buildscript="drone", image=linuxglobalimage, environment={'CXX_VER': '3.4', 'TOOLSET': 'clang', 'STD': 'c++98', 'DRONE_JOB_UUID': 'b6589fc6ab'}, globalenv=globalenv),
|
||||
linux_cxx("CXX_VER=3.5.2 TOOLSET=clang STD=c++98 Job 1", "clang++", packages="doxygen xsltproc", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'CXX_VER': '3.5.2', 'TOOLSET': 'clang', 'STD': 'c++98', 'DRONE_JOB_UUID': '356a192b79'}, globalenv=globalenv),
|
||||
linux_cxx("CXX_VER=3.5.2 TOOLSET=clang STD=c++11 Job 2", "clang++", packages="doxygen xsltproc", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'CXX_VER': '3.5.2', 'TOOLSET': 'clang', 'STD': 'c++11', 'DRONE_JOB_UUID': 'da4b9237ba'}, globalenv=globalenv),
|
||||
linux_cxx("CXX_VER=3.6.2 TOOLSET=clang STD=c++98 Job 3", "clang++", packages="doxygen xsltproc", buildtype="fea35f4805-f44b5bccc0", buildscript="drone", image=linuxglobalimage, environment={'CXX_VER': '3.6.2', 'TOOLSET': 'clang', 'STD': 'c++98', 'DRONE_JOB_UUID': '77de68daec'}, globalenv=globalenv),
|
||||
linux_cxx("CXX_VER=3.6.2 TOOLSET=clang STD=c++11 Job 4", "clang++", packages="doxygen xsltproc", buildtype="fea35f4805-f44b5bccc0", buildscript="drone", image=linuxglobalimage, environment={'CXX_VER': '3.6.2', 'TOOLSET': 'clang', 'STD': 'c++11', 'DRONE_JOB_UUID': '1b64538924'}, globalenv=globalenv),
|
||||
linux_cxx("CXX_VER=4.6 TOOLSET=gcc STD=c++98 Job 5", "g++", packages="g++-4.6 doxygen xsltproc", buildtype="dfd0ac5626-f44b5bccc0", buildscript="drone", image=linuxglobalimage, environment={'CXX_VER': '4.6', 'TOOLSET': 'gcc', 'STD': 'c++98', 'DRONE_JOB_UUID': 'ac3478d69a'}, globalenv=globalenv),
|
||||
linux_cxx("CXX_VER=4.7 TOOLSET=gcc STD=c++98 Job 6", "g++", packages="g++-4.7 doxygen xsltproc", buildtype="0e39902f2e-f44b5bccc0", buildscript="drone", image=linuxglobalimage, environment={'CXX_VER': '4.7', 'TOOLSET': 'gcc', 'STD': 'c++98', 'DRONE_JOB_UUID': 'c1dfd96eea'}, globalenv=globalenv),
|
||||
linux_cxx("CXX_VER=4.7 TOOLSET=gcc STD=c++11 Job 7", "g++", packages="g++-4.7 doxygen xsltproc", buildtype="0e39902f2e-f44b5bccc0", buildscript="drone", image=linuxglobalimage, environment={'CXX_VER': '4.7', 'TOOLSET': 'gcc', 'STD': 'c++11', 'DRONE_JOB_UUID': '902ba3cda1'}, globalenv=globalenv),
|
||||
linux_cxx("CXX_VER=4.8 TOOLSET=gcc STD=c++98 Job 8", "g++", packages="g++-4.8 doxygen xsltproc", buildtype="91b94bb329-f44b5bccc0", buildscript="drone", image=linuxglobalimage, environment={'CXX_VER': '4.8', 'TOOLSET': 'gcc', 'STD': 'c++98', 'DRONE_JOB_UUID': 'fe5dbbcea5'}, globalenv=globalenv),
|
||||
linux_cxx("CXX_VER=4.8 TOOLSET=gcc STD=c++11 Job 9", "g++", packages="g++-4.8 doxygen xsltproc", buildtype="91b94bb329-f44b5bccc0", buildscript="drone", image=linuxglobalimage, environment={'CXX_VER': '4.8', 'TOOLSET': 'gcc', 'STD': 'c++11', 'DRONE_JOB_UUID': '0ade7c2cf9'}, globalenv=globalenv),
|
||||
linux_cxx("CXX_VER=4.9 TOOLSET=gcc STD=c++98 Job 10", "g++", packages="g++-4.9 doxygen xsltproc", buildtype="bb699d113a-f44b5bccc0", buildscript="drone", image=linuxglobalimage, environment={'CXX_VER': '4.9', 'TOOLSET': 'gcc', 'STD': 'c++98', 'DRONE_JOB_UUID': 'b1d5781111'}, globalenv=globalenv),
|
||||
linux_cxx("CXX_VER=4.9 TOOLSET=gcc STD=c++11 Job 11", "g++", packages="g++-4.9 doxygen xsltproc", buildtype="bb699d113a-f44b5bccc0", buildscript="drone", image=linuxglobalimage, environment={'CXX_VER': '4.9', 'TOOLSET': 'gcc', 'STD': 'c++11', 'DRONE_JOB_UUID': '17ba079149'}, globalenv=globalenv),
|
||||
]
|
||||
|
||||
# from https://github.com/boostorg/boost-ci
|
||||
load("@boost_ci//ci/drone/:functions.star", "linux_cxx","windows_cxx","osx_cxx","freebsd_cxx")
|
||||
Executable
+400
@@ -0,0 +1,400 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Copyright 2020 Rene Rivera, Sam Darwin
|
||||
# Distributed under the Boost Software License, Version 1.0.
|
||||
# (See accompanying file LICENSE.txt or copy at http://boost.org/LICENSE_1_0.txt)
|
||||
|
||||
set -e
|
||||
export TRAVIS_BUILD_DIR=$(pwd)
|
||||
export DRONE_BUILD_DIR=$(pwd)
|
||||
export TRAVIS_BRANCH=$DRONE_BRANCH
|
||||
export VCS_COMMIT_ID=$DRONE_COMMIT
|
||||
export GIT_COMMIT=$DRONE_COMMIT
|
||||
export REPO_NAME=$DRONE_REPO
|
||||
export PATH=~/.local/bin:/usr/local/bin:$PATH
|
||||
|
||||
if [ "$DRONE_JOB_BUILDTYPE" == "boost" ]; then
|
||||
|
||||
echo '==================================> INSTALL'
|
||||
|
||||
echo "using clang : 3.5 : clang++ ;" > ~/user-config.jam
|
||||
sudo pip install pep8 pylint
|
||||
|
||||
echo '==================================> SCRIPT'
|
||||
|
||||
if which pep8; then pep8 tools/string_headers.py; fi
|
||||
if which pylint; then pylint tools/string_headers.py; fi
|
||||
if [ "TOOLSET" == "clang" ]; then tools/get_clang.sh ${CXX_VER}; fi
|
||||
export PATH="${PWD}:${PATH}"
|
||||
if [ "${STD}" ]; then CXXFLAGS="cxxflags=\"-std=${STD}\""; fi
|
||||
echo "using doxygen ;" >> ~/user-config.jam
|
||||
echo "using xsltproc ;" >> ~/user-config.jam
|
||||
echo "using quickbook ;" >> ~/user-config.jam
|
||||
tools/build_environment.py --dep_json tools/deps.json --action checkout --out .boost
|
||||
cd .boost
|
||||
cd libs
|
||||
mkdir metaparse
|
||||
mv ../../* ../../.git ../../.travis.yml metaparse
|
||||
cd ..
|
||||
cd tools/boostbook
|
||||
wget http://abel.web.elte.hu/boost_book_dependencies/docbook-xml-4.2.zip
|
||||
wget http://abel.web.elte.hu/boost_book_dependencies/docbook-xsl-1.75.2.tar.gz
|
||||
wget http://abel.web.elte.hu/boost_book_dependencies/fop-0.94-bin-jdk1.4.tar.gz
|
||||
./setup_boostbook.sh
|
||||
cd ../..
|
||||
cat ~/user-config.jam
|
||||
./bootstrap.sh --with-toolset=$TOOLSET
|
||||
./b2 headers
|
||||
cd libs
|
||||
cd test/build
|
||||
../../../b2 -d+2
|
||||
cd ../..
|
||||
cd metaparse
|
||||
echo "Checking if all automatically generated files are up to date"
|
||||
rm doc/getting_started_*.qbk doc/before_*.qbk example/getting_started/*.hpp
|
||||
tools/generate_all.py
|
||||
git add -N .
|
||||
git diff --exit-code
|
||||
echo "Building the unit tests and the examples"
|
||||
cd test
|
||||
../../../b2 -d+2 ${CXXFLAGS}
|
||||
sed -i 's/#include <boost\/metaparse\/[^/]*\.hpp>/#include <boost\/metaparse.hpp>/' *.?pp
|
||||
../../../b2 -d+2 ${CXXFLAGS}
|
||||
cd ..
|
||||
cd example
|
||||
../../../b2 -d+2 ${CXXFLAGS}
|
||||
cd ..
|
||||
echo "Generating the documentation"
|
||||
cd doc
|
||||
../../../b2 boostdoc
|
||||
|
||||
elif [ "$DRONE_JOB_BUILDTYPE" == "4e3fa5de4a-f44b5bccc0" ]; then
|
||||
|
||||
echo '==================================> INSTALL'
|
||||
|
||||
sudo pip install pep8 pylint
|
||||
|
||||
echo '==================================> SCRIPT'
|
||||
|
||||
if which pep8; then pep8 tools/string_headers.py; fi
|
||||
if which pylint; then pylint tools/string_headers.py; fi
|
||||
if [ "TOOLSET" == "clang" ]; then tools/get_clang.sh ${CXX_VER}; fi
|
||||
export PATH="${PWD}:${PATH}"
|
||||
if [ "${STD}" ]; then CXXFLAGS="cxxflags=\"-std=${STD}\""; fi
|
||||
echo "using doxygen ;" >> ~/user-config.jam
|
||||
echo "using xsltproc ;" >> ~/user-config.jam
|
||||
echo "using quickbook ;" >> ~/user-config.jam
|
||||
tools/build_environment.py --dep_json tools/deps.json --action checkout --out .boost
|
||||
cd .boost
|
||||
cd libs
|
||||
mkdir metaparse
|
||||
mv ../../* ../../.git ../../.travis.yml metaparse
|
||||
cd ..
|
||||
cd tools/boostbook
|
||||
wget http://abel.web.elte.hu/boost_book_dependencies/docbook-xml-4.2.zip
|
||||
wget http://abel.web.elte.hu/boost_book_dependencies/docbook-xsl-1.75.2.tar.gz
|
||||
wget http://abel.web.elte.hu/boost_book_dependencies/fop-0.94-bin-jdk1.4.tar.gz
|
||||
./setup_boostbook.sh
|
||||
cd ../..
|
||||
cat ~/user-config.jam
|
||||
./bootstrap.sh --with-toolset=$TOOLSET
|
||||
./b2 headers
|
||||
cd libs
|
||||
cd test/build
|
||||
../../../b2 -d+2
|
||||
cd ../..
|
||||
cd metaparse
|
||||
echo "Checking if all automatically generated files are up to date"
|
||||
rm doc/getting_started_*.qbk doc/before_*.qbk example/getting_started/*.hpp
|
||||
tools/generate_all.py
|
||||
git add -N .
|
||||
git diff --exit-code
|
||||
echo "Building the unit tests and the examples"
|
||||
cd test
|
||||
../../../b2 -d+2 ${CXXFLAGS}
|
||||
sed -i 's/#include <boost\/metaparse\/[^/]*\.hpp>/#include <boost\/metaparse.hpp>/' *.?pp
|
||||
../../../b2 -d+2 ${CXXFLAGS}
|
||||
cd ..
|
||||
cd example
|
||||
../../../b2 -d+2 ${CXXFLAGS}
|
||||
cd ..
|
||||
echo "Generating the documentation"
|
||||
cd doc
|
||||
../../../b2 boostdoc
|
||||
|
||||
elif [ "$DRONE_JOB_BUILDTYPE" == "fea35f4805-f44b5bccc0" ]; then
|
||||
|
||||
echo '==================================> INSTALL'
|
||||
|
||||
echo "using clang : 3.6 : clang++ ;" > ~/user-config.jam
|
||||
sudo pip install pep8 pylint
|
||||
|
||||
echo '==================================> SCRIPT'
|
||||
|
||||
if which pep8; then pep8 tools/string_headers.py; fi
|
||||
if which pylint; then pylint tools/string_headers.py; fi
|
||||
if [ "TOOLSET" == "clang" ]; then tools/get_clang.sh ${CXX_VER}; fi
|
||||
export PATH="${PWD}:${PATH}"
|
||||
if [ "${STD}" ]; then CXXFLAGS="cxxflags=\"-std=${STD}\""; fi
|
||||
echo "using doxygen ;" >> ~/user-config.jam
|
||||
echo "using xsltproc ;" >> ~/user-config.jam
|
||||
echo "using quickbook ;" >> ~/user-config.jam
|
||||
tools/build_environment.py --dep_json tools/deps.json --action checkout --out .boost
|
||||
cd .boost
|
||||
cd libs
|
||||
mkdir metaparse
|
||||
mv ../../* ../../.git ../../.travis.yml metaparse
|
||||
cd ..
|
||||
cd tools/boostbook
|
||||
wget http://abel.web.elte.hu/boost_book_dependencies/docbook-xml-4.2.zip
|
||||
wget http://abel.web.elte.hu/boost_book_dependencies/docbook-xsl-1.75.2.tar.gz
|
||||
wget http://abel.web.elte.hu/boost_book_dependencies/fop-0.94-bin-jdk1.4.tar.gz
|
||||
./setup_boostbook.sh
|
||||
cd ../..
|
||||
cat ~/user-config.jam
|
||||
./bootstrap.sh --with-toolset=$TOOLSET
|
||||
./b2 headers
|
||||
cd libs
|
||||
cd test/build
|
||||
../../../b2 -d+2
|
||||
cd ../..
|
||||
cd metaparse
|
||||
echo "Checking if all automatically generated files are up to date"
|
||||
rm doc/getting_started_*.qbk doc/before_*.qbk example/getting_started/*.hpp
|
||||
tools/generate_all.py
|
||||
git add -N .
|
||||
git diff --exit-code
|
||||
echo "Building the unit tests and the examples"
|
||||
cd test
|
||||
../../../b2 -d+2 ${CXXFLAGS}
|
||||
sed -i 's/#include <boost\/metaparse\/[^/]*\.hpp>/#include <boost\/metaparse.hpp>/' *.?pp
|
||||
../../../b2 -d+2 ${CXXFLAGS}
|
||||
cd ..
|
||||
cd example
|
||||
../../../b2 -d+2 ${CXXFLAGS}
|
||||
cd ..
|
||||
echo "Generating the documentation"
|
||||
cd doc
|
||||
../../../b2 boostdoc
|
||||
|
||||
elif [ "$DRONE_JOB_BUILDTYPE" == "dfd0ac5626-f44b5bccc0" ]; then
|
||||
|
||||
echo '==================================> INSTALL'
|
||||
|
||||
echo "using gcc : 4.6 : g++-4.6 ;" > ~/user-config.jam
|
||||
sudo pip install pep8 pylint
|
||||
|
||||
echo '==================================> SCRIPT'
|
||||
|
||||
if which pep8; then pep8 tools/string_headers.py; fi
|
||||
if which pylint; then pylint tools/string_headers.py; fi
|
||||
if [ "TOOLSET" == "clang" ]; then tools/get_clang.sh ${CXX_VER}; fi
|
||||
export PATH="${PWD}:${PATH}"
|
||||
if [ "${STD}" ]; then CXXFLAGS="cxxflags=\"-std=${STD}\""; fi
|
||||
echo "using doxygen ;" >> ~/user-config.jam
|
||||
echo "using xsltproc ;" >> ~/user-config.jam
|
||||
echo "using quickbook ;" >> ~/user-config.jam
|
||||
tools/build_environment.py --dep_json tools/deps.json --action checkout --out .boost
|
||||
cd .boost
|
||||
cd libs
|
||||
mkdir metaparse
|
||||
mv ../../* ../../.git ../../.travis.yml metaparse
|
||||
cd ..
|
||||
cd tools/boostbook
|
||||
wget http://abel.web.elte.hu/boost_book_dependencies/docbook-xml-4.2.zip
|
||||
wget http://abel.web.elte.hu/boost_book_dependencies/docbook-xsl-1.75.2.tar.gz
|
||||
wget http://abel.web.elte.hu/boost_book_dependencies/fop-0.94-bin-jdk1.4.tar.gz
|
||||
./setup_boostbook.sh
|
||||
cd ../..
|
||||
cat ~/user-config.jam
|
||||
./bootstrap.sh --with-toolset=$TOOLSET
|
||||
./b2 headers
|
||||
cd libs
|
||||
cd test/build
|
||||
../../../b2 -d+2
|
||||
cd ../..
|
||||
cd metaparse
|
||||
echo "Checking if all automatically generated files are up to date"
|
||||
rm doc/getting_started_*.qbk doc/before_*.qbk example/getting_started/*.hpp
|
||||
tools/generate_all.py
|
||||
git add -N .
|
||||
git diff --exit-code
|
||||
echo "Building the unit tests and the examples"
|
||||
cd test
|
||||
../../../b2 -d+2 ${CXXFLAGS}
|
||||
sed -i 's/#include <boost\/metaparse\/[^/]*\.hpp>/#include <boost\/metaparse.hpp>/' *.?pp
|
||||
../../../b2 -d+2 ${CXXFLAGS}
|
||||
cd ..
|
||||
cd example
|
||||
../../../b2 -d+2 ${CXXFLAGS}
|
||||
cd ..
|
||||
echo "Generating the documentation"
|
||||
cd doc
|
||||
../../../b2 boostdoc
|
||||
|
||||
elif [ "$DRONE_JOB_BUILDTYPE" == "0e39902f2e-f44b5bccc0" ]; then
|
||||
|
||||
echo '==================================> INSTALL'
|
||||
|
||||
echo "using gcc : 4.7 : g++-4.7 ;" > ~/user-config.jam
|
||||
sudo pip install pep8 pylint
|
||||
|
||||
echo '==================================> SCRIPT'
|
||||
|
||||
if which pep8; then pep8 tools/string_headers.py; fi
|
||||
if which pylint; then pylint tools/string_headers.py; fi
|
||||
if [ "TOOLSET" == "clang" ]; then tools/get_clang.sh ${CXX_VER}; fi
|
||||
export PATH="${PWD}:${PATH}"
|
||||
if [ "${STD}" ]; then CXXFLAGS="cxxflags=\"-std=${STD}\""; fi
|
||||
echo "using doxygen ;" >> ~/user-config.jam
|
||||
echo "using xsltproc ;" >> ~/user-config.jam
|
||||
echo "using quickbook ;" >> ~/user-config.jam
|
||||
tools/build_environment.py --dep_json tools/deps.json --action checkout --out .boost
|
||||
cd .boost
|
||||
cd libs
|
||||
mkdir metaparse
|
||||
mv ../../* ../../.git ../../.travis.yml metaparse
|
||||
cd ..
|
||||
cd tools/boostbook
|
||||
wget http://abel.web.elte.hu/boost_book_dependencies/docbook-xml-4.2.zip
|
||||
wget http://abel.web.elte.hu/boost_book_dependencies/docbook-xsl-1.75.2.tar.gz
|
||||
wget http://abel.web.elte.hu/boost_book_dependencies/fop-0.94-bin-jdk1.4.tar.gz
|
||||
./setup_boostbook.sh
|
||||
cd ../..
|
||||
cat ~/user-config.jam
|
||||
./bootstrap.sh --with-toolset=$TOOLSET
|
||||
./b2 headers
|
||||
cd libs
|
||||
cd test/build
|
||||
../../../b2 -d+2
|
||||
cd ../..
|
||||
cd metaparse
|
||||
echo "Checking if all automatically generated files are up to date"
|
||||
rm doc/getting_started_*.qbk doc/before_*.qbk example/getting_started/*.hpp
|
||||
tools/generate_all.py
|
||||
git add -N .
|
||||
git diff --exit-code
|
||||
echo "Building the unit tests and the examples"
|
||||
cd test
|
||||
../../../b2 -d+2 ${CXXFLAGS}
|
||||
sed -i 's/#include <boost\/metaparse\/[^/]*\.hpp>/#include <boost\/metaparse.hpp>/' *.?pp
|
||||
../../../b2 -d+2 ${CXXFLAGS}
|
||||
cd ..
|
||||
cd example
|
||||
../../../b2 -d+2 ${CXXFLAGS}
|
||||
cd ..
|
||||
echo "Generating the documentation"
|
||||
cd doc
|
||||
../../../b2 boostdoc
|
||||
|
||||
elif [ "$DRONE_JOB_BUILDTYPE" == "91b94bb329-f44b5bccc0" ]; then
|
||||
|
||||
echo '==================================> INSTALL'
|
||||
|
||||
echo "using gcc : 4.8 : g++-4.8 ;" > ~/user-config.jam
|
||||
sudo pip install pep8 pylint
|
||||
|
||||
echo '==================================> SCRIPT'
|
||||
|
||||
if which pep8; then pep8 tools/string_headers.py; fi
|
||||
if which pylint; then pylint tools/string_headers.py; fi
|
||||
if [ "TOOLSET" == "clang" ]; then tools/get_clang.sh ${CXX_VER}; fi
|
||||
export PATH="${PWD}:${PATH}"
|
||||
if [ "${STD}" ]; then CXXFLAGS="cxxflags=\"-std=${STD}\""; fi
|
||||
echo "using doxygen ;" >> ~/user-config.jam
|
||||
echo "using xsltproc ;" >> ~/user-config.jam
|
||||
echo "using quickbook ;" >> ~/user-config.jam
|
||||
tools/build_environment.py --dep_json tools/deps.json --action checkout --out .boost
|
||||
cd .boost
|
||||
cd libs
|
||||
mkdir metaparse
|
||||
mv ../../* ../../.git ../../.travis.yml metaparse
|
||||
cd ..
|
||||
cd tools/boostbook
|
||||
wget http://abel.web.elte.hu/boost_book_dependencies/docbook-xml-4.2.zip
|
||||
wget http://abel.web.elte.hu/boost_book_dependencies/docbook-xsl-1.75.2.tar.gz
|
||||
wget http://abel.web.elte.hu/boost_book_dependencies/fop-0.94-bin-jdk1.4.tar.gz
|
||||
./setup_boostbook.sh
|
||||
cd ../..
|
||||
cat ~/user-config.jam
|
||||
./bootstrap.sh --with-toolset=$TOOLSET
|
||||
./b2 headers
|
||||
cd libs
|
||||
cd test/build
|
||||
../../../b2 -d+2
|
||||
cd ../..
|
||||
cd metaparse
|
||||
echo "Checking if all automatically generated files are up to date"
|
||||
rm doc/getting_started_*.qbk doc/before_*.qbk example/getting_started/*.hpp
|
||||
tools/generate_all.py
|
||||
git add -N .
|
||||
git diff --exit-code
|
||||
echo "Building the unit tests and the examples"
|
||||
cd test
|
||||
../../../b2 -d+2 ${CXXFLAGS}
|
||||
sed -i 's/#include <boost\/metaparse\/[^/]*\.hpp>/#include <boost\/metaparse.hpp>/' *.?pp
|
||||
../../../b2 -d+2 ${CXXFLAGS}
|
||||
cd ..
|
||||
cd example
|
||||
../../../b2 -d+2 ${CXXFLAGS}
|
||||
cd ..
|
||||
echo "Generating the documentation"
|
||||
cd doc
|
||||
../../../b2 boostdoc
|
||||
|
||||
elif [ "$DRONE_JOB_BUILDTYPE" == "bb699d113a-f44b5bccc0" ]; then
|
||||
|
||||
echo '==================================> INSTALL'
|
||||
|
||||
echo "using gcc : 4.9 : g++-4.9 ;" > ~/user-config.jam
|
||||
sudo pip install pep8 pylint
|
||||
|
||||
echo '==================================> SCRIPT'
|
||||
|
||||
if which pep8; then pep8 tools/string_headers.py; fi
|
||||
if which pylint; then pylint tools/string_headers.py; fi
|
||||
if [ "TOOLSET" == "clang" ]; then tools/get_clang.sh ${CXX_VER}; fi
|
||||
export PATH="${PWD}:${PATH}"
|
||||
if [ "${STD}" ]; then CXXFLAGS="cxxflags=\"-std=${STD}\""; fi
|
||||
echo "using doxygen ;" >> ~/user-config.jam
|
||||
echo "using xsltproc ;" >> ~/user-config.jam
|
||||
echo "using quickbook ;" >> ~/user-config.jam
|
||||
tools/build_environment.py --dep_json tools/deps.json --action checkout --out .boost
|
||||
cd .boost
|
||||
cd libs
|
||||
mkdir metaparse
|
||||
mv ../../* ../../.git ../../.travis.yml metaparse
|
||||
cd ..
|
||||
cd tools/boostbook
|
||||
wget http://abel.web.elte.hu/boost_book_dependencies/docbook-xml-4.2.zip
|
||||
wget http://abel.web.elte.hu/boost_book_dependencies/docbook-xsl-1.75.2.tar.gz
|
||||
wget http://abel.web.elte.hu/boost_book_dependencies/fop-0.94-bin-jdk1.4.tar.gz
|
||||
./setup_boostbook.sh
|
||||
cd ../..
|
||||
cat ~/user-config.jam
|
||||
./bootstrap.sh --with-toolset=$TOOLSET
|
||||
./b2 headers
|
||||
cd libs
|
||||
cd test/build
|
||||
../../../b2 -d+2
|
||||
cd ../..
|
||||
cd metaparse
|
||||
echo "Checking if all automatically generated files are up to date"
|
||||
rm doc/getting_started_*.qbk doc/before_*.qbk example/getting_started/*.hpp
|
||||
tools/generate_all.py
|
||||
git add -N .
|
||||
git diff --exit-code
|
||||
echo "Building the unit tests and the examples"
|
||||
cd test
|
||||
../../../b2 -d+2 ${CXXFLAGS}
|
||||
sed -i 's/#include <boost\/metaparse\/[^/]*\.hpp>/#include <boost\/metaparse.hpp>/' *.?pp
|
||||
../../../b2 -d+2 ${CXXFLAGS}
|
||||
cd ..
|
||||
cd example
|
||||
../../../b2 -d+2 ${CXXFLAGS}
|
||||
cd ..
|
||||
echo "Generating the documentation"
|
||||
cd doc
|
||||
../../../b2 boostdoc
|
||||
|
||||
fi
|
||||
Reference in New Issue
Block a user