Chart.js/.travis.yml

62 lines
1.3 KiB
YAML
Raw Normal View History

2015-01-01 18:57:21 +01:00
language: node_js
node_js:
- "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:
- gulp build
2015-01-03 18:19:28 +01:00
- gulp test
2016-02-14 15:38:02 +01:00
- gulp coverage
- gulp package
- 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
sudo: required
2016-04-16 14:28:33 +02:00
dist: trusty
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
deploy:
# Creates a tag containing dist files and bower.json
# Requires GITHUB_AUTH_TOKEN and GITHUB_AUTH_EMAIL environment variables
# IMPORTANT: the script has to be set executable in the Git repository (error 127)
# https://github.com/travis-ci/travis-ci/issues/5538#issuecomment-225025939
- provider: script
script: ./scripts/release.sh
skip_cleanup: true
on:
branch: release
- provider: releases
api_key: $GITHUB_AUTH_TOKEN
file:
- "./dist/Chart.bundle.js"
- "./dist/Chart.bundle.min.js"
- "./dist/Chart.js"
- "./dist/Chart.min.js"
- "./dist/Chart.js.zip"
skip_cleanup: true
on:
tags: true
- provider: npm
email: $NPM_AUTH_EMAIL
api_key: $NPM_AUTH_TOKEN
skip_cleanup: true
on:
tags: true