[circleci] try catching apt packages [skip ci]
This commit is contained in:
parent
ba7e78ac7d
commit
03f2d8563a
2 changed files with 9 additions and 13 deletions
10
circle.yml
10
circle.yml
|
@ -20,7 +20,11 @@ checkout:
|
|||
dependencies:
|
||||
cache_directories:
|
||||
- "~/.ccache"
|
||||
- "~/.apt-cache"
|
||||
- "mason_packages"
|
||||
pre:
|
||||
# https://discuss.circleci.com/t/add-ability-to-cache-apt-get-programs/598/3
|
||||
- sudo rm -rf /var/cache/apt/archives && sudo ln -s ~/.apt-cache /var/cache/apt/archives && mkdir -p ~/.apt-cache/partial
|
||||
- sudo wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -
|
||||
- sudo add-apt-repository -y "deb http://llvm.org/apt/precise/ llvm-toolchain-precise-${LLVM_VERSION} main"
|
||||
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
|
||||
|
@ -33,7 +37,11 @@ dependencies:
|
|||
|
||||
database:
|
||||
pre:
|
||||
- ./scripts/circleci.sh
|
||||
- bootstrap.sh
|
||||
- | ./configure \
|
||||
CC="clang-${LLVM_VERSION}" \
|
||||
CXX="$(pwd)/mason_packages/.link/bin/ccache clang++-${LLVM_VERSION} -Qunused-arguments"
|
||||
- make
|
||||
override:
|
||||
- psql -c 'create database template_postgis;'
|
||||
- psql -c 'create extension postgis;' -d template_postgis
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -e -u
|
||||
set -o pipefail
|
||||
|
||||
source bootstrap.sh
|
||||
CCACHE=$(pwd)/mason_packages/.link/bin/ccache
|
||||
${CCACHE} --version
|
||||
${CCACHE} -p || true
|
||||
${CCACHE} --show-stats || true
|
||||
./configure CC="clang-${LLVM_VERSION}" CXX="${CCACHE} clang++-${LLVM_VERSION} -Qunused-arguments"
|
||||
make
|
Loading…
Reference in a new issue