1 Star 0 Fork 0

hoopoo/oce

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.travis.yml 4.72 KB
一键复制 编辑 原始数据 按行查看 历史
Thomas Paviot 提交于 2018-10-29 10:21 . Added gcc-8 to .travis.yml
language: cpp
compiler:
- gcc
- clang
cache:
apt: true
env:
- RUN_TESTS=false OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=OFF
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- tcl8.5-dev
- tk8.5-dev
- libgl2ps-dev
- libfreeimage-dev
- libtbb-dev
- tclthread
- libgl1-mesa-dri
- xsltproc
- g++-5
- g++-6
- g++-7
matrix:
include:
- os: linux
compiler: gcc
env: MATRIX_EVAL="CC=gcc-5 && CXX=g++-5" RUN_TESTS=true OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=ON
dist: trusty
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
- os: linux
compiler: gcc
env: MATRIX_EVAL="CC=gcc-6 && CXX=g++-6" RUN_TESTS=true OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=ON
dist: trusty
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6
- os: linux
compiler: gcc
env: MATRIX_EVAL="CC=gcc-7 && CXX=g++-7" RUN_TESTS=true OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=ON
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
dist: trusty
- os: linux
compiler: gcc
env: MATRIX_EVAL="CC=gcc-8 && CXX=g++-8" RUN_TESTS=true OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=ON
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-8
dist: trusty
- os: linux
compiler: clang
env: RUN_TESTS=true OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=ON MATRIX_EVAL="CC=clang-4.0 && CXX=clang++-4.0"
dist: trusty
addons:
apt:
sources:
- llvm-toolchain-trusty-4.0
packages:
- clang-4.0
- os: linux
compiler: gcc
env: OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=OFF MATRIX_EVAL=""
- os: linux
compiler: gcc
env: OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=ON MATRIX_EVAL=""
- os: linux
compiler: gcc
env: OCE_MULTITHREAD_LIBRARY=OPENMP OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=ON MATRIX_EVAL=""
- os: linux
compiler: gcc
env: OCE_MULTITHREAD_LIBRARY=TBB OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=ON MATRIX_EVAL=""
- os: osx
compiler: clang
env: OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=ON
- os: osx
osx_image: xcode8.3
compiler: clang
env: OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=ON
- os: osx
osx_image: xcode9.2
compiler: clang
env: OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=ON
- os: osx
osx_image: xcode9.3beta
compiler: clang
env: OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=ON
exclude:
- env: RUN_TESTS=false OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=OFF
allow_failures:
- os: osx
compiler: clang
env: OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=ON
- os: osx
osx_image: xcode8.3
compiler: clang
env: OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=ON
- os: osx
osx_image: xcode9.2
compiler: clang
env: OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=ON
- os: osx
osx_image: xcode9.3beta
compiler: clang
env: OCE_USE_PCH=ON OCE_COPY_HEADERS_BUILD=ON
before_install:
# osx
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update;
brew install freetype;
brew install freeimage;
brew install gl2ps;
fi
# linux
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
eval "${MATRIX_EVAL}";
fi
before_script:
# Initialize xvfb server
# Depth is necessary, otherwise DRAWEXE exits with this message:
# Tcl Exception: ** Exception ** 0x7fee03adb307 : Aspect_WindowDefinitionError: Xw_Window, couldn't find compatible Visual (RGBA, double-buffered)
# Remove OCCT tests which are going to be skipped
# because of missing data files. We must use -name
# to filter out 'begin' or 'end' files.
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
"/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1024x768x16";
find tests -type f -name '[A-Z][0-9]' -o -name 'Z[A-Z][0-9]' -o -name 'bu[gc]*' | xargs grep -l locate_data_file /dev/null | xargs rm -f;
rm -rf tests/chamfer tests/de tests/mesh tests/perf/*_mesh_*;
fi
- mkdir cmake-build
- cd cmake-build
script: sh ../.travis.build.sh
after_script:
- test ! -r occt/summary.xml || xsltproc --param duration 1 ../.travis.xsl occt/summary.xml
- if [ -r occt/summary.xml ]; then
xsltproc ../.travis.xsl occt/summary.xml > occt/summary.failed;
if [ -s occt/summary.failed ]; then
echo "FAILED TESTS:";
cat occt/summary.failed;
for file in $(cat occt/summary.failed); do head -n -1 occt/$file.{tcl,log}; done;
fi;
fi
branches:
only:
- master
- /^review/
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hoopoo/oce.git
git@gitee.com:hoopoo/oce.git
hoopoo
oce
oce
master

搜索帮助