2015-12-10 14:38:19 +03: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 13:53:30 +03:00
|
|
|
clone:
|
2015-06-19 22:19:20 +03:00
|
|
|
depth: 1
|
2015-07-07 00:22:17 +03:00
|
|
|
cache:
|
2015-11-27 13:53:30 +03:00
|
|
|
mount:
|
|
|
|
- node_modules
|
2016-03-07 20:44:59 +03:00
|
|
|
matrix:
|
|
|
|
NODE_VERSION:
|
|
|
|
- 4
|
|
|
|
- 5
|
2015-11-27 13:53:30 +03:00
|
|
|
build:
|
2016-03-07 20:44:59 +03:00
|
|
|
image: crhym3/ci:node$$NODE_VERSION-go15
|
2015-11-27 13:53:30 +03: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:
|
2016-03-07 20:44:59 +03:00
|
|
|
- npm update -qq
|
2015-12-10 01:19:15 +03:00
|
|
|
# build and unit test
|
2015-11-27 13:53:30 +03:00
|
|
|
- gulp all
|
|
|
|
- gulp mocha:closure
|
2015-12-10 01:19:15 +03:00
|
|
|
# additional browser tests
|
2015-11-27 13:53:30 +03:00
|
|
|
# do this after the build and unit tests to fail fast
|
2015-12-14 13:59:10 +03:00
|
|
|
- Xvfb $DISPLAY &
|
2015-11-27 13:53:30 +03: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 14:38:19 +03:00
|
|
|
publish:
|
|
|
|
# see http://addons.drone.io/google_cloud_storage/ for details
|
|
|
|
gcs:
|
|
|
|
when:
|
|
|
|
repo: google/material-design-lite
|
|
|
|
branch: master
|
2016-03-07 20:44:59 +03:00
|
|
|
event: push
|
|
|
|
matrix:
|
|
|
|
NODE_VERSION: 5
|
2015-12-10 14:38:19 +03: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
|