215 Commits

Author SHA1 Message Date
Victor Berchet
14ac7ad6b4 feat(ivy): implement TestBed ()
PR Close 
2018-08-14 11:58:47 -07:00
George Kalpakas
ddb792da28 build: remove unnecessary internal-angular karma reporter ()
The reporter was added in 87d56acda, with the purpose of fixing
source-map paths (which was apparently needed back then). Things have
moved around a lot since then and the custom reporter doesn't seem to be
necessary any more. By removing the reporter, we have one less thing to
worry about while upgrading karma; plus we get improvements in built-in
reporters for free.

Output with the custom reporter:
```
at someMethod (packages/core/.../some-file.ts:13:37)
```

Output with the built-in reporter:
```
at someMethod (packages/core/.../some-file.ts:13.37 <- dist/all/@angular/core/.../some-file.js:1:337)
```

PR Close 
2018-07-09 15:10:49 -07:00
George Kalpakas
00c110b055 build: upgrade jasmine (and related typings) to latest version ()
With these changes, the types are a little stricter now and also not
compatible with Protractor's jasmine-like syntax. So, we have to also
use `@types/jasminewd2` for e2e tests (but not for non-e2e tests).

I also had to "augment" `@types/jasminewd2`, because the latest
typings from [DefinitelyTyped][1] do not reflect the fact that the
`jasminewd2` version (v2.1.0) currently used by Protractor supports
passing a `done` callback to a spec.

[1]: 566e039485/types/jasminewd2/index.d.ts (L9-L15)

Fixes 
Closes 

PR Close 
2018-07-06 13:48:02 -07:00
Igor Minar
e3064d5432 feat: typescript 2.9 support ()
PR Close 
2018-07-03 13:32:06 -07:00
Alex Rickabaugh
7983f0a69b ci(ivy): configure CI environments for Ivy JIT and AOT ()
Two new CircleCI environments are created: test_ivy_jit and test_ivy_aot.
Both run a subset of the tests that have been marked with Bazel tags as
being appropriate for that environment.

Once all the tests pass, builds are published to the *-builds repo both
for the legacy View Engine compiled code as well as for ivy-jit and ivy-aot.

PR Close 
2018-06-08 13:34:27 -07:00
Alex Eagle
b45fa5e263 ci: hide encryption key from circleci logs ()
PR Close 
2018-05-02 16:43:13 -07:00
Alex Eagle
ace6440460 ci: fix snapshot publishing ()
PR Close 
2018-04-23 16:32:38 -07:00
Alex Eagle
b26ac1c22f ci: publish build snapshots from Bazel/CircleCI ()
This uses a new script and CircleCI job called "build-packages-dist"
which shims the new Bazel build to produce outputs matching the legacy
build. We'll use this to get AIO testing onto CircleCI as well.

We move the integration tests to a new circleCI job that depends on this
one, as well as the build publishing job.

Note that every PR will have a trivial green publishing status, because
we always create this job even for PRs. We'd rather not - see
https://discuss.circleci.com/t/workflows-pull-request-filter/14396/4

PR Close 
2018-04-23 15:45:56 -07:00
George Kalpakas
c3c513ed9e build(aio): remove redundant flags from cli commands ()
PR Close 
2018-04-17 14:09:02 -07:00
George Kalpakas
0d56cee9e1 refactor(aio): rename yarn script (deployment-config-test --> redirects-test) ()
PR Close 
2018-04-17 13:45:38 -07:00
Alex Eagle
7e581dab5f ci: remove travis e2e_2 job ()
The only remaining test can run in the first e2e travis shard.
This also removes the last thing needing bazel available on Travis.

PR Close 
2018-04-13 16:30:50 -07:00
Alex Eagle
328b48b697 test: integration tests now against bazel built packages ()
PR Close 
2018-04-13 16:30:50 -07:00
Rafael
639d52fe71 refactor: ensure all 'TODO's are consistent ()
PR Close 
2018-04-13 13:11:01 -07:00
Igor Minar
7e8cee6b61 build: fix aio size tracking, we need to use node_modules local to aio ()
This fixes an issue introduced by 4f0cae067656fa4563417542297c67030d911a36 which removed firebase from the root node_modules.

PR Close 
2018-04-11 23:14:23 -07:00
Alex Eagle
b3a10e0a42 build: update Bazel dependency to 0.11.1 ()
PR Close 
2018-04-10 23:01:30 -07:00
Joey Perrott
ab348ee2be build: update browserstack key ()
PR Close 
2018-03-27 14:56:12 -04:00
Igor Minar
b43f8bc7d3 feat(core): upgrade rxjs to 6.0.0-alpha.4 ()
PR Close 
2018-03-19 21:51:51 -07:00
Igor Minar
4a7be487da ci: temporarily disable offline_compiler_test.sh ()
PR Close 
2018-03-19 21:51:51 -07:00
Andrew Seguin
87f60bccfd feat(elements): injector create ()
PR Close 
2018-03-16 12:39:07 -07:00
Andrew Seguin
4d506acba0 feat(aio): add hack, remove me ()
PR Close 
2018-03-16 12:39:07 -07:00
Chuck Jazdzewski
8449eb8d62 build: upgrade to TypeScript 2.7 ()
Fixes: 

PR Close 
2018-03-12 09:27:23 -07:00
Igor Minar
129d1e0fb1 build: add postinstall-patches.js script suitable for postinstall patching of dependencies ()
Because sometimes one has to do what one has to do...

PR Close 
2018-03-12 09:27:23 -07:00
Alex Eagle
1e6cc42a01 test: migrate remaining public-api tests to Bazel ()
We now create npm packages to cover all the public api assertions in tools/public_api_guard.
We no longer depend on ts-api-guardian from npm - it is now stale since the repository was archived.
There is no longer a gulp task to enforce or accept the public API, this is in CircleCI as part of running all bazel test targets.

PR Close 
2018-03-09 09:11:40 -08:00
Matias Niemelä
5bb9fcad3e build: comment-out chromium version checking code temporarily ()
Related 

PR Close 
2018-02-14 17:26:43 -05:00
Alex Eagle
4f19491fec ci: remove conditional clause for bazel install ()
No longer needed since we don't have a bazel job
PR Close 
2018-02-13 10:25:51 -08:00
Alex Eagle
8f36fd1374 ci: remove bazel job from Travis ()
This saves us an executor on Travis.

Note that we still do a bazel build on travis when we run the integration tests under e2e_2.

We expect that CircleCI is the only place we'll ever consume bazel-built artifacts.

PR Close 
2018-02-13 10:25:51 -08:00
Pete Bacon Darwin
bf29936af9 build(aio): test Firebase hosting redirection configuration ()
PR Close 
2018-02-02 07:52:30 -08:00
George Kalpakas
f6db9521ab ci(aio): run e2e tests in production mode ()
This will enable catching errors introduced by build optimizations that
do not appear in `development` mode.

Fixes 

PR Close 
2018-01-12 13:45:28 -08:00
Olivier Combe
7493b8ae10 build: upgrade yarn to 1.3.2 ()
Fixes 
PR Close 
2018-01-10 12:32:26 -08:00
Alex Eagle
463e2872a6 build: upgrade Bazel to 0.9.0 ()
Also install the skylark linter for .bzl files.

PR Close 
2018-01-09 10:28:46 -08:00
Igor Minar
8e80db4982 build: upgrade to @angular/cli@1.6.3 ()
PR Close 
2018-01-08 11:12:54 -08:00
Kara Erickson
b15d50af9b build(core): improve payload size failure message ()
PR Close 
2018-01-08 13:13:52 -05:00
Chuck Jazdzewski
83d207d0a7 build: upgrade to TypeScript 2.6 ()
Fixes 

PR Close 
2017-12-22 20:15:47 -08:00
George Kalpakas
b89e7c2cb7 ci(aio): move e2e tests to non-optional job
This essentially reverts , since the flakes should be gone after
pinning ChromeDriver and Chrome versions to 2.32 and 59 respectively.
2017-12-14 08:48:52 -08:00
George Kalpakas
b4db2e25d6 ci: downgrade Chromium to a version that does not cause flakes
There seems to be some issue that causes Chrome/ChromeDriver to
unexpectedly reload during the aio e2e tests, causing flakes. It is not
clear what exactly is causing the reloading, but to the best of my
knowledge it is something inside Chrome or ChromeDriver.

Pinning Chrome to r494239 (between 62.0.3185.0 and 62.0.3186.0) fixes
the flakes.

Fixes 
2017-12-14 08:48:52 -08:00
George Kalpakas
81d497ce1f build: pin ChromeDriver version ()
Since our version of Chromium is also pinned, a new ChromeDriver (that
drops support for our Chromium version) can cause random (and unrelated
to the corresponding changes) errors on CI.
This commit pins the version of ChromeDriver and it should now be
manually upgraded to a vrsion that is compatible with th currently used
Chromium version.

PR Close 
2017-12-11 15:53:04 -08:00
Alex Eagle
ef534c0cc1 build: upgrade bazel rules to latest ()
Add enough BUILD files to make it possible to
`bazel build packages/core/test`

Also re-format BUILD.bazel files with Buildifier.
Add a CI lint check that they stay formatted.

PR Close 
2017-12-07 11:27:50 -08:00
Alex Eagle
6790e02a13 ci: upgrade to node 8 and Bazel 0.8 ()
Closes 

PR Close 
2017-12-06 06:58:33 -08:00
Yuan Gao
e7cdb9f660 ci(core): Improve the payload size message ()
PR Close 
2017-12-05 21:46:10 -08:00
George Kalpakas
7e7ff2e0aa ci: fix the payload-size checking scripts ()
The scripts were accidentally broken in . More specifically, when a limit
was exceeded the script would break while trying to log an error message due to
a missing `commit` variable.
This commit fixes it and also does some minor clean-up (improve docs, use more
descriptive variable names, remove dead code, etc).

PR Close 
2017-12-04 14:52:15 -08:00
tinayuangao
ac93f1235e ci: Update 1% payload size test ()
PR Close 
2017-11-21 22:28:28 -06:00
Pete Bacon Darwin
63d26a1777 ci(aio): move e2e tests to optional job () 2017-11-06 09:59:59 -08:00
tinayuangao
f7c9b941cb ci(aio): Add payload size percentage changes check to payload size task () 2017-11-03 15:20:09 -07:00
George Kalpakas
65d57a07e0 build(aio): avoid building before running the local PWA tests
When this command is run on CI, `yarn build` has already been run, so
this was unnecessarily building angular.io again (adding ~4mins to the
`aio` job).
When this command is run locally, it is most often about testing a new
`lighthouse` version/config, so you don't need to build angular.io over
and over (and if necessary, one can always run `yarn build` manually).

Closes 
2017-11-02 16:02:52 -07:00
Tobias Bosch
fc0b1d5b61 fix(compiler): correctly calculate the outDir if it repeats a parts of the rootDir. ()
Fixes 

PR Close 
2017-10-23 18:46:04 -04:00
Tobias Bosch
8d45fefc31 refactor(compiler): remove old ngtools api and add listLazyRoutes to new api ()
Usages of `NgTools_InternalApi_NG_2` from `@angular/compiler-cli` will now
throw an error.

Adds `listLazyRoutes` to `@angular/compiler-cli/ngtools2.ts` for getting
the lazy routes of a `ng.Program`.
PR Close 
2017-10-23 18:46:04 -04:00
George Kalpakas
910735d732 build: fix yarn install command (--freeze-lockfile --> --frozen-lockfile) 2017-10-20 10:14:30 -07:00
Filipe Silva
820bb7bd8c revert: ci: use chrome stable ()
This reverts commit 8bcb268140c1ec64093761de57200501ee65df61.
2017-10-20 09:38:59 -07:00
George Kalpakas
62c7b7842b test(aio): fix testing of NgPackagesInstaller ()
PR Close 
2017-10-13 09:27:51 -07:00
Peter Bacon Darwin
566606ef46 ci: freeze yarn lockfile when installing dependencies ()
PR Close 
2017-10-11 11:52:36 -07:00