forked from boostorg/config
Change boost init for circle-ci
This commit is contained in:
@ -18,7 +18,7 @@ jobs:
|
|||||||
else
|
else
|
||||||
echo 'export BOOST_BRANCH="develop"' >> $BASH_ENV;
|
echo 'export BOOST_BRANCH="develop"' >> $BASH_ENV;
|
||||||
fi
|
fi
|
||||||
echo 'export BOOST_REMOVE="$BOOST/libs/$BOOST_LIBRARY"' >> $BASH_ENV
|
echo 'export BOOST_REMOVE="$BOOST/boost/libs/$BOOST_LIBRARY"' >> $BASH_ENV
|
||||||
HOME_SED_=$(echo $HOME | sed -e 's/\//\\\//g')
|
HOME_SED_=$(echo $HOME | sed -e 's/\//\\\//g')
|
||||||
echo 'export HOME_SED=$HOME_SED_' >> $BASH_ENV
|
echo 'export HOME_SED=$HOME_SED_' >> $BASH_ENV
|
||||||
- run:
|
- run:
|
||||||
@ -29,33 +29,28 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: Initializing git repo for boost
|
name: Initializing git repo for boost
|
||||||
command: |
|
command: |
|
||||||
|
echo BOOST=$BOOST BOOST_REMOVE=$BOOST_REMOVE BOOST_LIBRARY=$BOOST_LIBRARY BOOST_BRANCH=$BOOST_BRANCH PWD=$PWD
|
||||||
mkdir $BOOST
|
mkdir $BOOST
|
||||||
cd $BOOST
|
cd $BOOST
|
||||||
echo Testing $CIRCLE_BRANCH
|
git clone --single-branch --branch $BOOST_BRANCH https://github.com/boostorg/boost.git
|
||||||
git remote add --no-tags -t $BOOST_BRANCH origin https://github.com/boostorg/boost.git
|
cd boost
|
||||||
git fetch --depth=1
|
|
||||||
git checkout $BOOST_BRANCH
|
|
||||||
git submodule update --init --merge
|
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
|
rm -rf $BOOST_REMOVE
|
||||||
mv $HOME/project $BOOST_REMOVE
|
mv $HOME/project $BOOST_REMOVE
|
||||||
- run:
|
- run:
|
||||||
name: Bootstrapping boost-build
|
name: Bootstrapping boost-build
|
||||||
command: |
|
command: |
|
||||||
|
echo $PWD
|
||||||
cd $BOOST
|
cd $BOOST
|
||||||
./bootstrap.sh
|
./bootstrap.sh
|
||||||
./b2 headers
|
./b2 headers
|
||||||
- run:
|
- run:
|
||||||
name: Building inspect
|
name: Building inspect
|
||||||
command: |
|
command: |
|
||||||
|
echo $PWD
|
||||||
cd tools/inspect/build && ../../../b2 -j2 address-model=64 architecture=x86 toolset=gcc cxxflags="-std=gnu++14" release dist-bin
|
cd tools/inspect/build && ../../../b2 -j2 address-model=64 architecture=x86 toolset=gcc cxxflags="-std=gnu++14" release dist-bin
|
||||||
- run:
|
- run:
|
||||||
name: Running Inspect
|
name: Running Inspect
|
||||||
command: |
|
command: |
|
||||||
|
echo $PWD
|
||||||
cd $BOOST_REMOVE && ../../dist/bin/inspect -text -license -copyright -crlf -end -link -path_name -tab -ascii -apple_macro -assert_macro -minmax -unnamed -version-string
|
cd $BOOST_REMOVE && ../../dist/bin/inspect -text -license -copyright -crlf -end -link -path_name -tab -ascii -apple_macro -assert_macro -minmax -unnamed -version-string
|
||||||
|
Reference in New Issue
Block a user