Commit Graph

156 Commits

Author SHA1 Message Date
Paul Gschwendtner 514fa91418 build: publish docs-content based on branch (#10020) 2018-02-21 09:48:53 -08:00
Paul Gschwendtner d84612eac7 build: conditional travis build stages (#9949)
No longer runs the build artifacts, docs-content, dashboard, screenshot deployment tasks on Pull Requests. This means that there aren't any noop jobs running anymore
2018-02-14 10:01:35 -08:00
Paul Gschwendtner ab930cf87b build: publish artifacts based on branch (#9919)
Build artifacts will be published differently for different branches. For example, commits in `master` will be published on the `master` branch on the `*-builds` repository. `5.2.x` commits will be published on the `5.2.x` branch on the `*-builds` repository.

Tags on the build repositories will be explicit to indicate from what branch they come. The version placeholders (in the build output) will be similar as before, and won't contain any information about the branch. e.g. `5.2.x-5.2.1-43s435s` will look bad.
2018-02-13 10:35:40 -08:00
Kristiyan Kostadinov 708b91a7c4 build: don't skip master build when only md files have changed (#9879)
Scopes the logic, that skips the build if only Markdown files, only to PR builds. This avoids issues where we merge in a lot of PRs to master, followed by a docs PR which ends up silencing potential build errors.
2018-02-13 07:52:19 -08:00
Paul Gschwendtner c3d7cd96de build: missing overview files in docs-content (#9100) 2017-12-22 12:04:56 -08:00
Jeremy Elbourn 5f5ff03806 chore: add script to generate presubmit scheduler script (#8581) 2017-12-20 10:33:49 -08:00
Paul Gschwendtner 898cded17a build(artifacts): sed should not update .git/ files (#8938)
* Adds more logging messages to the publish artifacts script (better debugging)
* Updates the `find` command for the version `sed` call to no longer match files inside of the `.git/` directory (might lead to a broken .git/ setup)
2017-12-14 15:31:38 -08:00
Paul Gschwendtner 426f11fb13 chore: better tag check in publish-artifacts script (#8852)
Currently the publish-artifacts script checks for the tag in the local repository copy. Since the builds repository will be cloned with a depth of `1`, the tags aren't being checked properly.

To be more sure about the tag existence, the `git ls-remote` command can be used.
2017-12-06 15:40:56 -08:00
Paul Gschwendtner 826394bba9 build: skip artifact publish if tag already exists (#8720)
* No longer errors the deployment if the artifacts have been published already. (e.g. Job restart)
2017-12-06 12:57:32 -08:00
Austin e055b9f13c docs: convert demos to stackblitz (#8546) 2017-11-21 09:01:05 -08:00
Paul Gschwendtner 86b375d0a8 build: update sauce connect (#8438)
Manually updates SauceConnect to v4.4.10
2017-11-14 11:22:41 -08:00
Kristiyan Kostadinov dfe8091d95 feat: angular 5 support (#6018) 2017-11-01 11:03:57 -07:00
Paul Gschwendtner 34306ad0f9 ci: skip more tasks if only markdown files changed (#8096)
* No longer just skips the unit test and e2e tasks if only markdown files changed. Now everything will be skipped, since there is nothing that tests against the `.md` files.
* Prints messages for the deploy tasks that run inside of Pull Requests but end up in a NOOP.
2017-10-30 14:33:13 -07:00
Kristiyan Kostadinov 0ea43700ef refactor: switch to HttpClient (#6702)
Refactors all of the usages of the deprecated `Http` by replacing them with the `HttpClient`.

BREAKING CHANGE: Material now requires `@angular/common` instead of `@angular/http` and uses `HttpClient` instead of `Http`.
2017-10-24 10:42:35 -07:00
Paul Gschwendtner 94584dbc56 build: deploy dashboard, screenshot-tool in cronjob (#7618)
* No longer deploy the dashboard and screenshot-tool per commit.
2017-10-10 16:38:53 -07:00
Paul Gschwendtner 606178be0a build(): retries for travis deploying (#7146)
* Now re-runs the given deploy mode a second time if failed the first time. This ensure that deployment works fine most of the time and should also avoid conflicts between different Travis CI jobs that are deplyoing at the same time.
2017-09-29 13:23:52 -07:00
Jeremy Elbourn 1cb8907a66 build: create JS bundles for each component (#6998)
Before this change, all of `@angular/material` was bundled into a
single, flat JS file.

After this change, each top-level component (i.e., each directory under
`src/lib`) will be have its own JS file (and d.ts and metadata.json).

The benefit of this change is that current versions of webpack will be
able to do a much better job of only including the code an app is using.

It also allows (but does not require) people to explicitly import from specific components,
e.g.
```
import {MdButtonModule} from '@angular/material/button';
``

For development _within Angular Material itself_ we have to use these
deeper imports because the root `@angular/material` doesn't exist until
we build the relase package.

Additionally, this PR adds a `tsconfig.json` for each dir under `src/`
with the correct path mappings for that directory, so that IDEs will
correctly generate imports.

Closure Compiler CI check is also disabled by this PR; it cannot work
with the new package structure until a release with
https://github.com/google/closure-compiler/pull/2600 is made available.
2017-09-14 15:15:17 -07:00
mmalerba 9545427c73 feat(datepicker): Add Moment.js adapter (#6860)
* create moment adapter

* add Moment to karma.conf.js

* use MAT_DATE_LOCALE

* tests are now running

* add in tests

* WIP: demo

* add synthetic default imports for moment

* add locale switching to demo

* fix moment import issues with tests

* fix aot

* address comments

* fix closure issue

* add additional explanation of rollup issue

* remove moment adapter demo since it is preventing sync into g3 (will add
back as a docs example in future PR).

* fix bad rebase
2017-09-12 13:24:23 -07:00
Paul Gschwendtner a727f970cd build: snapshot builds for moment-adapter (#6823)
* Publishes the artifacts of the material-moment-adapter on a per-commit basis.
2017-09-11 16:27:46 -07:00
Paul Gschwendtner 2ef6382bae build: stop building rxjs for closure compiler test (#6635)
For every Pull Request, a job that runs the Google Closure Compiler against the demo-app will be started. In the past Closure Compiler wasn't able to properly handle CommonJS packages from the node modules.

Now the Google Closure Compiler will be reconfigured to properly handle CommonJS packages (meaning that RxJS no longer needs to be built manually)
2017-08-28 16:28:50 -07:00
Paul Gschwendtner 844a81c248 build: shorter wait delay for tunnels (#6607) 2017-08-23 11:30:49 -07:00
Paul Gschwendtner 4cff5ce892 build: update saucelabs connector (#6609) 2017-08-23 11:08:07 -07:00
Jeremy Elbourn 4d82f833c7 feat(cdk): move overlay into cdk (#6100) 2017-08-11 15:42:36 -07:00
Paul Gschwendtner fc98a1d0cf build: move changelog script to gulp task (#5472)
* Moves the changelog script to a gulp task that includes better instructions and error reporting.
2017-08-08 23:18:38 -07:00
Paul Gschwendtner 333ec80750 build: fix screenshot tool deployment (#6337)
* Currently the screenshot tool application is not built in the deploy script. This causes Firebase to throw an error because the target directory does not exist.
2017-08-08 13:26:33 -07:00
Paul Gschwendtner 0680774fcd ci: shorter wait timeout for saucelabs and browserstack (#6317)
* Changes the wait timeout for Saucelabs and Browserstack from 2 minutes to 1 minute. This is possible now because if the timeout fails we still re-try to create a connection a second time.
2017-08-07 10:24:09 -07:00
Paul Gschwendtner 3944d70435 build: deploy screenshot app for push builds (#6299)
* Currently only the screenshot functions are deployed, but not he screenshot application. With this change the application will be also deployed on Travis Push builds.
2017-08-07 10:20:30 -07:00
Paul Gschwendtner 298bc031da ci: incorrect path to screenshot-test tool (#6275)
The deploy script for the screenshot-test tool right now references a incorrect directory. This means that the screenshot-test tool can't be uploaded for push builds right now.
2017-08-04 14:03:08 -07:00
Paul Gschwendtner ea6e829239 build: retry attemps for tunnel connections (#6246)
On the CI it happens pretty often that the tunnel connection to the different providers like Browserstack or Saucelabs is timing out.

Instead of always restarting manually, the script should automatically retry to run the connection establishing script.
2017-08-04 14:00:47 -07:00
Paul Gschwendtner 19614cda32 build(closure): detect cdk entry points from filesystem (#6144)
* The closure script now detects the CDK entry points from the filesystem. This is important to avoid hard-coding the CDK entry points multiple times in the project.
2017-07-31 11:24:35 -07:00
Paul Gschwendtner 3940fab732 build: use version placeholder in package configs (#6112)
Recently the version placeholders had been replaced with hardcoded versions because it was necessary to be able to release the CDK.

But now the version placeholders are replaced in every file and therefore they can be used instead of the hardcoded values.
2017-07-31 11:22:40 -07:00
Paul Gschwendtner 72106c9801 build: update saucelabs connector (#5980)
* Updates the saucelabs connector to the latest version
2017-07-27 09:50:29 -07:00
Paul Gschwendtner 2e3d616941 chore: consistent script names for travis setup (#5986)
* Updates the outdated README in the `ci/` folder.
* Renames the `env.sh` script to `travis-env.sh` because it only works for Travis and is not a generic script.
2017-07-27 09:50:10 -07:00
Jeremy Elbourn bcae614d79 build: change cdk to use secondary entry-points (#5922)
* build: change cdk to use secondary entry-points

* refactoring for comments

* fix closure and payload size calc
2017-07-25 16:15:24 -07:00
Paul Gschwendtner 1c7754ab76 build: artifact scripts should push empty commits (#5835) 2017-07-18 14:45:17 -07:00
Paul Gschwendtner b018f26e70 build: fix screenshot functions deploying (#5780)
* Fixes the screenshot functions deploying by properly resolving the path to the Firebase CLI binary.
* Also cleans up the script to be aligned with the dashboard deployment script.
* Removes firebase-tools as dependency from the dashboard since it's not used there anymore
2017-07-17 16:23:51 -07:00
Paul Gschwendtner 5357bbcb79 build: dashboard deploy bug in firebase (#5781)
* Workaround for a Firebase bug (https://github.com/firebase/firebase-tools/issues/382) that causes the deployment to not work in Travis CI.
2017-07-17 11:12:31 -07:00
Paul Gschwendtner a1a7dcb463 build: fix deploying of screenshot functions
* Updates the dashboard and screenshot deploy script to exit the process immediately if the Firebase token is not set.
* Fixes that the error message of the dashboard still shows the old name of the token variable
* Renames the screenshot variables to follow the dashboard environment variables
* Explicitly specifies the project that will be uploaded in the screenshot deploy script (same as for dashboard)
2017-07-10 15:45:00 -07:00
Paul Gschwendtner dabcd53bc9 build: separate deploy jobs in deploy build stage (#5621)
Currently every deployment runs in a single Travis job concurrently. This messes up the logs and it's also hard to see what actually runs at all.

The different deployment jobs should run concurrently in the deploy build stage.
2017-07-10 11:38:09 -07:00
Jeremy Elbourn 3181335074 Revert "build: publish build tools on github (#5458)" (#5526)
This reverts commit 0675568d03.
2017-07-05 18:10:22 -07:00
Paul Gschwendtner 0675568d03 build: publish build tools on github (#5458)
* Publishes the material2-build-tools on Github.
2017-07-05 16:29:52 -07:00
Paul Gschwendtner bf2326004a build: use node to resolve build version (#5460)
* instead of using a complex RegExp that will likely break at some point in the future, we are switching to a single-line NodeJS script to resolve the version.
2017-07-05 10:30:34 -07:00
Paul Gschwendtner d859d34739 build: better error reporting of bash scripts (#5397)
Currently whenever something fails in the deploy script it will likely not cause the CI to show the failure. This is because Bash by default doesn't exit the process with the proper error code.
2017-06-29 10:32:00 -07:00
Paul Gschwendtner 84746718fd build: replace cdk version placeholder for build artifacts (#5330)
* Currently the `0.0.0-PLACEHOLDER` is still inside of the `package.json` of the material2-builds. Similar as for every other Angular package the version placeholder should be replaced with the version of the current "build commit".

Closes #5320
2017-06-23 12:40:37 -07:00
Paul Gschwendtner 9acb152bce build: print logs if tunnel times out (#5279)
* The logfile output should be printed if the tunnel connection can't be established. The logging is also useful to see the update message from Saucelabs for example.
2017-06-21 18:17:10 -07:00
Paul Gschwendtner 746495a222 build: update sauce connect version (#5179)
* Updates the version of Sauce Connect to avoid potential flakes within the Saucelabs tunnels
* Fixes the invalid path for the `deploy-dashboard` script that runs in the deploy build stage
2017-06-19 09:30:01 -07:00
Paul Gschwendtner c8e56b535e build: initial dashboard project (#5148) 2017-06-16 10:22:33 -07:00
Paul Gschwendtner f579ea130f build: faster artifacts deploy script (#5149) 2017-06-15 13:31:15 -07:00
Paul Gschwendtner 154f54ec14 build: run chrome headless in travis (#5126) 2017-06-14 14:26:52 -07:00
Paul Gschwendtner 7af93bc5e3 build: switch to new dashboard firebase instance (#4954)
* Switches to a new Firebase instance for the Dashboard.
2017-06-05 11:13:05 -07:00