angular-cn/aio/scripts
Peter Bacon Darwin 10897d6473 ci(aio): compute AIO deployment mode
There are now 3 modes for deployment: next, stable, archive.
We compute which mode (and other deployment properties)
from the `TRAVIS_BRANCH` and the `STABLE_BRANCH`.

If the TRAVIS_BRANCH is master we deploy as "next".
If the `TRAVIS_BRANCH` matches the `STABLE_BRANCH` we deploy as "stable".

Otherwise if the branch has a major version lower than the stable version
and its minor version is highest of similar branches we deploy as "archive".

For "archive" deployments we compute the firebase project and deployment
url based on the major version of the `TRAVIS_BRANCH`.

As well as choosing where to deploy the build, we also use this
to select the environment file for the AIO Angular app.
This will enable the app to change its rendering and behaviour
based on its mode.

See #18287
Closes #18297
2017-08-04 09:14:18 -07:00
..
_payload-limits.sh feat(aio): use new ngo (#17977) 2017-07-07 16:34:47 -07:00
check-environment.js build(aio): do not fail if `check-env` for the main angular project fails 2017-06-16 07:51:18 +01:00
deploy-preview.sh ci(aio): avoid printing too large PWA report (and restore `print-logs.sh`) 2017-07-01 14:40:36 +01:00
deploy-to-firebase.sh ci(aio): compute AIO deployment mode 2017-08-04 09:14:18 -07:00
deploy-to-firebase.test.sh ci(aio): compute AIO deployment mode 2017-08-04 09:14:18 -07:00
payload.sh ci(aio): Add commit message to payload data (#18137) 2017-08-02 15:59:20 -07:00
test-pwa-score.js ci: use chrome stable (#18307) 2017-07-25 11:18:24 -07:00