-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcircle.yml
38 lines (38 loc) · 1.77 KB
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
machine:
services:
- docker
environment:
PATH: "/home/ubuntu/cmake-3.6.2-Linux-x86_64/bin:$PATH"
dependencies:
pre:
- sudo apt-add-repository -y ppa:ubuntu-toolchain-r/test
- echo "deb [arch=amd64 trusted=yes] https://test-mirrors.ripple.com/ubuntu/ trusty testing" | sudo tee /etc/apt/sources.list.d/ripple.list
- sudo apt-get update -qq
- sudo apt-get purge -qq libboost1.48-dev
- sudo apt-get install -qq libboost1.60-all-dev
- sudo apt-get install -qq clang-3.6 gcc-5 g++-5 libobjc-5-dev libgcc-5-dev libstdc++-5-dev libclang1-3.6 libgcc1 libgomp1 libstdc++6 scons protobuf-compiler libprotobuf-dev libssl-dev exuberant-ctags
- lsb_release -a
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 99
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 99
- sudo update-alternatives --force --install /usr/bin/clang clang /usr/bin/clang-3.6 99 --slave /usr/bin/clang++ clang++ /usr/bin/clang++-3.6
- gcc --version
- clang --version
- clang++ --version
cache_directories:
- ~/cmake-3.6.2-Linux-x86_64
override:
- >
if [ ! -d ~/cmake-3.6.2-Linux-x86_64 ]; then
echo "No cache - building CMake"
cd ~ && wget --quiet https://cmake.org/files/v3.6/cmake-3.6.2-Linux-x86_64.tar.gz && tar -xvf cmake-3.6.2-Linux-x86_64.tar.gz
else
echo "Cached CMake found"
fi
test:
pre:
- git submodule update --init --recursive
- mkdir -p build/gcc.debug
- cd build/gcc.debug && cmake ../.. && cmake --build .
override:
# Execute unit tests under gdb
- gdb -return-child-result -quiet -batch -ex "set env MALLOC_CHECK_=3" -ex "set print thread-events off" -ex run -ex "thread apply all backtrace full" -ex "quit" --args build/gcc.debug/attn_server --unittest