forked from codecov/codecov-bash
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcircle.yml
More file actions
24 lines (21 loc) · 733 Bytes
/
circle.yml
File metadata and controls
24 lines (21 loc) · 733 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
machine:
ruby:
version: 1.9.3-p0-falcon
dependencies:
override:
- tar zxvf shunit2-2.1.6.tgz
test:
override:
- tests/test
deployment:
suite:
branch: /.*/
commands:
- |
if [[ "$(git log -1 --pretty=%B)" = *"[testsuite]"* ]]; then
curl -X POST https://circleci.com/api/v1/project/codecov/testsuite/tree/master?circle-token=$CIRCLE_TOKEN\
--header "Content-Type: application/json" \
--data "{\"build_parameters\": {\"TEST_LANG\": \"bash\",\
\"TEST_SLUG\": \"$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME\",\
\"TEST_SHA\": \"$CIRCLE_SHA1\"}}"
fi