From 686a5820a02fe1c92de8c664ecedab9f27151534 Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Wed, 21 Aug 2019 09:44:53 +0100 Subject: [PATCH] Add circle-ci inspection run. --- .circleci/config.yml | 61 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 00000000..3706a983 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,61 @@ +version: 2 + +jobs: + build: + environment: + - BOOST_LIBRARY=process + - CXX_STANDARD=gnu++11 + docker: + - image: gcc:7 + steps: + - checkout + - run: + name: Setting up Environment + command: | + echo 'export BOOST="$HOME/boost-local"' >> $BASH_ENV + if [ $CIRCLE_BRANCH = "master" ]; then + echo 'export BOOST_BRANCH="master"' >> $BASH_ENV; + else + echo 'export BOOST_BRANCH="develop"' >> $BASH_ENV; + fi + echo 'export BOOST_REMOVE="$BOOST/libs/$BOOST_LIBRARY"' >> $BASH_ENV + HOME_SED_=$(echo $HOME | sed -e 's/\//\\\//g') + echo 'export HOME_SED=$HOME_SED_' >> $BASH_ENV + - run: + name: install pre dependencies + command: | + apt-get update -yqq + apt-get install git -y + - run: + name: Initializing git repo for boost + command: | + mkdir boost-config + cd boost-config + echo Testing $CIRCLE_BRANCH + git remote add --no-tags -t $BOOST_BRANCH origin https://github.com/boostorg/boost.git + git fetch --depth=1 + git checkout $BOOST_BRANCH + git submodule update --init --merge + git remote set-branches --add origin $BOOST_BRANCH + git pull --recurse-submodules + git submodule update --init + git checkout $BOOST_BRANCH + git submodule foreach "git reset --quiet --hard; git clean -fxd" + git reset --hard; git clean -fxd + git status + rm -rf $BOOST_REMOVE + mv $HOME/project $BOOST_REMOVE + - run: + name: Bootstrapping boost-build + command: | + cd $BOOST + ./bootstrap.sh + ./b2 headers + - run: + name: Building inspect + command: | + cd tools/inspect/build && ../../../b2 -j2 address-model=64 architecture=x86 toolset=gcc cxxflags="-std=gnu++14" release dist-bin + - run: + name: Running Inspect + command: | + cd $BOOST_REMOVE && ../../dist/bin/inspect -text -license -copyright -crlf -end -link -path_name -tab -ascii -apple_macro -assert_macro -minmax -unnamed -version-string