forked from angular/angular-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate-1.7.ts
More file actions
19 lines (17 loc) · 708 Bytes
/
update-1.7.ts
File metadata and controls
19 lines (17 loc) · 708 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { createProjectFromAsset } from '../../utils/assets';
import { ng } from '../../utils/process';
import { useCIChrome, useCIDefaults } from '../../utils/project';
import { expectToFail } from '../../utils/utils';
export default function () {
return Promise.resolve()
.then(() => createProjectFromAsset('1.7-project'))
.then(() => useCIChrome('.'))
.then(() => expectToFail(() => ng('build')))
.then(() => ng('update', '@angular/cli'))
.then(() => useCIDefaults('latest-project'))
.then(() => ng('generate', 'component', 'my-comp'))
.then(() => ng('test', '--watch=false'))
.then(() => ng('lint'))
.then(() => ng('build', '--prod'))
.then(() => ng('e2e'));
}