chore(install): put all install commands into a single script (#1754)

This makes it easier to run manually, e.g., after having reset all
local typings.
This commit is contained in:
Patrice Chalin 2016-06-27 16:55:39 -07:00 committed by Kathy Walrath
parent 3fe0fb077c
commit a7435c3f8c
2 changed files with 10 additions and 5 deletions

View File

@ -18,10 +18,6 @@ before_install:
before_script:
- sh -e /etc/init.d/xvfb start
install:
- npm install --no-optional
- npm install --prefix public/docs/_examples
- npm install --prefix public/docs/_examples/_protractor
- npm run webdriver:update --prefix public/docs/_examples/_protractor
- gulp add-example-boilerplate
- ./script/install.sh
script:
- gulp $SCRIPT

9
script/install.sh Executable file
View File

@ -0,0 +1,9 @@
#!/usr/bin/env bash
set -ex -o pipefail
npm install --no-optional
(cd public/docs/_examples && npm install)
(cd public/docs/_examples/_protractor && npm install)
npm run webdriver:update --prefix public/docs/_examples/_protractor
gulp add-example-boilerplate