-
Notifications
You must be signed in to change notification settings - Fork 8
/
circle.yml
46 lines (43 loc) · 1.5 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
39
40
41
42
43
44
45
46
## Customize the test machine
machine:
timezone:
America/Montreal
environment:
PATH: "/home/ubuntu/cmake-3.7.1-Linux-x86_64/bin:/home/ubuntu/doxygen-1.8.10/bin:$PATH"
## Customize checkout
checkout:
pre:
- git clone https://github.com/OpenMA/openma-data.git data
## Customize dependencies
dependencies:
cache_directories:
- ~/cmake-3.7.1-Linux-x86_64
- ~/doxygen-1.8.10
pre:
- >
if [ ! -d ~/cmake-3.7.1-Linux-x86_64 ]; then
echo "No cache - installing CMake"
cd ~ && wget --quiet https://cmake.org/files/v3.7/cmake-3.7.1-Linux-x86_64.tar.gz && tar -xvf cmake-3.7.1-Linux-x86_64.tar.gz
else
echo "Cached CMake found"
fi
- >
if [ ! -d ~/doxygen-1.8.10 ]; then
echo "No cache - installing Doxygen"
cd ~ && wget --quiet http://ftp.stack.nl/pub/users/dimitri/doxygen-1.8.10.linux.bin.tar.gz && tar -xvf doxygen-1.8.10.linux.bin.tar.gz
else
echo "Cached Doxygen found"
fi
override:
- mkdir build
- cd build && cmake -DCMAKE_BUILD_TYPE:CHAR=Release -DBUILD_SHARED_LIBS:BOOL=1 -DBUILD_DOCUMENTATION:BOOL=1 -DBUILD_UNIT_TESTS:BOOL=1 -DOPENMA_TESTING_DATA_PATH:CHAR=/home/ubuntu/data -G "Unix Makefiles" ..
- cd build && make
post:
- cd build && make doxygen_cpp
- mkdir $CIRCLE_ARTIFACTS/doxygen
- mv build/doxy-* $CIRCLE_ARTIFACTS/doxygen
- tar -czvf $CIRCLE_ARTIFACTS/doxygen/cpp_xml.tar.gz build/doc/_doxygen
## Customize test commands
test:
override:
- cd build && ctest -VV