forked from google/material-design-lite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
50 lines (50 loc) · 1.26 KB
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Note: if you modify this file, don't forget to update
# checksum in .drone.sec with:
# drone secure --repo google/material-design-lite --checksum
clone:
depth: 1
cache:
mount:
- node_modules
matrix:
NODE_VERSION:
- 4
- 5
build:
image: crhym3/ci:node$$NODE_VERSION-go15
environment:
- CHROME=https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- WEBDRIVER=http://chromedriver.storage.googleapis.com/2.21/chromedriver_linux64.zip
- DISPLAY=:99
commands:
- npm update -qq
# build and unit test
- gulp all
- gulp mocha:closure
# additional browser tests
# do this after the build and unit tests to fail fast
- Xvfb $DISPLAY &
- 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
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
auth_key: >
$$SERVICE_ACCOUNT_KEY
source: dist
target: mdl-staging
cache_control: public,max-age=0
acl:
- allUsers:READER
gzip:
- html
- css
- js
- svg