forked from gitcoinco/web
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Travis running cypress (gitcoinco#9411)
* updating dependencies to use custom fork of cypress-metamask * add script and options for running cypress tests * add wait-on package for scripting cypress runs * travis docs indicate that bionic will start xvfb by adding it as a service * add migration step * another attempt at including cypress tests * redirect webserver logs to /dev/null * bad idea to move stdout to dev/null * add NETWORK_NAME to travis env file * update runserver command to go to background * updating existing cypress tests to run on ci * update docker-compose file: use default accounts for ganache * add set -x to get more visibility into cypress command args * update call to cypress run to see if travis will recognize flags * try running cypress directly from node_modules * remove set -x now that arguments are making their way to cypress
- Loading branch information
Showing
9 changed files
with
4,706 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#! /bin/bash | ||
set -eou pipefail | ||
|
||
# start ganache and send to background | ||
yarn exec ganche-cli -m "${SECRET_WORDS}" -h 0.0.0.0 & | ||
|
||
# set up and run web application (sends to background but still writes to stdout) | ||
python3 app/manage.py migrate | ||
python3 app/manage.py runserver 0.0.0.0:8000 & | ||
|
||
# run cypress tests | ||
export CYPRESS_REMOTE_DEBUGGING_PORT=9222 | ||
yarn exec cypress install | ||
yarn exec wait-on http://0.0.0.0:8000 | ||
node_modules/.bin/cypress run --headed -b chrome |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,6 +55,7 @@ then | |
then | ||
yarn run build | ||
else | ||
yarn cypress install | ||
yarn run webpack & | ||
fi | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.