language: node_js
sudo: false
cache:
  directories:
  - node_modules
before_install:
- npm config set spin false
- npm install -g npm@^2
install:
- npm install -g bower
- npm install
- bower install
script:
- npm test
after_success:
- openssl aes-256-cbc -K $encrypted_8e8627731b63_key -iv $encrypted_8e8627731b63_iv
  -in travis-env.sh.enc -out travis-env.sh -d
- source ./travis-env.sh;
  if [ "$TRAVIS_PULL_REQUEST" == 'false' ] && [ "$TRAVIS_BRANCH" == 'master' ]; then
    npm install divshot-cli -g &&
    ember build -e staging &&
    divshot push production -c divshot.staging.json -t $DIVSHOT_STAGING_KEY;
  fi
  if [ "$TRAVIS_PULL_REQUEST" == 'false' ] && [ "$TRAVIS_BRANCH" == 'release' ]; then
    npm install divshot-cli -g &&
    ember build -e production &&
    divshot push production -c divshot.production.json -t $DIVSHOT_PRODUCTION_KEY;
  fi

language: node_js
sudo: false
cache:
  directories:
  - node_modules
before_install:
- npm config set spin false
- npm install -g npm@^2
install:
- npm install -g bower
- npm install
- bower install
script:
- npm test
after_success:
- openssl aes-256-cbc -K $encrypted_8e8627731b63_key -iv $encrypted_8e8627731b63_iv
  -in travis-env.sh.enc -out travis-env.sh -d
- source ./travis-env.sh;
  if [ "$TRAVIS_PULL_REQUEST" == 'false' ] && [ "$TRAVIS_BRANCH" == 'master' ]; then
    npm install divshot-cli -g &&
    ember build -e staging &&
    divshot push production -c divshot.staging.json -t $DIVSHOT_STAGING_KEY;
  fi;
  if [ "$TRAVIS_PULL_REQUEST" == 'false' ] && [ "$TRAVIS_BRANCH" == 'release' ]; then
    npm install divshot-cli -g &&
    ember build -e production &&
    divshot push production -c divshot.production.json -t $DIVSHOT_PRODUCTION_KEY;
  fi

Fix a bash syntax error in deploy
Fix a bash syntax error in deploy
