Skip to content

Commit

Permalink
fail on curl failure (Issue #7)
Browse files Browse the repository at this point in the history
  • Loading branch information
florence committed Jan 12, 2015
1 parent 3c98384 commit edc306d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions private/coveralls.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,12 @@
(if (verbose)
(current-output-port)
(open-output-nowhere))])
(void (system* (path->string post)
coverage-file
(if (verbose) "-v" "")))))
(define result
(system* (path->string post)
coverage-file
(if (verbose) "-v" "")))
(unless result
(error 'coveralls "request to coveralls failed"))))

;; Maps service name to the environment variable that indicates that the service is to be used.
(define BUILD-TYPES (hash "travis-ci" "TRAVIS_JOB_ID"))
Expand Down
2 changes: 1 addition & 1 deletion private/curl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
file=$1
verbose=$2

curl $verbose --include --form json_file=@"$file" "https://coveralls.io/api/v1/jobs"
curl $verbose --include --fail --form json_file=@"$file" "https://coveralls.io/api/v1/jobs"

0 comments on commit edc306d

Please sign in to comment.