Skip to content

Commit 5a84729

Browse files
filipesilvaKeen Yee Liau
authored andcommitted
ci: use puppeteer
1 parent 3a70eb7 commit 5a84729

File tree

15 files changed

+132
-53
lines changed

15 files changed

+132
-53
lines changed

.appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ install:
1111
- ps: Install-Product node $env:nodejs_version
1212
# --network-timeout is a workaround for https://github.com/yarnpkg/yarn/issues/6221
1313
- yarn --frozen-lockfile --network-timeout=500000
14-
- yarn webdriver-update-appveyor
14+
- yarn webdriver-update
1515

1616
test_script:
1717
- node --version

.buildkite/pipeline.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ steps:
1111
# Actual CI commands
1212
# --network-timeout is a workaround for https://github.com/yarnpkg/yarn/issues/6221
1313
- yarn install --frozen-lockfile --non-interactive --network-timeout 500000
14-
- yarn webdriver-update-appveyor
14+
- yarn webdriver-update
1515
- node --version
1616
- yarn --version
1717
- yarn test

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
parallelism: 4
7575
steps:
7676
- attach_workspace: *attach_options
77-
- run: npm run webdriver-update-circleci
77+
- run: npm run webdriver-update
7878
- run: npm run test-large -- --full --nb-shards=${CIRCLE_NODE_TOTAL} --shard=${CIRCLE_NODE_INDEX}
7979

8080
e2e-cli:

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
FROM node:10.12
2+
ENTRYPOINT [ "sh" ]

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@
3535
"validate-commits": "./bin/devkit-admin validate-commits",
3636
"prepush": "node ./bin/devkit-admin hooks/pre-push",
3737
"preinstall": "node ./tools/yarn/check-yarn.js",
38-
"webdriver-update-appveyor": "webdriver-manager update --standalone false --gecko false --versions.chrome 2.37",
39-
"webdriver-update-circleci": "webdriver-manager update --standalone false --gecko false --versions.chrome $CHROMEDRIVER_VERSION_ARG "
38+
"webdriver-update": "webdriver-manager update --standalone false --gecko false --versions.chrome 2.45"
4039
},
4140
"repository": {
4241
"type": "git",
@@ -66,6 +65,7 @@
6665
"dependencies": {
6766
"glob": "^7.0.3",
6867
"node-fetch": "^2.2.0",
68+
"puppeteer": "1.11.0",
6969
"quicktype-core": "^6.0.15",
7070
"temp": "^0.9.0",
7171
"tslint": "^5.11.0",

packages/angular_devkit/core/src/json/schema/registry_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { addUndefinedDefaults } from './transforms';
1414

1515
describe('CoreSchemaRegistry', () => {
1616
it('works asynchronously', done => {
17-
if (process.env.BUILDKITE === 'true') {
17+
if (process.platform.startsWith('win')) {
1818
// This test consistently fails on Windows BuildKite, but doesn't fail on local Windows
1919
// or in Appveyor. Many tests test the async behaviour of the registry, but this is the only
2020
// one that also fetches an async ref. Perhaps that is why.

tests/angular_devkit/build_angular/hello-world-app/angular.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
"polyfills": "src/polyfills.ts",
9898
"tsConfig": "src/tsconfig.spec.json",
9999
"karmaConfig": "karma.conf.js",
100-
"browsers": "ChromeHeadless",
100+
"browsers": "ChromeHeadlessCI",
101101
"progress": false,
102102
"watch": false,
103103
"styles": [

tests/angular_devkit/build_angular/hello-world-app/karma.conf.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ module.exports = function (config) {
3535
logLevel: config.LOG_INFO,
3636
autoWatch: true,
3737
browsers: ['Chrome'],
38+
customLaunchers: {
39+
ChromeHeadlessCI: {
40+
base: 'ChromeHeadless',
41+
flags: ['--disable-gpu']
42+
}
43+
},
3844
singleRun: false
3945
});
4046
};

tests/angular_devkit/build_angular/hello-world-app/protractor.conf.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ exports.config = {
1919
capabilities: {
2020
'browserName': 'chrome',
2121
chromeOptions: {
22-
args: ["--headless", "--disable-gpu", "--window-size=800,600"]
22+
args: ['--headless', '--disable-gpu', '--window-size=800,600'],
23+
binary: require('puppeteer').executablePath()
2324
}
2425
},
2526
directConnect: true,

tests/angular_devkit/build_ng_packagr/ng-packaged/angular.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"main": "projects/lib/src/test.ts",
2020
"tsConfig": "projects/lib/tsconfig.spec.json",
2121
"karmaConfig": "projects/lib/karma.conf.js",
22-
"browsers": "ChromeHeadless",
22+
"browsers": "ChromeHeadlessCI",
2323
"progress": false,
2424
"watch": false
2525
}

0 commit comments

Comments
 (0)