Skip to content

Commit 1419406

Browse files
committed
Place CODECOV_TOKEN in main circle.yml, sort out bash settings in circle scripts
1 parent 6c60c58 commit 1419406

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

.circle/codecov.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
# This script pull all coverage files into the $CIRCLE_TEST_REPORTS folder
44
# and sends data to codecov.
55
#
6-
#
7-
set -u
8-
set -e
6+
7+
# Setting # $ help set
8+
set -e # Exit immediately if a command exits with a non-zero status.
9+
set -u # Treat unset variables as an error when substituting.
10+
set -x # Print command traces before executing command.
911

1012
mkdir -p ${CIRCLE_TEST_REPORTS}/
1113
for report in $( ls ~/scratch/*.xml ); do
@@ -16,7 +18,8 @@ done
1618
# Send coverage data to codecov.io
1719
curl -so codecov.io https://codecov.io/bash
1820
chmod 755 codecov.io
21+
1922
find "${CIRCLE_TEST_REPORTS}/" -name 'coverage*.xml' -print0 | \
2023
xargs -0 -I file ./codecov.io -f file -t "${CODECOV_TOKEN}" -F unittests
2124
find "${CIRCLE_TEST_REPORTS}/" -name 'smoketests*.xml' -print0 | \
22-
xargs -0 -I file ./codecov.io -f file -t "${CODECOV_TOKEN}" -F smoketests
25+
xargs -0 -I file ./codecov.io -f file -t "${CODECOV_TOKEN}" -F smoketests

.circle/tests.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
#!/bin/bash
2+
#
3+
# Balance nipype testing workflows across CircleCI build nodes
4+
#
25

3-
set -o nounset
4-
set -o xtrace
5-
6-
export CODECOV_TOKEN=ac172a50-8e66-42e5-8822-5373fcf54686
6+
# Setting # $ help set
7+
set -e # Exit immediately if a command exits with a non-zero status.
8+
set -u # Treat unset variables as an error when substituting.
9+
set -x # Print command traces before executing command.
710

811
if [ "${CIRCLE_NODE_TOTAL:-}" != "4" ]; then
912
echo "These tests were designed to be run at 4x parallelism."

circle.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ machine:
88
DATA_NIPYPE_FSL_COURSE: "${OSF_NIPYPE_URL}/57f472cf9ad5a101f977ecfe"
99
DATA_NIPYPE_FSL_FEEDS: "${OSF_NIPYPE_URL}/57f473066c613b01f113e7af"
1010
SCRATCH: "$HOME/scratch"
11+
CODECOV_TOKEN: "ac172a50-8e66-42e5-8822-5373fcf54686"
1112
services:
1213
- docker
1314

0 commit comments

Comments
 (0)