Skip to content

Commit

Permalink
Merge pull request #3381 from satanTime/issues/e2e
Browse files Browse the repository at this point in the history
build: full installation of dependencies
  • Loading branch information
satanTime authored Aug 20, 2022
2 parents aada7cc + f6f5a01 commit edb2dd8
Show file tree
Hide file tree
Showing 2 changed files with 121 additions and 30 deletions.
18 changes: 8 additions & 10 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,22 @@ The best way would be to discuss an issue or an improvement first:
- [ask a question on gitter](https://gitter.im/ng-mocks/community)
- [report it as an issue on github](https://github.com/help-me-mom/ng-mocks/issues)

## How tu run unit tests locally

- open a terminal and execute

```shell
npm run test
```

## How tu run E2E tests locally
## How to install dependencies

- install docker: https://hub.docker.com
- install docker-compose: https://docs.docker.com/compose/install/
- open a terminal and execute

```shell
docker-compose up --build
sh ./docker-compose.sh
```

## How to run unit tests locally

```shell
npm run test
```

## How to run tests in IE locally

- login to a Windows OS: https://developer.microsoft.com/en-us/microsoft-edge/tools/vms
Expand Down
133 changes: 113 additions & 20 deletions docker-compose.sh
Original file line number Diff line number Diff line change
@@ -1,22 +1,115 @@
#!/usr/bin/env bash
set -e

echo "Starting" && \
docker-compose up -- ng-mocks && \
docker-compose up -- docs && \
docker-compose up -- e2e && \
docker-compose up -- a5es5 && \
docker-compose up -- a5es2015 && \
docker-compose up -- a6 && \
docker-compose up -- a7 && \
docker-compose up -- a8 && \
docker-compose up -- a9 && \
docker-compose up -- a10 && \
docker-compose up -- a11 && \
docker-compose up -- a12 && \
docker-compose up -- a13 && \
docker-compose up -- a14 && \
docker-compose up -- jasmine && \
docker-compose up -- jest && \
docker-compose up -- min && \
docker-compose up -- nx && \
docker-compose down --remove-orphans
echo "Starting"

export NVM_DIR="$HOME/.nvm" && \. "$NVM_DIR/nvm.sh"

docker-compose up -- ng-mocks && \
nvm install && \
nvm use && \
node ./node_modules/puppeteer/install.js

docker-compose up -- docs

docker-compose up -- e2e && \
cd ./tests-e2e && \
nvm install && \
nvm use && \
node ./node_modules/puppeteer/install.js && \
cd ..

docker-compose up -- a5es5 && \
cd ./e2e/a5es5 && \
nvm install && \
nvm use && \
node ./node_modules/puppeteer/install.js && \
cd ../..

docker-compose up -- a5es2015 && \
cd ./e2e/a5es2015 && \
nvm install && \
nvm use && \
node ./node_modules/puppeteer/install.js && \
cd ../..

docker-compose up -- a6 && \
cd ./e2e/a6 && \
nvm install && \
nvm use && \
node ./node_modules/puppeteer/install.js && \
cd ../..

docker-compose up -- a7 && \
cd ./e2e/a7 && \
nvm install && \
nvm use && \
node ./node_modules/puppeteer/install.js && \
cd ../..

docker-compose up -- a8 && \
cd ./e2e/a8 && \
nvm install && \
nvm use && \
node ./node_modules/puppeteer/install.js && \
cd ../..

docker-compose up -- a9 && \
cd ./e2e/a9 && \
nvm install && \
nvm use && \
node ./node_modules/puppeteer/install.js && \
cd ../..

docker-compose up -- a10 && \
cd ./e2e/a10 && \
nvm install && \
nvm use && \
node ./node_modules/puppeteer/install.js && \
cd ../..

docker-compose up -- a11 && \
cd ./e2e/a11 && \
nvm install && \
nvm use && \
node ./node_modules/puppeteer/install.js && \
cd ../..

docker-compose up -- a12 && \
cd ./e2e/a12 && \
nvm install && \
nvm use && \
node ./node_modules/puppeteer/install.js && \
cd ../..

docker-compose up -- a13 && \
cd ./e2e/a13 && \
nvm install && \
nvm use && \
node ./node_modules/puppeteer/install.js && \
cd ../..

docker-compose up -- a14 && \
cd ./e2e/a14 && \
nvm install && \
nvm use && \
node ./node_modules/puppeteer/install.js && \
cd ../..

docker-compose up -- jasmine && \
cd ./e2e/jasmine && \
nvm install && \
nvm use && \
node ./node_modules/puppeteer/install.js && \
cd ../..

docker-compose up -- jest

docker-compose up -- min && \
cd ./e2e/min && \
nvm install && \
nvm use && \
node ./node_modules/puppeteer/install.js && \
cd ../..

docker-compose up -- nx

0 comments on commit edb2dd8

Please sign in to comment.