Skip to content

Commit

Permalink
[tools/ci] Support spec:cypress
Browse files Browse the repository at this point in the history
- Install node for spec:cypress
- Do an app:cypress:ui:seed instead of update:ui

The app:cypress:ui:seed handles compiling assets, so that would be
duplicate work to run it twice.
  • Loading branch information
NickLaMuro committed Aug 11, 2020
1 parent 7e4ef4d commit 15e87a8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/ci/before_install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# not spec, and not cross repo
if [ "$TEST_SUITE" = "spec:javascript" -o "$TEST_SUITE" = "spec:jest" -o "$TEST_SUITE" = "spec:compile" ]; then
if [ "$TEST_SUITE" = "spec:javascript" -o "$TEST_SUITE" = "spec:jest" -o "$TEST_SUITE" = "spec:compile" -o "$TEST_SUITE" = "spec:cypress" ]; then
nvm install 12
fi
7 changes: 6 additions & 1 deletion tools/ci/before_script.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
# not spec, and not cross repo
if [ "$TEST_SUITE" = "spec:javascript" -o "$TEST_SUITE" = "spec:jest" -o "$TEST_SUITE" = "spec:compile" ]; then
if [ "$TEST_SUITE" = "spec:javascript" -o "$TEST_SUITE" = "spec:jest" -o "$TEST_SUITE" = "spec:compile" -o "$TEST_SUITE" = "spec:cypress" ]; then
# make sure yarn is installed, in the right version
bundle exec rake webpacker:check_yarn || npm install -g yarn

# install & compile dependencies
bundle exec rake update:ui

if [ "$TEST_SUITE" = "spec:cypress" ]; then
# run evm:compile_assets (and friends) if cypress
bundle exec rake app:cypress:ui:seed
fi
fi

0 comments on commit 15e87a8

Please sign in to comment.