Skip to content

Commit 007b17b

Browse files
Merge pull request #55 from angular/master
Update upstream
2 parents c2136ce + ea592a1 commit 007b17b

File tree

8 files changed

+61
-16
lines changed

8 files changed

+61
-16
lines changed

.circleci/config.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
version: 2
2+
jobs:
3+
build:
4+
working_directory: ~/angular-cli
5+
docker:
6+
- image: angular/ngcontainer
7+
steps:
8+
- checkout
9+
- restore_cache:
10+
key: angular-cli-{{ .Branch }}-{{ checksum "yarn.lock" }}
11+
- run: yarn --frozen-lockfile
12+
- save_cache:
13+
key: angular-cli-{{ .Branch }}-{{ checksum "yarn.lock" }}
14+
paths:
15+
- "node_modules"
16+
- run: xvfb-run -a node tests/run_e2e.js --glob=tests/build/**

.travis.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@ cache:
88
directories:
99
- ./node_modules
1010

11-
env:
12-
global:
13-
- DBUS_SESSION_BUS_ADDRESS=/dev/null
14-
15-
1611
matrix:
1712
fast_finish: true
1813
allow_failures:
@@ -32,19 +27,19 @@ matrix:
3227
env: test
3328
- node_js: "6"
3429
os: linux
35-
script: node tests/run_e2e.js "--ignore=**/tests/build/**" --nb-shards=4 --shard=0 --nosilent
30+
script: node tests/run_e2e.js --nb-shards=4 --shard=0 --nosilent
3631
env: e2e-0
3732
- node_js: "6"
3833
os: linux
39-
script: node tests/run_e2e.js "--ignore=**/tests/build/**" --nb-shards=4 --shard=1 --nosilent
34+
script: node tests/run_e2e.js --nb-shards=4 --shard=1 --nosilent
4035
env: e2e-1
4136
- node_js: "6"
4237
os: linux
43-
script: node tests/run_e2e.js "--ignore=**/tests/build/**" --nb-shards=4 --shard=2 --nosilent
38+
script: node tests/run_e2e.js --nb-shards=4 --shard=2 --nosilent
4439
env: e2e-2
4540
- node_js: "6"
4641
os: linux
47-
script: node tests/run_e2e.js "--ignore=**/tests/build/**" --nb-shards=4 --shard=3 --nosilent
42+
script: node tests/run_e2e.js --nb-shards=4 --shard=3 --nosilent
4843
env: e2e-3
4944
- node_js: "6"
5045
os: linux
@@ -109,6 +104,7 @@ install:
109104

110105
env:
111106
global:
107+
- DBUS_SESSION_BUS_ADDRESS=/dev/null
112108
# GITHUB_ACCESS_TOKEN=<github token, a personal access token of the angular-builds account, account access in valentine>
113109
# This is needed to publish packages to github for continuous packages delivery.
114110
- secure: "XUM1RCN/ZH34ju2PI9eHPRMnSlbj45XcBx/ZnZ13wfau60iJCveU7Ded8SC8uwGDp58rGGePXyJfh5l5dAnIWbSAGNKlrEgGTr41RSCbyzrV6m4lAcwNzUo/PkKum1vAApk21PqscrSSWOBAOC3nMCln25GLzgUMm6G8FBOc599NuszcoQvru+H+4JthSHn4l/nmeTZDs2oCBvwnmng/78rEW5CXvJEpAwuaaZLvzzIFdoZu+SuceYvGnL5xHo0ppPF/0NYzZlb7KBKREp44Lq1lOKlDtH5wqjEi7b2aA7/GnesOgLUBmbbSVUzmCxs6PtzGhD56aiL2Qtu8c4LZyvNfzPXSLbx8ljYmdytHkio9w3377wWFRXJDfIsgv9JKHxxyA0T34yzQkqWbgWKPMgJ3om+lb875iXAtXfNyS0trnN+rwLZZtFxygjHyx8IWY+NZD5i5fyjMdFyetNxbHe3ktI73nY+Tl6hDqJXvN8WwQlMovLNUMcY4wGUoPooLka9L+94uetbf3U4KVgshrLHI59jMZsO0qrDGsCZMubHEy80acrNkCTi/uGIbVR0KF94z81VF+S7edYv80AkQTRijpgNV34045L/IqSHgbueozRgVFj2arkAGGFjLlZJifmsRC/Eq1ZWkKsKY/1NusKssCRtycJQjeLOW0qV1T0w="

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@angular/cli",
3-
"version": "1.3.0-beta.0",
3+
"version": "1.3.0-beta.1",
44
"description": "CLI tool for Angular",
55
"main": "packages/@angular/cli/lib/cli/index.js",
66
"trackingCode": "UA-8594346-19",

packages/@angular/cli/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@angular/cli",
3-
"version": "1.3.0-beta.0",
3+
"version": "1.3.0-beta.1",
44
"description": "CLI tool for Angular",
55
"main": "lib/cli/index.js",
66
"trackingCode": "UA-8594346-19",
@@ -28,7 +28,7 @@
2828
"homepage": "https://github.com/angular/angular-cli",
2929
"dependencies": {
3030
"@ngtools/json-schema": "1.1.0",
31-
"@ngtools/webpack": "1.6.0-beta.0",
31+
"@ngtools/webpack": "1.6.0-beta.1",
3232
"autoprefixer": "^6.5.3",
3333
"chalk": "^1.1.3",
3434
"circular-dependency-plugin": "^3.0.0",

packages/@ngtools/webpack/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ngtools/webpack",
3-
"version": "1.6.0-beta.0",
3+
"version": "1.6.0-beta.1",
44
"description": "Webpack plugin that AoT compiles your Angular components and modules.",
55
"main": "./src/index.js",
66
"typings": "src/index.d.ts",

tests/e2e/setup/100-npm-link.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {join} from 'path';
2-
import {npm, exec} from '../utils/process';
2+
import {silentNpm, exec} from '../utils/process';
33
import {updateJsonFile} from '../utils/project';
44
import {getGlobalVariable} from '../utils/env';
55

@@ -33,7 +33,8 @@ export default function () {
3333
}
3434
});
3535
}))
36-
.then(() => npm('link'))
36+
// npm link is very noisy on the older version used in Circle CI.
37+
.then(() => silentNpm('link'))
3738
.then(() => process.chdir(oldCwd));
3839
})
3940
.then(() => exec(process.platform.startsWith('win') ? 'where' : 'which', 'ng'));

tests/e2e/setup/500-create-project.ts

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {join} from 'path';
22
import {git, ng, silentNpm} from '../utils/process';
3-
import {expectFileToExist} from '../utils/fs';
3+
import {expectFileToExist, replaceInFile} from '../utils/fs';
44
import {updateTsConfig, updateJsonFile, useNg2} from '../utils/project';
55
import {gitClean, gitCommit} from '../utils/git';
66
import {getGlobalVariable} from '../utils/env';
@@ -36,6 +36,27 @@ export default function() {
3636
json['dependencies'][pkgName] = packages[pkgName].tar;
3737
});
3838
}))
39+
// There's a race condition happening in Chrome. Enabling logging in chrome used by
40+
// protractor actually fixes it. Logging is piped to a file so it doesn't affect our setup.
41+
// --no-sandbox is needed for Circle CI.
42+
.then(() => replaceInFile('protractor.conf.js', `'browserName': 'chrome'`,
43+
`'browserName': 'chrome',
44+
chromeOptions: {
45+
args: [
46+
"--enable-logging",
47+
"--no-sandbox",
48+
]
49+
}
50+
`))
51+
.then(() => replaceInFile('karma.conf.js', `browsers: ['Chrome'],`,
52+
`browsers: ['ChromeNoSandbox'],
53+
customLaunchers: {
54+
ChromeNoSandbox: {
55+
base: 'Chrome',
56+
flags: ['--no-sandbox']
57+
}
58+
},
59+
`))
3960
.then(() => argv['ng2'] ? useNg2() : Promise.resolve())
4061
.then(() => {
4162
if (argv['nightly'] || argv['ng-sha']) {
@@ -78,6 +99,7 @@ export default function() {
7899
progress: false
79100
};
80101
}))
102+
// npm link on Circle CI is very noisy.
81103
.then(() => silentNpm('install'))
82104
// Force sourcemaps to be from the root of the filesystem.
83105
.then(() => updateTsConfig(json => {

tests/e2e/tests/build/poll.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@ import {expectToFail, wait} from '../../utils/utils';
99
const webpackGoodRegEx = /webpack: Compiled successfully./;
1010

1111
export default function() {
12+
13+
// @filipesilva: This test doesn't work correctly on CircleCI while being ran by the test script.
14+
// Polling time seems to be ignored and several builds are fired per second.
15+
// Debugging showed that webpack things the `src/` directory changed on each rebuild.
16+
// Disabling for now.
17+
if (process.env['CIRCLECI']) {
18+
return;
19+
}
20+
21+
1222
return silentExecAndWaitForOutputToMatch('ng', ['serve', '--poll=10000'], webpackGoodRegEx)
1323
// Wait before editing a file.
1424
// Editing too soon seems to trigger a rebuild and throw polling out of whack.

0 commit comments

Comments
 (0)