2013-07-10 21:03:35 +08:00
|
|
|
---
|
2014-12-18 03:09:10 +08:00
|
|
|
sudo: false
|
2013-02-01 21:04:33 +08:00
|
|
|
language: node_js
|
|
|
|
node_js:
|
2013-07-12 17:17:21 +08:00
|
|
|
- "0.10"
|
2013-07-10 21:03:35 +08:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- "ARTIFACTS_S3_BUCKET=leaflet-cdn"
|
|
|
|
- secure: |-
|
|
|
|
LnvY/vWpmAIObabLrpu1mWYw1udllVpZJrrhzsn3traL+qU6yaGniQOn6u+l
|
|
|
|
iWSCuu7kXX3xv1GD7Fc6lTfQCg9F9dukWv9zlc4gFciyRpiUBuluuqtdV51A
|
|
|
|
5yqpLkMpX2PMG7vwrOYttVW0uDlUcwGjyHxWZvnBOXCnnHSpnbI=
|
|
|
|
- secure: |-
|
|
|
|
EQ4c2c8VklzFZRxKnizI0/VK0anHhlyc1Rv0vqkMj/YPKxmbWNfOlsOCN2gM
|
|
|
|
p+q8QzCG1Np9D1Kq9K0miYqHgZxgu4D/4Mwy04bh1UfyoUcDfB1tJmEtsKY/
|
|
|
|
8Bl46ZfhxbTG39b6Y315GuU+49QdFMEXhSqx/G7on1xC4aYLXLc=
|
2013-07-12 17:17:21 +08:00
|
|
|
before_script: >
|
|
|
|
test ${TRAVIS_BRANCH} = master ||
|
|
|
|
test ${TRAVIS_BRANCH} = stable &&
|
|
|
|
test ${TRAVIS_PULL_REQUEST} = false &&
|
2014-03-20 08:47:12 +08:00
|
|
|
gem install --no-rdoc --no-ri --version 0.8.9 faraday &&
|
|
|
|
gem install --no-rdoc --no-ri travis-artifacts || true
|
2013-07-12 17:17:21 +08:00
|
|
|
after_success: >
|
|
|
|
test ${TRAVIS_BRANCH} = master ||
|
|
|
|
test ${TRAVIS_BRANCH} = stable &&
|
|
|
|
test ${TRAVIS_PULL_REQUEST} = false &&
|
2013-07-13 03:52:40 +08:00
|
|
|
travis-artifacts upload --path dist --target-path build/${TRAVIS_BRANCH} &&
|
2013-07-12 17:17:21 +08:00
|
|
|
cd dist && zip -x .DS_Store -r leaflet-${TRAVIS_BRANCH}.zip . &&
|
2014-03-20 08:35:39 +08:00
|
|
|
travis-artifacts upload --path leaflet-${TRAVIS_BRANCH}.zip --target-path build ||
|
|
|
|
echo did not upload branch ${TRAVIS_BRANCH}, pr ${TRAVIS_PULL_REQUEST}
|