run: |
gulp docs
gulp package
- gulp bower
- name: Publish Test Results
run: cat ./coverage/lcov.info | ./node_modules/.bin/coveralls
shell: bash
.project
.settings
.vscode
-bower.json
*.log
*.swp
*.stackdump
- gulp test --coverage
- gulp docs
- gulp package
- - gulp bower
- cat ./coverage/lcov.info | ./node_modules/.bin/coveralls || true
sudo: required
Merging into the `release` branch kicks off the automated release process:
* build of the `dist/*.js` files
-* `bower.json` is generated from `package.json`
-* `dist/*.js` and `bower.json` are added to a detached branch
+* `dist/*.js` is added to a detached branch
* a tag is created from the `package.json` version
* tag (with dist files) is pushed to GitHub
### Further Reading
* [Travis GitHub releases](https://github.com/chartjs/Chart.js/pull/2555)
-* [Bower support and dist/* files](https://github.com/chartjs/Chart.js/issues/3033)
+* [dist/* files](https://github.com/chartjs/Chart.js/issues/3033)
* [cdnjs npm auto update](https://github.com/cdnjs/cdnjs/pull/8401)
/* eslint-disable import/no-nodejs-modules, import/no-commonjs, no-use-before-define */
const gulp = require('gulp');
const eslint = require('gulp-eslint');
-const file = require('gulp-file');
const replace = require('gulp-replace');
const size = require('gulp-size');
const streamify = require('gulp-streamify');
const srcDir = './src/';
const outDir = './dist/';
-gulp.task('bower', bowerTask);
gulp.task('build', buildTask);
gulp.task('package', packageTask);
gulp.task('lint-html', lintHtmlTask);
});
}
-/**
- * Generates the bower.json manifest file which will be pushed along release tags.
- * Specs: https://github.com/bower/spec/blob/master/json.md
- */
-function bowerTask() {
- const json = JSON.stringify({
- name: pkg.name,
- description: pkg.description,
- homepage: pkg.homepage,
- license: pkg.license,
- version: pkg.version,
- main: outDir + 'Chart.js',
- ignore: [
- '.github',
- '.codeclimate.yml',
- '.gitignore',
- '.npmignore',
- '.travis.yml',
- 'scripts'
- ]
- }, null, 2);
-
- return file('bower.json', json, {src: true})
- .pipe(gulp.dest('./'));
-}
-
function buildTask() {
return run('rollup/dist/bin/rollup', ['-c', argv.watch ? '--watch' : '']);
}
"plugin-error": "^1.0.1"
}
},
- "gulp-file": {
- "version": "0.4.0",
- "resolved": "https://registry.npmjs.org/gulp-file/-/gulp-file-0.4.0.tgz",
- "integrity": "sha1-RRNWoqxQicbbkaBEQlKgVDZXAGs=",
- "dev": true,
- "requires": {
- "through2": "^0.4.1",
- "vinyl": "^2.1.0"
- },
- "dependencies": {
- "isarray": {
- "version": "0.0.1",
- "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz",
- "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=",
- "dev": true
- },
- "object-keys": {
- "version": "0.4.0",
- "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-0.4.0.tgz",
- "integrity": "sha1-KKaq50KN0sOpLz2V8hM13SBOAzY=",
- "dev": true
- },
- "readable-stream": {
- "version": "1.0.34",
- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz",
- "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=",
- "dev": true,
- "requires": {
- "core-util-is": "~1.0.0",
- "inherits": "~2.0.1",
- "isarray": "0.0.1",
- "string_decoder": "~0.10.x"
- }
- },
- "string_decoder": {
- "version": "0.10.31",
- "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz",
- "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=",
- "dev": true
- },
- "through2": {
- "version": "0.4.2",
- "resolved": "https://registry.npmjs.org/through2/-/through2-0.4.2.tgz",
- "integrity": "sha1-2/WGYDEVHsg1K7bE22SiKSqEC5s=",
- "dev": true,
- "requires": {
- "readable-stream": "~1.0.17",
- "xtend": "~2.1.1"
- }
- },
- "xtend": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/xtend/-/xtend-2.1.2.tgz",
- "integrity": "sha1-bv7MKk2tjmlixJAbM3znuoe10os=",
- "dev": true,
- "requires": {
- "object-keys": "~0.4.0"
- }
- }
- }
- },
"gulp-htmllint": {
"version": "0.0.16",
"resolved": "https://registry.npmjs.org/gulp-htmllint/-/gulp-htmllint-0.0.16.tgz",
"url": "https://github.com/chartjs/Chart.js/issues"
},
"files": [
- "bower.json",
"composer.json",
"dist/*.css",
"dist/*.js"
"gitbook-cli": "^2.3.2",
"gulp": "^4.0.2",
"gulp-eslint": "^6.0.0",
- "gulp-file": "^0.4.0",
"gulp-htmllint": "^0.0.16",
"gulp-replace": "^1.0.0",
"gulp-size": "^3.0.0",
git config --global user.email "$GITHUB_AUTH_EMAIL"
git config --global user.name "Chart.js"
git checkout --detach --quiet
-git add -f dist/*.js bower.json
+git add -f dist/*.js
git commit -m "Release $VERSION"
git tag -a "v$VERSION" -m "Version $VERSION"
git push -q auth-origin refs/tags/v$VERSION 2>/dev/null