mirror of
https://github.com/google/material-design-lite.git
synced 2024-09-11 12:25:38 +03:00
35 lines
1.1 KiB
YAML
35 lines
1.1 KiB
YAML
clone:
|
|
depth: 1
|
|
cache:
|
|
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:
|
|
- Xvfb $DISPLAY &
|
|
- npm install
|
|
# ensure the build works
|
|
# this will also run gulp mocha
|
|
- gulp all
|
|
- gulp mocha:closure
|
|
# do this after the build and unit tests to fail fast
|
|
- curl -sSLo chrome.deb $CHROME && dpkg -i chrome.deb
|
|
- curl -sSLo driver.zip $WEBDRIVER && unzip -q driver.zip -d /usr/bin
|
|
# run additional tests
|
|
- node test/memory/test.js
|
|
#deploy:
|
|
# bash:
|
|
# when:
|
|
# owner: google
|
|
# branch: master
|
|
# script:
|
|
# - apt-get install -y python-openssl # gcloud deps for service accounts
|
|
# - openssl aes-256-cbc -d -in .drone.p12.enc -out .drone.p12 -pass env:DRONE_PASS
|
|
# - /gcloud/bin/gcloud components update -q gsutil
|
|
# - /gcloud/bin/gcloud auth activate-service-account $$DRONE_ACCOUNT --key-file .drone.p12
|
|
# - gulp publish:staging
|