2015-01-01 18:57:21 +01:00
|
|
|
language: node_js
|
|
|
|
node_js:
|
2016-04-21 13:50:20 +02:00
|
|
|
- "5.10"
|
2015-01-01 18:57:21 +01:00
|
|
|
|
2015-10-21 02:08:41 +02:00
|
|
|
before_install:
|
2016-04-16 14:24:18 +02:00
|
|
|
- "export CHROME_BIN=/usr/bin/google-chrome"
|
2015-10-21 02:08:41 +02:00
|
|
|
- "export DISPLAY=:99.0"
|
|
|
|
- "sh -e /etc/init.d/xvfb start"
|
|
|
|
|
2015-01-01 18:57:21 +01:00
|
|
|
before_script:
|
|
|
|
- npm install
|
|
|
|
|
|
|
|
script:
|
2016-05-14 20:41:57 +02:00
|
|
|
- gulp build
|
2017-03-25 18:26:45 +01:00
|
|
|
- gulp test --coverage
|
2017-05-19 21:58:34 +02:00
|
|
|
- gulp docs
|
2016-05-15 01:19:57 +02:00
|
|
|
- gulp package
|
2016-08-25 21:13:27 +02:00
|
|
|
- gulp bower
|
2016-02-14 15:38:02 +01:00
|
|
|
- cat ./coverage/lcov.info | ./node_modules/.bin/coveralls
|
2015-01-30 03:43:02 +01:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
slack: chartjs:pcfCZR6ugg5TEcaLtmIfQYuA
|
2015-10-24 09:31:08 +02:00
|
|
|
|
2016-04-02 15:37:20 +02:00
|
|
|
sudo: required
|
2016-04-16 14:28:33 +02:00
|
|
|
dist: trusty
|
2016-04-02 15:37:20 +02:00
|
|
|
|
2016-04-02 15:37:07 +02:00
|
|
|
addons:
|
2016-04-16 14:24:18 +02:00
|
|
|
firefox: latest
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- google-chrome
|
|
|
|
packages:
|
|
|
|
- google-chrome-stable
|
2016-05-14 20:41:57 +02:00
|
|
|
|
2017-05-19 21:58:34 +02:00
|
|
|
|
|
|
|
# IMPORTANT: scripts require GITHUB_AUTH_TOKEN and GITHUB_AUTH_EMAIL environment variables
|
|
|
|
# IMPORTANT: scripts has to be set executables in the Git repository (error 127)
|
2016-08-28 12:18:18 +02:00
|
|
|
# https://github.com/travis-ci/travis-ci/issues/5538#issuecomment-225025939
|
2017-05-19 21:58:34 +02:00
|
|
|
|
|
|
|
deploy:
|
2016-08-28 12:18:18 +02:00
|
|
|
- provider: script
|
|
|
|
script: ./scripts/release.sh
|
|
|
|
skip_cleanup: true
|
|
|
|
on:
|
|
|
|
branch: release
|
2017-05-19 21:58:34 +02:00
|
|
|
- provider: script
|
|
|
|
script: ./scripts/deploy.sh
|
|
|
|
skip_cleanup: true
|
|
|
|
on:
|
|
|
|
all_branches: true
|
2016-05-15 23:32:05 +02:00
|
|
|
- provider: releases
|
2016-08-28 15:53:34 +02:00
|
|
|
api_key: $GITHUB_AUTH_TOKEN
|
2016-05-14 20:41:57 +02:00
|
|
|
file:
|
|
|
|
- "./dist/Chart.bundle.js"
|
|
|
|
- "./dist/Chart.bundle.min.js"
|
|
|
|
- "./dist/Chart.js"
|
|
|
|
- "./dist/Chart.min.js"
|
2016-07-15 10:24:56 +02:00
|
|
|
- "./dist/Chart.js.zip"
|
2016-05-14 20:41:57 +02:00
|
|
|
skip_cleanup: true
|
|
|
|
on:
|
|
|
|
tags: true
|
2016-05-15 23:32:05 +02:00
|
|
|
- provider: npm
|
2016-08-28 15:53:34 +02:00
|
|
|
email: $NPM_AUTH_EMAIL
|
|
|
|
api_key: $NPM_AUTH_TOKEN
|
2016-05-15 23:32:05 +02:00
|
|
|
skip_cleanup: true
|
|
|
|
on:
|
|
|
|
tags: true
|