2015-12-10 03:38:19 -08:00
|
|
|
# Note: if you modify this file, don't forget to update
|
|
|
|
# checksum in .drone.sec with:
|
|
|
|
# drone secure --repo google/material-design-lite --checksum
|
2015-11-27 02:53:30 -08:00
|
|
|
clone:
|
2015-06-19 12:19:20 -07:00
|
|
|
depth: 1
|
2015-07-06 14:22:17 -07:00
|
|
|
cache:
|
2015-11-27 02:53:30 -08:00
|
|
|
mount:
|
|
|
|
- node_modules
|
|
|
|
build:
|
|
|
|
image: crhym3/ci-image
|
|
|
|
environment:
|
|
|
|
- CHROME=https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
|
|
|
|
- WEBDRIVER=http://chromedriver.storage.googleapis.com/2.16/chromedriver_linux64.zip
|
|
|
|
- DISPLAY=:99
|
|
|
|
commands:
|
|
|
|
- npm install
|
2015-12-09 14:19:15 -08:00
|
|
|
# build and unit test
|
2015-11-27 02:53:30 -08:00
|
|
|
- gulp all
|
|
|
|
- gulp mocha:closure
|
2015-12-09 14:19:15 -08:00
|
|
|
# additional browser tests
|
2015-11-27 02:53:30 -08:00
|
|
|
# do this after the build and unit tests to fail fast
|
2015-12-14 02:59:10 -08:00
|
|
|
- Xvfb $DISPLAY &
|
2015-11-27 02:53:30 -08:00
|
|
|
- curl -sSLo chrome.deb $CHROME && dpkg -i chrome.deb
|
|
|
|
- curl -sSLo driver.zip $WEBDRIVER && unzip -q driver.zip -d /usr/bin
|
|
|
|
- node test/memory/test.js
|
2015-12-10 03:38:19 -08:00
|
|
|
publish:
|
|
|
|
# see http://addons.drone.io/google_cloud_storage/ for details
|
|
|
|
gcs:
|
|
|
|
when:
|
|
|
|
repo: google/material-design-lite
|
|
|
|
branch: master
|
|
|
|
auth_key: >
|
|
|
|
$$SERVICE_ACCOUNT_KEY
|
|
|
|
source: dist
|
|
|
|
target: mdl-staging
|
|
|
|
cache_control: public,max-age=0
|
|
|
|
acl:
|
|
|
|
- allUsers:READER
|
|
|
|
gzip:
|
|
|
|
- html
|
|
|
|
- css
|
|
|
|
- js
|
|
|
|
- svg
|