material-design-lite/.drone.yml

50 lines
1.2 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
matrix:
NODE_VERSION:
- 4
- 5
2015-11-27 02:53:30 -08:00
build:
image: crhym3/ci:node$$NODE_VERSION-go15
2015-11-27 02:53:30 -08:00
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 update -qq
# 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
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
event: push
matrix:
NODE_VERSION: 5
2015-12-10 03:38:19 -08:00
auth_key: >
$$SERVICE_ACCOUNT_KEY
source: dist
target: mdl-staging
cache_control: public,max-age=0
acl:
- allUsers:READER
gzip:
- html
- css
- js
- svg