forked from bids-standard/bids-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (33 loc) · 844 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
os: linux
dist: bionic
language: "node_js"
node_js:
- "12"
install:
- npm install -g [email protected]
script:
# Checking for large files (there shouldn't be any)
- |
echo "Checking for big files ..."
found=`find . -not -path "./.git*" -type f -size +500k`
if [ "$found" == "" ]
then
echo "No big files present, great!"
else
echo "Found big files:"
echo "$found"
exit 1;
fi
# Validating the BIDS datasets using bids-validator
- |
rc=0;
for i in $(ls -d */ | grep -v node_modules);
do
echo "Validating dataset" $i
if [ -f ${i%%/}/.bids-validator-config.json ]; then
bids-validator ${i%%/} --ignoreNiftiHeaders || rc=$?
else
bids-validator ${i%%/} --ignoreNiftiHeaders -c $PWD/bidsconfig.json || rc=$?
fi
done
exit $rc;