This repository has been archived by the owner on Nov 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.ahoy.yml
102 lines (90 loc) · 2.94 KB
/
.ahoy.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
ahoyapi: v2
usage: CLI utilities
commands:
satis:
usage: Execute composer/satis via docker.
cmd: |
docker run --rm --init -it \
--volume $(pwd):/build \
--volume "${COMPOSER_HOME:-$HOME/.composer}:/composer" \
composer/satis "$@"
satis-build:
usage: Execute composer/satis passing in a json and a build dir.
cmd: |
docker run --rm --init -it \
--user $(id -u):$(id -g) \
--volume $(pwd):/build \
--volume "${COMPOSER_HOME:-$HOME/.composer}:/composer" \
composer/satis build "$1" /build/"$2"
docker run --rm --init -it \
--volume $(pwd):/build \
composer/satis /build/scripts/branding.sh "/build/$2"
build:
usage: Build the satis package lists - use {stable|master|develop} to target a branch.
cmd: |
if [ "$1" == "stable" ] || [ -z "$1" ]; then
echo -e "\033[1;35m--> Building govcms-stable.json \033[0m"
ahoy satis-build satis-config/govcms-stable.json app
else
echo -e "\033[1;35m--> Building govcms-"$1".json \033[0m"
ahoy satis-build satis-config/govcms-"$1".json app/"$1"
fi
build-all:
usage: Build all satis package lists
cmd: |
ahoy build stable
ahoy build master
ahoy build develop
ahoy build-whitelist
build-whitelist:
usage: Build satis.govcms.gov.au/whitelist
cmd: |
ahoy satis-build satis-config/govcms-whitelist.json app/whitelist
check-dupes:
usage: Check for duplicate packages - use {stable|master|develop} to target a branch.
cmd: |
if [ "$1" == "stable" ] || [ -z "$1" ]; then
SATIS_BUILD=app ./scripts/check-dupes.sh
else
SATIS_BUILD=app ./scripts/check-dupes.sh "$@"
fi
check-dupes-all:
usage: Check for duplicate packages in all branches.
cmd: |
ahoy check-dupes stable
ahoy check-dupes master
ahoy check-dupes develop
verify:
usage: Verify the satis resolves - use {stable|master|develop} to target a branch.
cmd: |
if [ "$1" == "stable" ] || [ -z "$1" ]; then
SATIS_BUILD=app ./scripts/verify.sh
else
SATIS_BUILD=app ./scripts/verify.sh "$@"
fi
verify-all:
usage: Verify the satis resolves for all branches.
cmd: |
ahoy verify stable
ahoy verify master
ahoy verify develop
debug:
usage: Get clear information about satis issues - use {stable|master|develop} to target a branch.
cmd: |
if [ "$1" == "stable" ] || [ -z "$1" ]; then
SATIS_BUILD=app ./scripts/check-missing.sh
ahoy check-dupes stable
else
SATIS_BUILD=app ./scripts/check-missing.sh "$@"
ahoy check-dupes "$@"
fi
debug-all:
usage: Get clear information about satis issues for all branches.
cmd: |
ahoy debug stable
ahoy debug master
ahoy debug develop
server:
usage: Make satis available on localhost:4142
cmd: |
PHP -S localhost:4143 -t app