@cryptotaxi247 / kubo / commits / f6d70ab54

circleci: separate script to a file

License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>

Jakub Sztandera committed Dec 20, 2016 at 23:16 UTC f6d70ab541d072d184de56871b3174f873722281
2 files changed +15 -1
bin/circle.sh new
+14
@@ -0,0 +1,14 @@
1 +#!/usr/bin/env bash
2 +# the CircleCI build line got a bit out of hands
3 +# thus we have sparate file for it
4 +
5 +curl -s https://codecov.io/bash > codecov
6 +
7 +case $CIRCLE_NODE_INDEX in
8 + 0) make -j 1 coverage/unit_tests.coverprofile &&
9 + bash codecov -cF unittests -X search -f coverage/unit_tests.coverprofile
10 + ;;
11 + 1) make -j 1 coverage/sharness_tests.coverprofile &&
12 + bash codecov -cF sharness -X search -f coverage/sharness_tests.coverprofile
13 + ;;
14 +esac
circle.yml
+1 -1
@@ -35,6 +35,6 @@ dependencies:
35
36 test:
37 override:
38 - - case $CIRCLE_NODE_INDEX in 0) make -j 1 coverage/unit_tests.coverprofile && bash <(curl -s https://codecov.io/bash) -cF unittests -X search -f coverage/unit_tests.coverprofile;; 1) make -j 1 coverage/sharness_tests.coverprofile && bash <(curl -s https://codecov.io/bash) -cF sharness -X search -f coverage/sharness_tests.coverprofile;; esac:
38 + - bin/circle.sh:
39 pwd: "../.go_workspace/src/$IMPORT_PATH"
40 parallel: true