2016-03-14 15:40:20 +00:00
|
|
|
machine:
|
|
|
|
xcode:
|
|
|
|
version: 7.3
|
|
|
|
environment:
|
|
|
|
XCODE_SCHEME: "no"
|
|
|
|
XCODE_WORKSPACE: "no"
|
|
|
|
JOBS: 8
|
|
|
|
CCACHE_TEMPDIR: /tmp/.ccache-temp
|
|
|
|
CCACHE_COMPRESS: 1
|
2017-03-11 00:53:31 +00:00
|
|
|
LLVM_VERSION: 3.9.1
|
2016-03-14 15:40:20 +00:00
|
|
|
|
2016-03-14 17:32:40 +00:00
|
|
|
checkout:
|
|
|
|
post:
|
|
|
|
- git submodule update --init
|
|
|
|
|
2016-03-14 15:40:20 +00:00
|
|
|
dependencies:
|
|
|
|
cache_directories:
|
|
|
|
- "~/.ccache"
|
2016-03-14 21:55:08 +00:00
|
|
|
- "~/.apt-cache"
|
2016-03-14 17:15:39 +00:00
|
|
|
pre:
|
2016-03-14 21:55:08 +00:00
|
|
|
# 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
|
2016-03-14 17:15:39 +00:00
|
|
|
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
|
|
|
|
override:
|
2016-06-13 17:51:12 +00:00
|
|
|
- sudo apt-get update -y
|
2016-08-26 21:30:47 +00:00
|
|
|
- sudo apt-get install -y libstdc++-5-dev xutils-dev
|
2016-03-14 15:46:29 +00:00
|
|
|
|
2016-03-14 21:38:10 +00:00
|
|
|
database:
|
|
|
|
pre:
|
2016-03-14 22:39:27 +00:00
|
|
|
- ./bootstrap.sh
|
2017-03-11 00:53:31 +00:00
|
|
|
- ./.mason/mason install clang++ ${LLVM_VERSION}
|
|
|
|
- ./.mason/mason link clang++ ${LLVM_VERSION}
|
|
|
|
- ./configure CC="$(pwd)/mason_packages/.link/bin/clang" CXX="$(pwd)/mason_packages/.link/bin/ccache $(pwd)/mason_packages/.link/bin/clang++ -Qunused-arguments"
|
2016-03-14 21:55:08 +00:00
|
|
|
- make
|
2016-03-14 21:38:10 +00:00
|
|
|
override:
|
|
|
|
- psql -c 'create database template_postgis;'
|
|
|
|
- psql -c 'create extension postgis;' -d template_postgis
|
2016-03-14 15:40:20 +00:00
|
|
|
|
|
|
|
test:
|
|
|
|
override:
|
2016-03-14 21:38:10 +00:00
|
|
|
- make test
|