Files
dvc/functest/test-repro-code.sh
T
Ruslan Kuprieiev 46b0f4eacc target: fix bugs
Fixes #215

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2017-09-17 14:47:26 +03:00

33 lines
717 B
Bash
Executable File

#!/bin/bash
set -e
source common.sh
dvc_create_repo
mkdir data/tsv
dvc_info 'Convert Budget.xml to tsv'
dvc run --code code/xmltotsv.py python 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_info 'Modify code'
echo " " >> code/xmltotsv.py
git commit -am 'Change code'
dvc_info 'Set default target'
dvc config global.target data/tsv/Badges.tsv
git commit -am 'Set default target'
dvc_info 'Reproduce tsv convertion code as default target'
dvc repro
dvc_pass