forked from RoboJackets/robocup-software
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
48 lines (42 loc) · 1.58 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
machine:
services:
- docker
environment:
# In order to allow circleci to push ci statuses to GitHub for pull requests
# from external forks, we have to store an access token. GitHub invalidates
# API tokens pushed to repositories for security reasons, so we split it in
# half as a workaround. This is only very minor security risk b/c this
# token only allows access to change commit statuses.
GITHUB_HAS_GREAT_SECURITY: ba71cd719dd509a0ea
GH_STATUS_TOKEN: ${GITHUB_HAS_GREAT_SECURITY}76a8e073ede1df83fbf980
GIT_EMAIL: [email protected]
GIT_USERNAME: georgeburdell
checkout:
post:
- git submodule sync && git submodule update --init --recursive
dependencies:
pre:
# Fix config file containing direct refrences in ~/.ssh
- sed -i 's:/home/ubuntu:~:' ~/.ssh/config
# set build status to pending on start
- ./external/DoCIF/util/maketest.sh --pending
- ./external/DoCIF/commands/buildbaseimage.sh
# Actually the test step, but we want to cache it so it can go here.
- ./external/DoCIF/commands/runtests.sh
cache_directories:
- ~/.ccache # See $CACHE_DIRECTORIES in sample_config.docif
# The test phase dosen't actually run tests. We need the caching from the deploy step.
test:
override:
# Also run webhooks
- ./external/DoCIF/commands/exit.sh || ./util/docker/notify_fail.sh
deployment:
github:
branch: master
commands:
- ./external/DoCIF/commands/deploy.sh # This will run DEPLOY_COMMAND as well
# experimental:
# notify:
# branches:
# only:
# - master