2015-12-01 23:42:28 -05:00
|
|
|
language: node_js
|
2020-05-23 08:43:21 -04:00
|
|
|
os: linux
|
2016-12-31 04:48:19 -05:00
|
|
|
# Follow https://github.com/nodejs/LTS to decide when to remove a version
|
2015-12-01 23:42:28 -05:00
|
|
|
node_js:
|
2019-06-05 13:58:22 -04:00
|
|
|
# Stable version is temporarily disabled due to a bug in resemblejs package with
|
|
|
|
# node v12 (https://github.com/orgs/paperjs/teams/contributors/discussions/12).
|
|
|
|
# - stable
|
2020-05-29 12:36:12 -04:00
|
|
|
# - 11
|
2018-10-24 06:31:20 -04:00
|
|
|
- 10
|
2018-09-28 20:15:55 -04:00
|
|
|
- 8
|
2016-01-18 03:58:37 -05:00
|
|
|
env:
|
2020-05-23 08:43:21 -04:00
|
|
|
jobs:
|
2016-02-12 14:09:41 -05:00
|
|
|
- CXX=g++-4.9
|
2016-01-29 20:56:05 -05:00
|
|
|
global:
|
2017-04-20 12:16:21 -04:00
|
|
|
- secure: o1fJ/suqcL0aX6PiOmip602dAM6Q6O5oU/BDhSueUOnYknbzWfWGOdsoMun0UYhvvdcXU4sHGH+wm0VeXa2igaxryx36uMxPsXB3mO4sATo/QlWX/r3wLCg2CViXhykE5l2gP45OHh5DJgKWs51cwGLDZ9y9JHlXSP/xIGBNkMGVC7qvyhTfEb0EVvirn9b7Kt8fmD8KYgNDrsmcR3d42f4jitt4Di9LsRyOG+SCXZfI3u831tHo1sgZuGK2rxx2SdEclIblEUCkFHLp0HPjq1+032Cg5D7HNloSCPfoSwcY+rOWHubNXhmXgZHFeSkaVglkdWlDE3NiyjNlYwc4m9zqfCip8jw/jUeSfFVtruncEumGLLBxE/aMBQjAQLTq24juabm3qZNgrNCFeFo+XNyx2Oz1jllGve6Vuu8Qg0wFqE+qlZKnxNbu5/3IOIawOE1uhaOG8oSuvlpQuNrHFIMEfzh2UKPiUHbElUDyoTzHlrhQr7ZSPWPJax4uIPOTscpK4Yks7FBS4I0Vnuhw41f/bVR0kLE9jNAQoUpp47ma9O2Sw9fhOwEiopVrADzARUiy0eNeLx8F2F73L0wyPBOtEL1cfCr5oY+yZ5ZfDYb/L8/GIlbMnljYxVbXesmwd8RFi8X2HUNnEmusjih9oWazVuZpiFfUO0oeu15JTBg=
|
2016-01-18 03:58:37 -05:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
2016-01-29 20:56:05 -05:00
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
- git-core
|
2016-01-18 03:58:37 -05:00
|
|
|
packages:
|
2016-02-12 14:09:41 -05:00
|
|
|
- g++-4.9
|
2016-01-29 20:56:05 -05:00
|
|
|
- git
|
|
|
|
- libcairo2-dev
|
|
|
|
- libpango1.0-dev
|
|
|
|
- libssl-dev
|
|
|
|
- libjpeg62-dev
|
|
|
|
- libgif-dev
|
|
|
|
cache:
|
|
|
|
directories:
|
2017-04-20 12:16:21 -04:00
|
|
|
- "~/.assets"
|
|
|
|
- "~/.nvm"
|
2016-01-29 20:56:05 -05:00
|
|
|
- node_modules
|
|
|
|
install:
|
|
|
|
- travis/install-assets.sh
|
2016-01-28 11:37:54 -05:00
|
|
|
before_script:
|
2016-01-29 20:56:05 -05:00
|
|
|
- travis/setup-git.sh
|
|
|
|
- npm set progress=false
|
2016-09-20 17:07:38 -04:00
|
|
|
- which gulp || npm install -g gulp-cli
|
2016-01-29 20:56:05 -05:00
|
|
|
- npm install
|
2016-01-18 04:08:53 -05:00
|
|
|
script:
|
2016-01-29 20:56:05 -05:00
|
|
|
- gulp jshint
|
|
|
|
- gulp minify
|
|
|
|
- gulp test
|
2016-07-09 13:48:02 -04:00
|
|
|
- gulp zip
|
2017-04-21 01:16:11 -04:00
|
|
|
- '[ "${TRAVIS_BRANCH}" = "develop" ] && [ "${TRAVIS_NODE_VERSION}" = "stable" ] && travis/deploy-prebuilt.sh || true'
|
2018-10-23 10:17:00 -04:00
|
|
|
before_deploy:
|
|
|
|
- npm --no-git-tag-version version 0.11.$(date +%Y%m%d%H%M%S)
|
|
|
|
- git config --global user.email $(git log --pretty=format:"%ae" -n1)
|
|
|
|
- git config --global user.name $(git log --pretty=format:"%an" -n1)
|
|
|
|
deploy:
|
|
|
|
- provider: npm
|
2020-05-29 12:26:53 -04:00
|
|
|
node_js: 10
|
2018-10-23 10:17:00 -04:00
|
|
|
on:
|
|
|
|
branch: develop
|
|
|
|
skip_cleanup: true
|
|
|
|
email: $NPM_EMAIL
|
|
|
|
api_key: $NPM_TOKEN
|