mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-09 05:46:51 +00:00
travis: Enable ccache
This commit is contained in:
committed by
Thomas Krijnen
parent
077f9b701d
commit
d8b2cc77cc
@@ -1,5 +1,6 @@
|
|||||||
language: cpp
|
language: cpp
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
|
cache: ccache
|
||||||
os: linux
|
os: linux
|
||||||
dist: bionic
|
dist: bionic
|
||||||
sudo: required
|
sudo: required
|
||||||
@@ -23,6 +24,9 @@ install:
|
|||||||
# - export PATH=$PATH:/usr/lib/dart/bin:$HOME/.pub-cache/bin
|
# - export PATH=$PATH:/usr/lib/dart/bin:$HOME/.pub-cache/bin
|
||||||
# - git clone https://github.com/KhronosGroup/glTF-Validator && pushd glTF-Validator && pub get && pub global activate --source path ./ && popd
|
# - git clone https://github.com/KhronosGroup/glTF-Validator && pushd glTF-Validator && pub get && pub global activate --source path ./ && popd
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- if [ $TRAVIS_OS_NAME == "linux" ]; then ccache -z; fi
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- pwd
|
- pwd
|
||||||
- cd cmake
|
- cd cmake
|
||||||
@@ -30,6 +34,8 @@ script:
|
|||||||
- cd build
|
- cd build
|
||||||
- |
|
- |
|
||||||
cmake \
|
cmake \
|
||||||
|
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
|
||||||
|
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
|
||||||
-DOCC_INCLUDE_DIR=/usr/include/opencascade \
|
-DOCC_INCLUDE_DIR=/usr/include/opencascade \
|
||||||
-DOCC_LIBRARY_DIR=/usr/lib/x86_64-linux-gnu \
|
-DOCC_LIBRARY_DIR=/usr/lib/x86_64-linux-gnu \
|
||||||
-DPYTHON_LIBRARY=/usr/lib/python2.7/config-x86_64-linux-gnu/libpython2.7.so \
|
-DPYTHON_LIBRARY=/usr/lib/python2.7/config-x86_64-linux-gnu/libpython2.7.so \
|
||||||
@@ -64,3 +70,6 @@ script:
|
|||||||
- echo Succeeded
|
- echo Succeeded
|
||||||
- grep 0$ statuses
|
- grep 0$ statuses
|
||||||
- grep 0$ statuses | wc -l
|
- grep 0$ statuses | wc -l
|
||||||
|
|
||||||
|
after_script:
|
||||||
|
- if [ $TRAVIS_OS_NAME == "linux" ]; then ccache -s; fi
|
||||||
|
|||||||
Reference in New Issue
Block a user