Files
dvc/functest/test-sync-aws.sh
T
2017-08-27 00:21:39 +03:00

40 lines
622 B
Bash
Executable File

#!/bin/bash
set -e
source common.sh
if [ -z $TRAVIS_PULL_REQUEST ]; then
dvc_create_repo
dvc_info "Setting up AWS cloud"
dvc_clean_cloud_aws
dvc config aws.storagepath $TEST_REPO_S3
dvc config aws.region $TEST_REPO_REGION
dvc_info "Checking status"
dvc status data/xml
dvc_info "Pushing to AWS"
dvc push data/xml
dvc_info "Checking status"
dvc status data/xml
dvc_info "Modifying data"
echo "123456" >> data/xml/Tags.xml
dvc_info "Checking status"
dvc status data/xml
dvc_info "Pulling data"
dvc pull data/xml
dvc_info "Checking status"
dvc status data/xml
dvc_clean_cloud_aws
fi
dvc_pass