forked from boostorg/boost
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
52 lines (51 loc) · 1.89 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
# Use, modification, and distribution are
# subject to the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#
# Copyright Rene Rivera 2015-2016.
machine:
environment:
SCRIPT_N: ci_boost_release ci_boost_release
EOL_N: LF CRLF
pre:
- |
wget "https://raw.githubusercontent.com/boostorg/release-tools/develop/ci_boost_common.py" -P ${HOME}
wget "https://raw.githubusercontent.com/boostorg/release-tools/develop/ci_boost_library_check.py" -P ${HOME}
wget "https://raw.githubusercontent.com/boostorg/release-tools/develop/ci_boost_release.py" -P ${HOME}
wget "https://raw.githubusercontent.com/boostorg/release-tools/develop/ci_boost_status.py" -P ${HOME}
echo '#!/bin/bash' > ${HOME}/script.sh
echo 'export SCRIPT_N=(${SCRIPT_N})' >> "${HOME}/script.sh"
echo 'export SCRIPT=${SCRIPT_N[$CIRCLE_NODE_INDEX]}' >> "${HOME}/script.sh"
echo 'export EOL_N=(${EOL_N})' >> "${HOME}/script.sh"
echo 'export EOL=${EOL_N[$CIRCLE_NODE_INDEX]}' >> "${HOME}/script.sh"
echo 'python "${HOME}/${SCRIPT}.py" "$@"' >> "${HOME}/script.sh"
chmod +x "${HOME}/script.sh"
post:
- exec "${HOME}/script.sh" machine_post
checkout:
post:
- exec "${HOME}/script.sh" checkout_post
dependencies:
pre:
- exec "${HOME}/script.sh" dependencies_pre
override:
- exec "${HOME}/script.sh" dependencies_override
post:
- exec "${HOME}/script.sh" dependencies_post
database:
pre:
- exec "${HOME}/script.sh" database_pre
override:
- exec "${HOME}/script.sh" database_override
post:
- exec "${HOME}/script.sh" database_post
test:
pre:
- exec "${HOME}/script.sh" test_pre:
parallel: true
override:
- exec "${HOME}/script.sh" test_override:
parallel: true
post:
- exec "${HOME}/script.sh" test_post:
parallel: true