forked from lucee/Lucee
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtravis-docker-build.sh
More file actions
34 lines (31 loc) · 810 Bytes
/
Copy pathtravis-docker-build.sh
File metadata and controls
34 lines (31 loc) · 810 Bytes
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
#!/bin/bash
# get lucee version
LUCEE_VERSION=$(<buildVersionNumber.txt)
# build the travis request body
function build_request {
cat <<EOF
{
"request": {
"message": "Automated build for version ${LUCEE_VERSION}",
"branch":"travis-build-matrix",
"config": {
"merge_mode": "deep_merge",
"env": {
"global": {
"LUCEE_VERSION": "${LUCEE_VERSION}"
}
}
}
}
}
EOF
}
REQUEST_BODY=$(build_request)
# trigger the lucee-dockerfiles travis job for this lucee version
curl --no-progress-meter -S -m 30 -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Travis-API-Version: 3" \
-H "Authorization: token ${TRAVIS_TOKEN}" \
-d "${REQUEST_BODY}" \
https://api.travis-ci.com/repo/lucee%2Flucee-dockerfiles/requests