e3b049cefd
* run `docs` via npm * add shebang line to integrity.js, so npm will resolve node binary automatically * remove unnecessary build-jake npm script * add test.js script as replacement of Jakefile.js * remove Jakefile, remove jake from devDependencies * update docs * move scripts to separate directory * change shebang line from nodejs to js * change shebang line from js to node * update docs * use Karma cli instead of custom test script * add pretest and test-nolint scripts, remove lint scripts from travis.ci Run linting scripts in pretest script, this way test script will automatically trigger code linting. Add test-nolint script to have possibility to run tests without triggering pretest script with linting. This is useful when running tests in different browsers and tere's no sense to lint code more than one time * replace shebang lines with node executable in npm scripts * remove note about nodejs symlink in CONTRIBUTING.md
31 lines
901 B
YAML
31 lines
901 B
YAML
sudo: false
|
|
language: node_js
|
|
node_js:
|
|
- node
|
|
addons:
|
|
artifacts:
|
|
paths:
|
|
- dist
|
|
target_paths:
|
|
- content/leaflet/${NAME}
|
|
env:
|
|
global:
|
|
- ARTIFACTS_BUCKET=leafletjs-cdn
|
|
- ARTIFACTS_PERMISSIONS=public-read
|
|
- secure: |-
|
|
JlC1rD7WryxlUbWmD3NWVX9E60XB/+ss7+j0OaY3WqWziGUWDCuoVkOMGXnp
|
|
Ev27O8qhlmRkeyiimUN64UzK0yeZ139DcZMY6r4A5E2kwHYRAO/H/zl5RAGo
|
|
Yd9GUPwZfr3xV8WhH2GFy/L/mRjkGwue2o6ZxdsqBOKfYaF9Ryg=
|
|
- secure: |-
|
|
XW1hzORAtSpTgTKkQwel5gRMDy6SotzeSRsVV2jQCn46VIMx8G/J5nOI+ImL
|
|
yeoH12PhCR0h39dM7mq8TYJo5DHwvbotI5nQhpMruSt8eMFbym8nGiqQh806
|
|
fSJXkxmQ4MAjUdNFDIirBHhdZme8q3PueFzJ+5odFMvPGn/aITQ=
|
|
script:
|
|
- npm test
|
|
after_success:
|
|
- npm run build
|
|
- cd dist && zip -x .DS_Store -r leaflet.zip . && cd ..
|
|
- NAME=$TRAVIS_BRANCH
|
|
- '[[ $TRAVIS_PULL_REQUEST != ''false'' ]] && NAME=$TRAVIS_PULL_REQUEST'
|
|
- '[[ -n $TRAVIS_TAG ]] && NAME=$TRAVIS_TAG'
|