-
Notifications
You must be signed in to change notification settings - Fork 33
/
travis-run.sh
18 lines (16 loc) · 1.14 KB
/
travis-run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
pip show Arelle-release
set -x
# Copy xule files to the appropriate directory
mkdir $CURDIR/temp
git clone --depth=1 --branch $XULE_VERSION --single-branch https://github.com/xbrlus/xule.git $CURDIR/temp/xule
mv $CURDIR/temp/xule/plugin/xule $VIRTUAL_ENV/lib/$PYTHON_VERSION/site-packages/arelle/plugin
mv $CURDIR/temp/xule/plugin/validate/DQC.py $VIRTUAL_ENV/lib/$PYTHON_VERSION/site-packages/arelle/plugin/validate
rm -fR $CURDIR/temp
echo $INFILES > infiles.json
sed -i "s|https://github.com/DataQualityCommittee/dqc_us_rules/.*/dqc_us_rules/|$GH_SLUG/raw/$PR_BR/dqc_us_rules/|" $CURDIR/rulesetMap.json
sed -i "s|\?raw=true||" $CURDIR/rulesetMap.json
cat $CURDIR/plugin/xule/version.json
$PYTHON_VERSION -m arelle.CntlrCmdLine --httpUserAgent "DQC-Arelle (xbrl.us; [email protected])" --plugin "validate/DQC|transforms/SEC" -v --dqc-replace-rule-set-map $CURDIR/rulesetMap.json --xule-filing-list infiles.json --logFile $CURDIR/log.xml -v --xule-debug
cat /home/travis/.config/arelle/plugin/xule/rulesetMap.json
$PYTHON_VERSION compare.py --compare-file $CURDIR/report.txt --test-files $CURDIR/log.xml --expected-results $EXFILES --html-file report.html