mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 04:09:08 +02:00
c6bda02468
The original implementation tries to intercept events from the chart internal iframe, which ones failing on Chrome 60. Checking internals doesn't seem the best approach, instead we could consider that a chart has been resized after the resize method has been called and processed. So let's hook `Chart.resize` and callback once it's done.
60 lines
1.2 KiB
YAML
60 lines
1.2 KiB
YAML
language: node_js
|
|
node_js:
|
|
- "6"
|
|
|
|
before_install:
|
|
- "export CHROME_BIN=/usr/bin/google-chrome"
|
|
- "export DISPLAY=:99.0"
|
|
- "sh -e /etc/init.d/xvfb start"
|
|
|
|
script:
|
|
- gulp build
|
|
- gulp test --coverage
|
|
- gulp docs
|
|
- gulp package
|
|
- gulp bower
|
|
- cat ./coverage/lcov.info | ./node_modules/.bin/coveralls
|
|
|
|
notifications:
|
|
slack: chartjs:pcfCZR6ugg5TEcaLtmIfQYuA
|
|
|
|
sudo: required
|
|
dist: trusty
|
|
|
|
addons:
|
|
chrome: stable
|
|
firefox: latest
|
|
|
|
# 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)
|
|
# https://github.com/travis-ci/travis-ci/issues/5538#issuecomment-225025939
|
|
|
|
deploy:
|
|
- provider: script
|
|
script: ./scripts/deploy.sh
|
|
skip_cleanup: true
|
|
on:
|
|
all_branches: true
|
|
- 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
|