Skip to content
Snippets Groups Projects
Commit a10f120f authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

Merge branch 'ci_ccache' into 'develop'

CI: enable ccache on ubuntu-llvm

See merge request orfeotoolbox/otb!418
parents 64e30745 4348ea6d
Branches
Tags
No related merge requests found
......@@ -26,8 +26,21 @@ native-build:
extends: .general
stage: build
image: registry.orfeo-toolbox.org/gbonnefille/otb-build-env/otb-ubuntu-shark:18.04
before_script:
# ccache configuration
- mkdir -p ccache
- export CCACHE_BASEDIR=${PWD}
- export CCACHE_DIR=${PWD}/ccache
- echo "max_size = 3G" > ccache/ccache.conf
- echo "run_second_cpp = true" >> ccache/ccache.conf
- echo "compiler_check = content" >> ccache/ccache.conf
- echo "sloppiness = time_macros" >> ccache/ccache.conf
script:
- ctest -VV -S CI/main_ci.cmake -DIMAGE_NAME:string=ubuntu-18.04-llvm-shark
cache:
key: "ubuntu-18.04-llvm-shark"
paths:
- ccache/
build-wip:
extends: .build-common
......@@ -37,6 +50,8 @@ build-wip:
- merge_requests
- develop
- /^release-[0-9]+\.[0-9]+$/
cache:
policy: pull
build-mr:
extends: .build-common
......@@ -44,6 +59,8 @@ build-mr:
OTB_CI_PROFILE: 'mr'
only:
- merge_requests
cache:
policy: pull
build-develop:
extends: .build-common
......@@ -51,6 +68,8 @@ build-develop:
OTB_CI_PROFILE: 'develop'
only:
- develop
cache:
policy: pull-push
build-release:
extends: .build-common
......@@ -58,3 +77,5 @@ build-release:
OTB_CI_PROFILE: 'release'
only:
- /^release-[0-9]+\.[0-9]+$/
cache:
policy: pull
......@@ -26,4 +26,6 @@ CMAKE_C_COMPILER:STRING=clang
CMAKE_CXX_COMPILER:STRING=clang++
CMAKE_EXE_LINKER_FLAGS:STRING=-fuse-ld=lld
CMAKE_MODULE_LINKER_FLAGS:STRING=-fuse-ld=lld
CMAKE_SHARED_LINKER_FLAGS:STRING=-fuse-ld=lld")
CMAKE_SHARED_LINKER_FLAGS:STRING=-fuse-ld=lld
CMAKE_C_COMPILER_LAUNCHER:STRING=ccache
CMAKE_CXX_COMPILER_LAUNCHER:STRING=ccache")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment