forked from inspirehep/inspirehep
-
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.
Showing
12 changed files
with
56 additions
and
52 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 was deleted.
Oops, something went wrong.
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,32 @@ | ||
rc=0 | ||
files="-f docker-compose.yml -f ./e2e/docker-compose.cypress.yml" | ||
|
||
(docker-compose $files build --parallel) & | ||
|
||
# run installs sequantially until we move different cache foreach | ||
# https://github.com/yarnpkg/yarn/issues/7087#issuecomment-719434163 | ||
(cd ui && yarn install) | ||
(cd record-editor && yarn install) | ||
|
||
(cd ui && yarn build) & | ||
(cd record-editor && yarn build) & | ||
|
||
wait %1 # wait for docker-compose build before up | ||
docker-compose $files up -d --force-recreate & | ||
|
||
# wait for everything | ||
wait %1 | ||
wait %2 | ||
wait %3 | ||
wait %4 | ||
|
||
# import data | ||
docker-compose $files exec hep-web ./scripts/setup | ||
docker-compose $files exec next-web inspirehep db create | ||
docker-compose $files exec hep-web inspirehep importer demo-records | ||
|
||
# run tests | ||
docker-compose $files run -w "/tests" --rm cypress bash -c "yarn && yarn test --browser firefox --headless --env inspirehep_url=http://ui:8080" || rc=$? | ||
docker-compose $files logs --no-color > cypress-containers.log | ||
|
||
exit $rc |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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