Skip to content

Commit

Permalink
CLI tests: replace rsync with cp
Browse files Browse the repository at this point in the history
  • Loading branch information
Hypnosphi committed Sep 30, 2018
1 parent 910108a commit 621a4ed
Show file tree
Hide file tree
Showing 5 changed files with 2,827 additions and 10 deletions.
4 changes: 0 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,6 @@ jobs:
command: yarn coverage
cli:
<<: *defaults
docker:
- image: andthensome/docker-node-rsync
environment:
BASH_ENV: ~/.bashrc
steps:
Expand All @@ -264,8 +262,6 @@ jobs:
no_output_timeout: 1800
cli-latest-cra:
<<: *defaults
docker:
- image: andthensome/docker-node-rsync
environment:
BASH_ENV: ~/.bashrc
steps:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ object OpenSourceProjects_Storybook_CliTest : BuildType({
yarn
yarn bootstrap --core
""".trimIndent()
dockerImage = "amfio/node-rsync"
dockerImage = "node:%docker.node.version%"
}
script {
name = "Test"
scriptContent = "yarn test --cli"
dockerImage = "amfio/node-rsync"
dockerImage = "node:%docker.node.version%"
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ object OpenSourceProjects_Storybook_CliTestLatestCra : BuildType({
yarn
yarn bootstrap --core
""".trimIndent()
dockerImage = "amfio/node-rsync"
dockerImage = "node:%docker.node.version%"
}
script {
name = "Test"
scriptContent = "yarn test-latest-cra"
dockerImage = "amfio/node-rsync"
dockerImage = "node:%docker.node.version%"
}
}

Expand Down
3 changes: 2 additions & 1 deletion lib/cli/test/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ while getopts ":uosf:" opt; do
done

# copy all files from fixtures directory to `run`
rsync -rl --delete --exclude=yarn.lock $fixtures_dir/ run
rm -rfd run
cp -r $fixtures_dir run
cd run

for dir in *
Expand Down
Loading

0 comments on commit 621a4ed

Please sign in to comment.