language: node_js

node_js:
  - "0.10"

before_install:
  - "npm install -g grunt-cli"

before_script:
  - "gem install travis-artifacts"

after_success:
  - "travis-artifacts upload --path build/melonJS-1.1.0.js --target-path artifacts/$TRAVIS_BRANCH/$TRAVIS_JOB_ID"

env:
  global:
  - "ARTIFACTS_S3_BUCKET=melonjs-builds"
  - "ARTIFACTS_AWS_REGION=us-east-1"
  - secure: eIJEcZUfQet6hdDVoYQnoqMMKt9B7EaJtcnVp6GCsvQbDTlLPc1JCSa+iDcicp0podlayEb5Ovd7kcq+LJ7fvQx23UG2XFuVa9KpnYk4tLQ6wev/nYR7738KvECqDBTwyalF9E8uSS8WsGSG+PN2cb2s4IWWe2IQYEfPPjcniUI=
  - secure: grcjulMlTuO7l0HLme6IazVRfq4pzZhjdsfu/5ZoUyTsZZQIUcbxN4uW3PIRwZFU85BC0blJi+un5sT8SyWIzCJNVZeyJp5NyzuH2PlWupiNH4d7Pxs44EjvivXNKfHbFJDogGg9gRM1TgnGDEUGo/HD8ZGDRJc1DAqpcWfBQU0=

language: node_js

node_js:
  - "0.10"

before_install:
  - "npm install -g grunt-cli"

before_script:
  - "gem install travis-artifacts"

after_success:
  - "travis-artifacts upload --path build/melonJS-1.1.0.js --target-path artifacts/$TRAVIS_BRANCH/$TRAVIS_BUILD_ID"

env:
  global:
  - "ARTIFACTS_S3_BUCKET=melonjs-builds"
  - "ARTIFACTS_AWS_REGION=us-east-1"
  - secure: eIJEcZUfQet6hdDVoYQnoqMMKt9B7EaJtcnVp6GCsvQbDTlLPc1JCSa+iDcicp0podlayEb5Ovd7kcq+LJ7fvQx23UG2XFuVa9KpnYk4tLQ6wev/nYR7738KvECqDBTwyalF9E8uSS8WsGSG+PN2cb2s4IWWe2IQYEfPPjcniUI=
  - secure: grcjulMlTuO7l0HLme6IazVRfq4pzZhjdsfu/5ZoUyTsZZQIUcbxN4uW3PIRwZFU85BC0blJi+un5sT8SyWIzCJNVZeyJp5NyzuH2PlWupiNH4d7Pxs44EjvivXNKfHbFJDogGg9gRM1TgnGDEUGo/HD8ZGDRJc1DAqpcWfBQU0=

Use TRAVIS_BUILD_ID instead of TRAVIS_JOB_ID
:construction_worker: Use TRAVIS_BUILD_ID instead of TRAVIS_JOB_ID
