forked from apinf/apinf-umbrella
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
54 lines (54 loc) · 2.16 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
47
48
49
50
51
52
53
54
general:
artifacts:
# Keep logs after running to help debug if errors do crop up.
- test/tmp/run/api-umbrella-root/var/log
- src/api-umbrella/web-app/log
- src/api-umbrella/web-app/brakeman.html
# Keep screenshots of capybara failures for easier debugging.
- test/tmp/capybara
machine:
pre:
# Enable IPv6 on CircleCI for running IPv6 integration tests.
- sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=0 net.ipv6.conf.default.disable_ipv6=0 net.ipv6.conf.all.disable_ipv6=0
# Disable RVM so the various environment variables (things like GEM_HOME)
# don't conflict with our embedded ruby installation.
- rvm reset
dependencies:
cache_directories:
- build/work
- CMakeCache.txt
- CMakeFiles
- cmake_install.cmake
pre:
# Install any system package dependencies.
- sudo ./build/scripts/install_build_dependencies
# Set the local file timestamps based on when they were last modified in
# git. This helps prevent unnecessary rebuilds in the CI environment, since
# make is dependent on file timestamps and every CI test run operates on a
# fresh clone.
- if [[ ! -e build/work/git-restore-mtime ]]; then mkdir -p build/work && curl -f -L https://raw.githubusercontent.com/MestreLion/git-tools/0fc841a3e49d041576e5b21d1644c8df2d2ef801/git-restore-mtime > build/work/git-restore-mtime && chmod +x build/work/git-restore-mtime; fi
# - ./build/work/git-restore-mtime -f .
override:
# Build all the API Umbrella software dependencies.
- ./configure --enable-test-dependencies
- make all test-deps
# Remove the download archives, since we don't need to cache these in
# CircleCI, and doing so also leads to multiple versions being kept around
# whenever we bump our dependency versions.
- make clean-download-archives
database:
override:
# Don't perform any database tasks that CircleCI infers, since they're not
# needed.
- /bin/true
compile:
override:
# Don't perform any compile tasks that CircleCI infers. We'll run our
# tasks.
- /bin/true
test:
override:
- ./test/scripts/circle-ci:
parallel: true
files:
- test/**/test_*.rb