File: trigger-android-build.sh

package info (click to toggle)
zip4j 2.11.5-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 6,000 kB
  • sloc: java: 16,706; xml: 212; sh: 10; makefile: 2
file content (15 lines) | stat: -rwxr-xr-x 390 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh -f

if [ "$#" -ne 1 ]; then
  echo "Circle CI token missing"
  exit 1
fi

TOKEN="$1"

curl -X POST https://circleci.com/api/v1.1/project/github/srikanth-lingala/zip4j-android-test/build?circle-token=${TOKEN} | tee /tmp/travis-request-output.$$.txt

if ! grep -q 'Build created' /tmp/travis-request-output.$$.txt; then
    echo "CircleCI Android build trigger failed"
    exit 1
fi