This repository has been archived by the owner on Jan 25, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
112 lines (94 loc) · 2.42 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
#
# circle.yaml
#
# For https://wplib.github.io/wp-composer-dependencies
#
machine:
timezone:
America/New_York
php:
#
# Latest 7.0.20 version when writing [2017-08-07]
#
version: 7.0.20
environment:
#
# Set the access level of your repository:
#
# - "public" - Will generate files that support Github pages
# e.g. URL => https://YOUR-GIT-ORG.github.io/wp-composer-dependencies
# OR URL => https://your-custom-composer-dependencies-domain.com
#
# - "private" - Will generate files that use Github repo instead
# e.g. URL => https://github.com/YOUR-GIT-ORG/wp-composer-dependencies
#
GIT_REPO_ACCESS: "public"
#
# The version of PHP defined above
#
PHP_VERSION: "$(phpenv global)"
#
# The root for this repo in CircleCI
#
REPO_ROOT: "${HOME}/${CIRCLE_PROJECT_REPONAME}"
#
# The scripts directory and the shared scripts
#
SCRIPTS_ROOT: "${REPO_ROOT}/scripts"
SHARED_SCRIPTS: "${SCRIPTS_ROOT}/shared/scripts.sh"
#
# Build tag
#
BUILD_TAG: "build-${CIRCLE_BUILD_NUM}"
#
# File-related variables
#
USER_BIN_ROOT: "/usr/local/bin"
FILES_ROOT: "${REPO_ROOT}/files"
JQ_FILENAME: "jq-linux64-1.5.bin"
JQ_SOURCE: "${REPO_ROOT}/files/${JQ_FILENAME}"
JQ_FILEPATH: "${USER_BIN_ROOT}/${JQ_FILENAME}"
#
# Satis-related variables
#
SATIS_REPO: "${HOME}/satis"
SATIS_SYMLINK: "${USER_BIN_ROOT}/satis"
SATIS_DIR: "${SATIS_SYMLINK}.dir"
SATIS_EXEC: "${SATIS_DIR}/bin/satis"
#
# Satis Loader-related variables
#
SATIS_LOADER_FILENAME: "satis-loader"
SATIS_LOADER_SOURCE: "${FILES_ROOT}/${SATIS_LOADER_FILENAME}"
SATIS_LOADER_FILEPATH: "${USER_BIN_ROOT}/${SATIS_LOADER_FILENAME}"
#checkout:
dependencies:
cache_directories:
#
# Cache the Composer cache and the Satis install directory
# @see: https://discuss.circleci.com/t/caching-composer-dependencies/1215
#
- ~/.composer/cache
- ~/satis
override:
#
# Install Satis and other dependencies
#
- scripts/dependencies.sh
compile:
override:
#
# Compile using Satis
#
- scripts/compile.sh
test:
override:
#
# Runs tests
#
- scripts/tests.sh
deployment:
master:
branch: master
commands:
- scripts/deployment.sh