diff --git a/.travis.yml b/.travis.yml index 3527eee2..0ab1ff7b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,7 +10,7 @@ env: matrix: - CXX=g++-4.9 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: apt: sources: @@ -26,8 +26,8 @@ addons: - libgif-dev cache: directories: - - ~/.assets - - ~/.nvm + - "~/.assets" + - "~/.nvm" - node_modules install: - travis/install-assets.sh @@ -41,5 +41,4 @@ script: - gulp minify - gulp test - gulp zip -after_script: - '[ "${TRAVIS_BRANCH}" = "develop" ] && [ "${TRAVIS_NODE_VERSION}" = "stable" ] && travis/deploy-prebuilt.sh' diff --git a/gulp/tasks/publish.js b/gulp/tasks/publish.js index 8424a50c..1a054c73 100644 --- a/gulp/tasks/publish.js +++ b/gulp/tasks/publish.js @@ -26,6 +26,7 @@ var packages = ['paper-jsdom', 'paper-jsdom-canvas'], sitePath = path.resolve('../paperjs.org'), referencePath = sitePath + '/content/08-Reference', downloadPath = sitePath + '/content/11-Download', + assetPath = sitePath + '/assets/js', releaseMessage = null, jsonOptions = { end_with_newline: true @@ -115,7 +116,7 @@ gulp.task('publish:website', function() { }); 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() { return del([ referencePath + '/*' ], { force: true }); @@ -134,6 +135,12 @@ gulp.task('publish:website:zip', ['publish:version'], function() { .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() { var opts = { cwd: sitePath }; return gulp.src(sitePath) diff --git a/travis/setup-git.sh b/travis/setup-git.sh index 3365f305..fbc225bf 100755 --- a/travis/setup-git.sh +++ b/travis/setup-git.sh @@ -16,7 +16,7 @@ # travis encrypt GH_TOKEN= --add git config user.name "Paper.js Bot" 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 # It took ages to figures this one out: