mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
[CI] Fix B2 build files
This commit is contained in:
parent
074c82315c
commit
56f68565c8
4 changed files with 47 additions and 43 deletions
22
.travis.yml
22
.travis.yml
|
|
@ -16,11 +16,11 @@ branches:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- CXX_STANDARD=c++17 BRANCH_TO_TEST=master
|
- CXX_STANDARD=17 BRANCH_TO_TEST=master
|
||||||
- CXX_STANDARD=c++14 BRANCH_TO_TEST=master
|
- CXX_STANDARD=14 BRANCH_TO_TEST=master
|
||||||
- CXX_STANDARD=c++14 BRANCH_TO_TEST=boost-1.58.0
|
- CXX_STANDARD=14 BRANCH_TO_TEST=boost-1.58.0
|
||||||
- CXX_STANDARD=c++14 BRANCH_TO_TEST=boost-1.59.0
|
- CXX_STANDARD=14 BRANCH_TO_TEST=boost-1.59.0
|
||||||
- CXX_STANDARD=c++14 BRANCH_TO_TEST=boost-1.67.0
|
- CXX_STANDARD=14 BRANCH_TO_TEST=boost-1.67.0
|
||||||
|
|
||||||
compiler:
|
compiler:
|
||||||
- clang
|
- clang
|
||||||
|
|
@ -59,21 +59,21 @@ before_install:
|
||||||
- PROJECT_DIR=`pwd`
|
- PROJECT_DIR=`pwd`
|
||||||
- git --version
|
- git --version
|
||||||
- BOOST=$HOME/boost-local
|
- BOOST=$HOME/boost-local
|
||||||
- git clone -b $BRANCH_TO_TEST https://github.com/boostorg/boost.git $BOOST
|
- git clone -b $BRANCH_TO_TEST --depth 1 https://github.com/boostorg/boost.git $BOOST
|
||||||
- cd $BOOST
|
- cd $BOOST
|
||||||
- git submodule update --init --merge
|
- git submodule update --init --depth 1
|
||||||
- ./bootstrap.sh
|
- ./bootstrap.sh
|
||||||
- ./b2 headers
|
- ./b2 headers
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- cd $PROJECT_DIR/build
|
- cd $PROJECT_DIR
|
||||||
- export BOOST_ROOT=$BOOST
|
- export BOOST_ROOT=$BOOST
|
||||||
# `--coverage` flags required to generate coverage info for Coveralls
|
# `--coverage` flags required to generate coverage info for Coveralls
|
||||||
- ./build.sh --toolset=$CC "cxxflags=-std=$CXX_STANDARD -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations --coverage" "linkflags=--coverage" -j3
|
- build/build.sh --toolset=$CC "cxxflags=-std=c++$CXX_STANDARD -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations --coverage" "linkflags=--coverage" -j3
|
||||||
|
# CMake build
|
||||||
- cd $BOOST && ./b2 --with-test --with-thread --with-chrono --with-system --with-atomic --with-date_time -a -j3 # Build required libs
|
- cd $BOOST && ./b2 --with-test --with-thread --with-chrono --with-system --with-atomic --with-date_time -a -j3 # Build required libs
|
||||||
- mkdir $PROJECT_DIR/__build && cd $PROJECT_DIR/__build
|
- mkdir $PROJECT_DIR/__build && cd $PROJECT_DIR/__build
|
||||||
- export CXXFLAGS="-std=$CXX_STANDARD"
|
- cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="-std=c++$CXX_STANDARD"
|
||||||
- cmake .. -DCMAKE_BUILD_TYPE=Debug
|
|
||||||
- cmake --build . --config Debug -- -j3
|
- cmake --build . --config Debug -- -j3
|
||||||
- ctest --output-on-failure --build-config Debug
|
- ctest --output-on-failure --build-config Debug
|
||||||
|
|
||||||
|
|
|
||||||
10
appveyor.yml
10
appveyor.yml
|
|
@ -33,7 +33,8 @@ environment:
|
||||||
CMAKE: true
|
CMAKE: true
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- cd %APPVEYOR_BUILD_FOLDER%\doc
|
- mkdir %APPVEYOR_BUILD_FOLDER%\bin
|
||||||
|
- cd %APPVEYOR_BUILD_FOLDER%\bin
|
||||||
- appveyor-retry powershell Invoke-WebRequest ftp://ftp.zlatkovic.com/libxml/iconv-1.9.2.win32.zip -OutFile iconv.zip
|
- appveyor-retry powershell Invoke-WebRequest ftp://ftp.zlatkovic.com/libxml/iconv-1.9.2.win32.zip -OutFile iconv.zip
|
||||||
- 7z e iconv.zip iconv.dll -r
|
- 7z e iconv.zip iconv.dll -r
|
||||||
- appveyor-retry powershell Invoke-WebRequest ftp://ftp.zlatkovic.com/libxml/libxml2-2.7.8.win32.zip -OutFile libxml2.zip
|
- appveyor-retry powershell Invoke-WebRequest ftp://ftp.zlatkovic.com/libxml/libxml2-2.7.8.win32.zip -OutFile libxml2.zip
|
||||||
|
|
@ -45,13 +46,14 @@ install:
|
||||||
- xsltproc -V
|
- xsltproc -V
|
||||||
|
|
||||||
build_script:
|
build_script:
|
||||||
|
- set PATH=%PATH%;%APPVEYOR_BUILD_FOLDER%\bin
|
||||||
- set BOOST_ROOT=C:\Libraries\boost_%BOOST%
|
- set BOOST_ROOT=C:\Libraries\boost_%BOOST%
|
||||||
- cd %BOOST_ROOT%
|
- cd %BOOST_ROOT%
|
||||||
- call bootstrap.bat
|
- call bootstrap.bat
|
||||||
- cd %APPVEYOR_BUILD_FOLDER%\build
|
- cd %APPVEYOR_BUILD_FOLDER%
|
||||||
- if NOT "%CXX_STANDARD%"=="" set CXX_FLAGS=cxxflags=/std:c++%CXX_STANDARD%
|
- if NOT "%CXX_STANDARD%"=="" set CXX_FLAGS=cxxflags=/std:c++%CXX_STANDARD%
|
||||||
- set BUILD_ARGS=address-model=32,64 variant=debug,release
|
- set BUILD_ARGS=address-model=32,64 variant=debug,release
|
||||||
- call build.bat --toolset=%TOOLSET% %CXX_FLAGS% -j3
|
- call build\build.bat --toolset=%TOOLSET% %CXX_FLAGS% -j3
|
||||||
|
|
||||||
for:
|
for:
|
||||||
- matrix:
|
- matrix:
|
||||||
|
|
@ -64,4 +66,4 @@ for:
|
||||||
- cd __build
|
- cd __build
|
||||||
- cmake .. -DCMAKE_BUILD_TYPE=Debug
|
- cmake .. -DCMAKE_BUILD_TYPE=Debug
|
||||||
- cmake --build . --config Debug
|
- cmake --build . --config Debug
|
||||||
- ctest --output-on-failure --build-config Debug
|
- ctest --output-on-failure --build-config Debug
|
||||||
|
|
|
||||||
|
|
@ -9,21 +9,22 @@ setlocal
|
||||||
|
|
||||||
rem error if BOOST_ROOT not set
|
rem error if BOOST_ROOT not set
|
||||||
set BOOST=%BOOST_ROOT%
|
set BOOST=%BOOST_ROOT%
|
||||||
|
set PROJECT_DIR=%cd%
|
||||||
|
|
||||||
pushd ..\test
|
cd %BOOST%
|
||||||
%BOOST%\b2.exe -q %BUILD_ARGS% %*
|
b2.exe %PROJECT_DIR%\test -q %BUILD_ARGS% %*
|
||||||
popd
|
|
||||||
if errorlevel 1 exit /b %ERRORLEVEL%
|
if errorlevel 1 exit /b %ERRORLEVEL%
|
||||||
|
|
||||||
set BOOSTBOOK_DIR=..\bin\turtle\boostbook
|
cd %PROJECT_DIR%
|
||||||
|
set BOOSTBOOK_DIR=%PROJECT_DIR%\bin\turtle\boostbook
|
||||||
xcopy /Y /S /Q /I %BOOST%\tools\boostbook\xsl %BOOSTBOOK_DIR%\xsl
|
xcopy /Y /S /Q /I %BOOST%\tools\boostbook\xsl %BOOSTBOOK_DIR%\xsl
|
||||||
xcopy /Y /S /Q /I %BOOST%\tools\boostbook\dtd %BOOSTBOOK_DIR%\dtd
|
xcopy /Y /S /Q /I %BOOST%\tools\boostbook\dtd %BOOSTBOOK_DIR%\dtd
|
||||||
xcopy /Y /S /Q /I boostbook %BOOSTBOOK_DIR%
|
xcopy /Y /S /Q /I build\boostbook %BOOSTBOOK_DIR%
|
||||||
xcopy /Y /S /Q /I %BOOST%\doc\src\boostbook.css ..\doc\html
|
xcopy /Y /S /Q /I %BOOST%\doc\src\boostbook.css doc\html
|
||||||
xcopy /Y /S /Q /I %BOOST%\doc\src\images\*.png ..\doc\html\images
|
xcopy /Y /S /Q /I %BOOST%\doc\src\images\*.png doc\html\images
|
||||||
xcopy /Y /S /Q /I %BOOST%\doc\src\images\callouts\*.png ..\doc\html\images\callouts
|
xcopy /Y /S /Q /I %BOOST%\doc\src\images\callouts\*.png doc\html\images\callouts
|
||||||
if errorlevel 1 exit /b %ERRORLEVEL%
|
if errorlevel 1 exit /b %ERRORLEVEL%
|
||||||
pushd ..\doc
|
|
||||||
%BOOST%\b2.exe -q %*
|
cd %BOOST%
|
||||||
popd
|
b2.exe %PROJECT_DIR%\doc -q %*
|
||||||
if errorlevel 1 exit /b %ERRORLEVEL%
|
if errorlevel 1 exit /b %ERRORLEVEL%
|
||||||
|
|
|
||||||
|
|
@ -8,25 +8,26 @@
|
||||||
copy()
|
copy()
|
||||||
{
|
{
|
||||||
for dir; do true; done
|
for dir; do true; done
|
||||||
mkdir -p $dir
|
mkdir -p "$dir"
|
||||||
cp $@
|
cp "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
set -ex
|
set -eux
|
||||||
|
|
||||||
export BOOST=$BOOST_ROOT
|
export BOOST="$BOOST_ROOT"
|
||||||
|
PROJECT_DIR="$(pwd)"
|
||||||
|
|
||||||
cd ../test
|
cd "$BOOST"
|
||||||
$BOOST/b2 -q "$@"
|
./b2 "$PROJECT_DIR/test" -q "$@"
|
||||||
cd ../build
|
|
||||||
|
|
||||||
export BOOSTBOOK_DIR=../bin/turtle/boostbook
|
cd "$PROJECT_DIR"
|
||||||
copy -r "$BOOST"/tools/boostbook/xsl $BOOSTBOOK_DIR
|
export BOOSTBOOK_DIR="$PROJECT_DIR/bin/turtle/boostbook"
|
||||||
copy -r "$BOOST"/tools/boostbook/dtd $BOOSTBOOK_DIR
|
copy -r "$BOOST"/tools/boostbook/xsl "$BOOSTBOOK_DIR"
|
||||||
copy -r boostbook/* $BOOSTBOOK_DIR
|
copy -r "$BOOST"/tools/boostbook/dtd "$BOOSTBOOK_DIR"
|
||||||
copy "$BOOST"/doc/src/boostbook.css ../doc/html
|
copy -r build/boostbook/* "$BOOSTBOOK_DIR"
|
||||||
copy "$BOOST"/doc/src/images/*.png ../doc/html/images
|
copy "$BOOST"/doc/src/boostbook.css doc/html
|
||||||
copy "$BOOST"/doc/src/images/callouts/*.png ../doc/html/images/callouts
|
copy "$BOOST"/doc/src/images/*.png doc/html/images
|
||||||
cd ../doc
|
copy "$BOOST"/doc/src/images/callouts/*.png doc/html/images/callouts
|
||||||
$BOOST/b2 -q "$@"
|
|
||||||
cd ../build
|
cd "$BOOST"
|
||||||
|
./b2 "$PROJECT_DIR/doc" -q "$@"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue