material-design-lite/.drone.yml

44 lines
1.1 KiB
YAML
Raw Normal View History

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:
depth: 1
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
# build and unit test
2015-11-27 02:53:30 -08:00
- gulp all
- gulp mocha:closure
# 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