代码拉取完成,页面将自动刷新
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/
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。