mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-07 23:09:21 +01:00
Reworked existing tests and test-system, added a few new tests(init, reworked repro, import). Fixes #175 Signed-off-by: Ruslan Kuprieiev <[email protected]>
23 lines
477 B
Bash
Executable File
23 lines
477 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
source common.sh
|
|
|
|
dvc_create_repo
|
|
|
|
mkdir data/tsv
|
|
|
|
dvc_info 'Convert Budget.xml to tsv'
|
|
pip2 install xmltodict
|
|
dvc run --code code/xmltotsv.py python2 code/xmltotsv.py --extract row/@Id,row/@UserId,row/@Name,row/@Class,row/@TagBased,row/@Date data/xml/Badges.xml data/tsv/Badges.tsv
|
|
|
|
dvc_info 'Modify code'
|
|
echo " " >> code/xmltotsv.py
|
|
git commit -am 'Change code'
|
|
|
|
dvc_info 'Reproduce tsv convertion code'
|
|
dvc repro data/tsv/Badges.tsv
|
|
|
|
dvc_pass
|