-
Notifications
You must be signed in to change notification settings - Fork 216
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
16 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,18 +59,21 @@ do | |
ngx new --no-analytics --automate "$CWD/$file" "$TEST_APP_NAME" --no-insights | ||
npm run test:ci | ||
|
||
USE_PROTRACTOR=$(npm list --depth 0 --parseable protractor) | ||
echo | ||
echo "Unit tests completed." | ||
echo | ||
|
||
if [ ! -z "$USE_PROTRACTOR" ]; then | ||
if [ -n "$(cat package.json | grep protractor)" ]; then | ||
echo "Setting up puppeteer for protractor..." | ||
|
||
# force specific puppeteer/webdriver version to match up | ||
if [ "$NGX_PACKAGE_MANAGER" == "yarn" ]; then | ||
yarn add -D [email protected] | ||
yarn run webdriver-manager update --versions.chrome 104.0.5112.79 --gecko=false | ||
yarn add -D webdriver-manager | ||
yarn run webdriver-manager update --versions.chrome '104.0.5112.79' --gecko false | ||
else | ||
npm i -D [email protected] | ||
npx webdriver-manager update --versions.chrome 104.0.5112.79 --gecko=false | ||
npm i -D webdriver-manager | ||
npx webdriver-manager update --versions.chrome '104.0.5112.79' --gecko false | ||
fi | ||
# force usage of local chrome binary, in headless mode | ||
PROTRACTOR_CHROME_BIN=$(node -p "require('puppeteer').executablePath()") \ | ||
|
@@ -80,8 +83,16 @@ do | |
npm run e2e --if-present | ||
fi | ||
|
||
echo | ||
echo "E2E tests completed." | ||
echo | ||
|
||
npm run build -- --no-progress | ||
|
||
echo | ||
echo "Build completed." | ||
echo | ||
|
||
if [ -n "$TEST_ANDROID" ]; then | ||
|
||
# fix for Android SDK 31 | ||
|