This repository was archived by the owner on Aug 16, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +11
-10
lines changed Expand file tree Collapse file tree 4 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 8
8
- run :
9
9
name : Install software
10
10
command : |
11
- apt-get update && apt-get install -y sudo wget \
11
+ apt-get update && apt-get install -y sudo wget jq \
12
12
&& wget get.docker.com -q -S -O - | sudo sh
13
13
- checkout
14
14
- setup_remote_docker
Original file line number Diff line number Diff line change @@ -625,7 +625,9 @@ function copyFile() {
625
625
docker_exec s3cmd sync $1 $MACHINE_HOME /
626
626
else
627
627
if [ " $RUN_ON " = " localhost" ]; then
628
- ln ${1/ file: \/\/ / } " $TMP_PATH /nancy_$containerHash /" # TODO: option – hard links OR regular `cp`
628
+ # ln ${1/file:\/\//} "$TMP_PATH/nancy_$containerHash/"
629
+ # TODO: option – hard links OR regular `cp`
630
+ docker cp ${1/ file: \/\/ / } $containerHash :$MACHINE_HOME /
629
631
elif [ " $RUN_ON " = " aws" ]; then
630
632
docker-machine scp $1 $DOCKER_MACHINE :/home/ubuntu/nancy_${containerHash}
631
633
else
@@ -724,8 +726,11 @@ else
724
726
)
725
727
docker_exec bash -c " gzip -c $logpath > $MACHINE_HOME /$ARTIFACTS_FILENAME .log.gz"
726
728
if [ " $RUN_ON " = " localhost" ]; then
727
- cp " $TMP_PATH /nancy_$containerHash /" $ARTIFACTS_FILENAME .json $ARTIFACTS_DESTINATION /
728
- cp " $TMP_PATH /nancy_$containerHash /" $ARTIFACTS_FILENAME .log.gz $ARTIFACTS_DESTINATION /
729
+ docker cp $containerHash :$MACHINE_HOME /$ARTIFACTS_FILENAME .json $ARTIFACTS_DESTINATION /
730
+ docker cp $containerHash :$MACHINE_HOME /$ARTIFACTS_FILENAME .log.gz $ARTIFACTS_DESTINATION /
731
+ # TODO option: ln / cp
732
+ # cp "$TMP_PATH/nancy_$containerHash/"$ARTIFACTS_FILENAME.json $ARTIFACTS_DESTINATION/
733
+ # cp "$TMP_PATH/nancy_$containerHash/"$ARTIFACTS_FILENAME.log.gz $ARTIFACTS_DESTINATION/
729
734
elif [ " $RUN_ON " = " aws" ]; then
730
735
docker-machine scp $DOCKER_MACHINE :/home/ubuntu/nancy_$containerHash /$ARTIFACTS_FILENAME .json $ARTIFACTS_DESTINATION /
731
736
docker-machine scp $DOCKER_MACHINE :/home/ubuntu/nancy_$containerHash /$ARTIFACTS_FILENAME .log.gz $ARTIFACTS_DESTINATION /
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- echo " SKIP" && exit 0
4
-
5
3
thisDir=" $( dirname " $( readlink -f " $BASH_SOURCE " ) " ) "
6
4
parentDir=" $( dirname " $thisDir " ) "
7
5
srcDir=" $parentDir /.circleci"
@@ -13,7 +11,7 @@ nancyRun="$parentDir/nancy_run.sh"
13
11
output=$(
14
12
$nancyRun --workload-custom-sql " file://$srcDir /custom.sql" \
15
13
--db-dump-path " file://$srcDir /test.dump.bz2" \
16
- --tmp-path $srcDir /tmp
14
+ --tmp-path $srcDir /tmp 2>&1
17
15
)
18
16
19
17
if [[ $output =~ " Queries duration:" ]]; then
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- echo " SKIP" && exit 0
4
-
5
3
thisDir=" $( dirname " $( readlink -f " $BASH_SOURCE " ) " ) "
6
4
parentDir=" $( dirname " $thisDir " ) "
7
5
srcDir=" $parentDir /.circleci"
@@ -15,7 +13,7 @@ output=$(
15
13
--tmp-path ${srcDir} /tmp \
16
14
--db-dump-path " file://$srcDir /test.dump.bz2" \
17
15
--target-ddl-do " file://$srcDir /ddl_create_index.sql" \
18
- --target-ddl-undo " file://$srcDir /ddl_drop_index.sql"
16
+ --target-ddl-undo " file://$srcDir /ddl_drop_index.sql" 2>&1
19
17
)
20
18
21
19
if [[ $output =~ " Queries duration:" ]]; then
You can’t perform that action at this time.
0 commit comments