Some tweaks on publishing scripts.

This commit is contained in:
Jürg Lehni 2017-04-20 18:16:21 +02:00
parent 118deea20b
commit 966425d962
3 changed files with 12 additions and 6 deletions

View file

@ -10,7 +10,7 @@ env:
matrix: matrix:
- CXX=g++-4.9 - CXX=g++-4.9
global: global:
- secure: QD8wgggmlF0PPOSdQ84JLO9quLMlTDXu3Cg0+UM9yFSyih2ukL/XGn5wxR3B3XmaHfzRqxtrfhjMX6LT7DKFsriolhNVu0kER4zGyrKWK5irxAy2veosyj8qs/R1pXh9qnItlgXrz0fJwpH9o/08q8X+ZjXb0veZ34EMODLbV5zBJXoaHVC6WN62GzInAEEfdB0AEacb44sDIdK++1ujcTFLGnc+LJw8Ck2C/eOWwRhJyiNUrHHTQV3KaM0YtHz+DCz5InC9vWl+BG656AOU5C6PMTvnZ1M3CGfjmXydZoBbDvCQIcB5ylf17tXGoJKevHnmLWm6U3fPVwUwiPiKvisxyNShZw4BEDS7m1b799GnzGOiYsi37aH3G+iAORg1QVqoCAK/yQ77MkkA6a3tlLVHRaInVA6QlFxlbqc8WNlx+fa8lo4L7Y9KPGfr1Bpix/kHQV5JCzKS16Zc7wblTrOvIR/qb8qPfLoxhXi5fUZ3eRuXgR699X1IHJ1LlhkOoBfSiWl88qba01FBLrYSCPeVGb6/N91OFpIlq6eORnzBbc4mtoJSYttvZ45Hu3M5V0KDrGIHr7kNyPThdKr7PVaMXHLCpNrnmBSaxVCU5uhb8Ae3bnLAq/aBxHWZNA8cQ43/s6rS7QqOVJfquXNFYa6V9/QjbU3sJyqIgRzMkAM= - secure: o1fJ/suqcL0aX6PiOmip602dAM6Q6O5oU/BDhSueUOnYknbzWfWGOdsoMun0UYhvvdcXU4sHGH+wm0VeXa2igaxryx36uMxPsXB3mO4sATo/QlWX/r3wLCg2CViXhykE5l2gP45OHh5DJgKWs51cwGLDZ9y9JHlXSP/xIGBNkMGVC7qvyhTfEb0EVvirn9b7Kt8fmD8KYgNDrsmcR3d42f4jitt4Di9LsRyOG+SCXZfI3u831tHo1sgZuGK2rxx2SdEclIblEUCkFHLp0HPjq1+032Cg5D7HNloSCPfoSwcY+rOWHubNXhmXgZHFeSkaVglkdWlDE3NiyjNlYwc4m9zqfCip8jw/jUeSfFVtruncEumGLLBxE/aMBQjAQLTq24juabm3qZNgrNCFeFo+XNyx2Oz1jllGve6Vuu8Qg0wFqE+qlZKnxNbu5/3IOIawOE1uhaOG8oSuvlpQuNrHFIMEfzh2UKPiUHbElUDyoTzHlrhQr7ZSPWPJax4uIPOTscpK4Yks7FBS4I0Vnuhw41f/bVR0kLE9jNAQoUpp47ma9O2Sw9fhOwEiopVrADzARUiy0eNeLx8F2F73L0wyPBOtEL1cfCr5oY+yZ5ZfDYb/L8/GIlbMnljYxVbXesmwd8RFi8X2HUNnEmusjih9oWazVuZpiFfUO0oeu15JTBg=
addons: addons:
apt: apt:
sources: sources:
@ -26,8 +26,8 @@ addons:
- libgif-dev - libgif-dev
cache: cache:
directories: directories:
- ~/.assets - "~/.assets"
- ~/.nvm - "~/.nvm"
- node_modules - node_modules
install: install:
- travis/install-assets.sh - travis/install-assets.sh
@ -41,5 +41,4 @@ script:
- gulp minify - gulp minify
- gulp test - gulp test
- gulp zip - gulp zip
after_script:
- '[ "${TRAVIS_BRANCH}" = "develop" ] && [ "${TRAVIS_NODE_VERSION}" = "stable" ] && travis/deploy-prebuilt.sh' - '[ "${TRAVIS_BRANCH}" = "develop" ] && [ "${TRAVIS_NODE_VERSION}" = "stable" ] && travis/deploy-prebuilt.sh'

View file

@ -26,6 +26,7 @@ var packages = ['paper-jsdom', 'paper-jsdom-canvas'],
sitePath = path.resolve('../paperjs.org'), sitePath = path.resolve('../paperjs.org'),
referencePath = sitePath + '/content/08-Reference', referencePath = sitePath + '/content/08-Reference',
downloadPath = sitePath + '/content/11-Download', downloadPath = sitePath + '/content/11-Download',
assetPath = sitePath + '/assets/js',
releaseMessage = null, releaseMessage = null,
jsonOptions = { jsonOptions = {
end_with_newline: true end_with_newline: true
@ -115,7 +116,7 @@ gulp.task('publish:website', function() {
}); });
gulp.task('publish:website:build', gulp.task('publish:website:build',
['publish:website:docs', 'publish:website:zip']); ['publish:website:docs', 'publish:website:zip', 'publish:website:lib']);
gulp.task('publish:website:docs:clean', function() { gulp.task('publish:website:docs:clean', function() {
return del([ referencePath + '/*' ], { force: true }); return del([ referencePath + '/*' ], { force: true });
@ -134,6 +135,12 @@ gulp.task('publish:website:zip', ['publish:version'], function() {
.pipe(gulp.dest(downloadPath)); .pipe(gulp.dest(downloadPath));
}); });
gulp.task('publish:website:lib', ['publish:version'], function() {
return gulp.src('dist/paper-full.js')
.pipe(rename({ basename: 'paper' }))
.pipe(gulp.dest(assetPath));
});
gulp.task('publish:website:push', ['publish:version'], function() { gulp.task('publish:website:push', ['publish:version'], function() {
var opts = { cwd: sitePath }; var opts = { cwd: sitePath };
return gulp.src(sitePath) return gulp.src(sitePath)

View file

@ -16,7 +16,7 @@
# travis encrypt GH_TOKEN=<TOKEN> --add # travis encrypt GH_TOKEN=<TOKEN> --add
git config user.name "Paper.js Bot" git config user.name "Paper.js Bot"
git config user.email "bot@paperjs.org" git config user.email "bot@paperjs.org"
git config credential.helper "store --file=.git/credentials" git config credential.helper "store --file .git/credentials"
echo "https://${GH_TOKEN}:@github.com" > .git/credentials echo "https://${GH_TOKEN}:@github.com" > .git/credentials
# It took ages to figures this one out: # It took ages to figures this one out: