File tree Expand file tree Collapse file tree 11 files changed +57
-40
lines changed Expand file tree Collapse file tree 11 files changed +57
-40
lines changed Original file line number Diff line number Diff line change @@ -44,23 +44,6 @@ matrix:
44
44
script : node tests/run_e2e.js --nb-shards=4 --shard=3 --nosilent
45
45
env : e2e-3
46
46
47
- - node_js : " 6"
48
- os : linux
49
- script : node tests/run_e2e.js --nb-shards=4 --shard=0 --nosilent --nightly
50
- env : nightly-0
51
- - node_js : " 6"
52
- os : linux
53
- script : node tests/run_e2e.js --nb-shards=4 --shard=1 --nosilent --nightly
54
- env : nightly-1
55
- - node_js : " 6"
56
- os : linux
57
- script : node tests/run_e2e.js --nb-shards=4 --shard=2 --nosilent --nightly
58
- env : nightly-2
59
- - node_js : " 6"
60
- os : linux
61
- script : node tests/run_e2e.js --nb-shards=4 --shard=3 --nosilent --nightly
62
- env : nightly-3
63
-
64
47
- node_js : " 6"
65
48
os : linux
66
49
script : node tests/run_e2e.js --eject "--glob=tests/build/**"
Original file line number Diff line number Diff line change 5
5
updateTsConfig ,
6
6
updateJsonFile ,
7
7
useNg2 ,
8
+ useNg4 ,
8
9
useSha ,
9
10
useCIChrome ,
10
11
useCIDefaults ,
@@ -45,6 +46,7 @@ export default function() {
45
46
. then ( ( ) => useCIChrome ( ) )
46
47
. then ( ( ) => useCIDefaults ( ) )
47
48
. then ( ( ) => argv [ 'ng2' ] ? useNg2 ( ) : Promise . resolve ( ) )
49
+ . then ( ( ) => argv [ 'ng4' ] ? useNg4 ( ) : Promise . resolve ( ) )
48
50
. then ( ( ) => argv . nightly || argv [ 'ng-sha' ] ? useSha ( ) : Promise . resolve ( ) )
49
51
// npm link on Circle CI is very noisy.
50
52
. then ( ( ) => silentNpm ( 'install' ) )
Original file line number Diff line number Diff line change @@ -7,9 +7,8 @@ export default function () {
7
7
// Disable parts of it in webpack tests.
8
8
const ejected = getGlobalVariable ( 'argv' ) . eject ;
9
9
10
- // Skip this in ng5 tests, it only happens in ng2/4.
11
- // This check should be changed once ng5 because the default.
12
- if ( getGlobalVariable ( 'argv' ) . nightly ) {
10
+ // This test is only for Angular 2/4 projects.
11
+ if ( ! getGlobalVariable ( 'argv' ) . ng2 && ! getGlobalVariable ( 'argv' ) . ng4 ) {
13
12
return Promise . resolve ( ) ;
14
13
}
15
14
Original file line number Diff line number Diff line change @@ -15,13 +15,14 @@ export default function () {
15
15
if ( process . platform . startsWith ( 'win' ) ) {
16
16
return Promise . resolve ( ) ;
17
17
}
18
+
18
19
// Skip this in ejected tests.
19
20
if ( getGlobalVariable ( 'argv' ) . eject ) {
20
21
return Promise . resolve ( ) ;
21
22
}
22
23
23
- // Skip in non-nightly tests. Switch this check around when ng5 is out .
24
- if ( ! getGlobalVariable ( 'argv' ) . nightly ) {
24
+ // Skip this test in Angular 2/4 .
25
+ if ( getGlobalVariable ( 'argv' ) . ng2 || getGlobalVariable ( 'argv' ) . ng4 ) {
25
26
return Promise . resolve ( ) ;
26
27
}
27
28
Original file line number Diff line number Diff line change @@ -9,12 +9,12 @@ export default function () {
9
9
. then ( ( ) => expectToFail ( ( ) => expectFileToExist ( 'dist/vendor.js' ) ) )
10
10
. then ( ( ) => expectToFail ( ( ) => expectFileToMatch ( 'dist/main.js' , / \. d e c o r a t o r s = / ) ) )
11
11
. then ( ( ) => {
12
- // Check if build optimizer is on by default in ng5 prod builds
13
- // This check should be changed once ng5 because the default.
14
- if ( ! getGlobalVariable ( 'argv' ) . nightly ) {
12
+ // Skip this part of the test in Angular 2/4.
13
+ if ( getGlobalVariable ( 'argv' ) . ng2 || getGlobalVariable ( 'argv' ) . ng4 ) {
15
14
return Promise . resolve ( ) ;
16
15
}
17
16
17
+ // Check if build optimizer is on by default in ng5 prod builds
18
18
return Promise . resolve ( )
19
19
. then ( ( ) => ng ( 'build' , '--prod' ) )
20
20
. then ( ( ) => expectToFail ( ( ) => expectFileToExist ( 'dist/vendor.js' ) ) )
Original file line number Diff line number Diff line change @@ -26,8 +26,9 @@ export default function () {
26
26
27
27
let platformServerVersion = readNgVersion ( ) ;
28
28
29
- if ( getGlobalVariable ( 'argv' ) . nightly ) {
30
- platformServerVersion = 'github:angular/platform-server-builds' ;
29
+ // Skip this test in Angular 2/4.
30
+ if ( getGlobalVariable ( 'argv' ) . ng2 || getGlobalVariable ( 'argv' ) . ng4 ) {
31
+ return Promise . resolve ( ) ;
31
32
}
32
33
33
34
return Promise . resolve ( )
Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ export default function () {
26
26
return Promise . resolve ( ) ;
27
27
}
28
28
29
- // Skip in non-nightly tests. Switch this check around when ng5 is out .
30
- if ( ! getGlobalVariable ( 'argv' ) . nightly ) {
29
+ // Skip this test in Angular 2/4 .
30
+ if ( getGlobalVariable ( 'argv' ) . ng2 || getGlobalVariable ( 'argv' ) . ng4 ) {
31
31
return Promise . resolve ( ) ;
32
32
}
33
33
Original file line number Diff line number Diff line change @@ -70,8 +70,8 @@ export default function () {
70
70
}
71
71
} )
72
72
. then ( ( ) => {
73
- // Skip in non-nightly tests. Switch this check around when ng5 is out .
74
- if ( ! getGlobalVariable ( 'argv' ) . nightly ) {
73
+ // Skip this part of the test in Angular 2/4 .
74
+ if ( getGlobalVariable ( 'argv' ) . ng2 || getGlobalVariable ( 'argv' ) . ng4 ) {
75
75
return Promise . resolve ( ) ;
76
76
}
77
77
Original file line number Diff line number Diff line change @@ -5,9 +5,8 @@ import { expectToFail } from '../../utils/utils';
5
5
6
6
7
7
export default function ( ) {
8
- // Check if register locale works in ng5 prod builds
9
- // This check should be changed once ng5 because the default.
10
- if ( ! getGlobalVariable ( 'argv' ) . nightly ) {
8
+ // Skip this test in Angular 2/4.
9
+ if ( getGlobalVariable ( 'argv' ) . ng2 || getGlobalVariable ( 'argv' ) . ng4 ) {
11
10
return Promise . resolve ( ) ;
12
11
}
13
12
Original file line number Diff line number Diff line change @@ -7,11 +7,9 @@ export default function () {
7
7
// Update as needed.
8
8
let unsupportedTsVersion = '2.5' ;
9
9
10
- // TODO: re-enable for ng5, adjust as needed. This test fails on ng5 because the 2.5 is supported.
11
- // When ng5 because the default this test will need to be adjusted to use 2.3 as the unsupported
12
- // version, and to disable the experimental angular compiler (transforms need 2.4 minimum).
13
- if ( getGlobalVariable ( 'argv' ) . nightly ) {
14
- return ;
10
+ // Skip this test in Angular 2/4.
11
+ if ( getGlobalVariable ( 'argv' ) . ng2 || getGlobalVariable ( 'argv' ) . ng4 ) {
12
+ return Promise . resolve ( ) ;
15
13
}
16
14
17
15
return Promise . resolve ( )
You can’t perform that action at this time.
0 commit comments