language: node_js
sudo: false
node_js:
  - '5.1'
before_script:
  - 'export DISPLAY=:99.0'
  - sh -e /etc/init.d/xvfb start
  - sleep 3
  - npm i -g bower gulp
  - bower i
before_deploy:
  - openssl aes-256-cbc -K $encrypted_7ef9aab2215d_key -iv $encrypted_7ef9aab2215d_iv
    -in service-account.json.enc -out service-account.json -d
  - gulp
  - cp app.yaml dist/app.yaml
  - LAST_TAG=`git describe --abbrev=0`
  - DEPLOY_VERSION=${LAST_TAG//.}
deploy:
  - provider: gae
    skip_cleanup: true
    project: gdg-es
    config: dist/app.yaml
    version: develop
    no_promote: true
    on:
      branch: develop
  - provider: gae
    skip_cleanup: true
    project: gdg-es
    config: dist/app.yaml
    version: $DEPLOY_VERSION
    on:
      branch: master

language: node_js
sudo: false
node_js:
  - '5.1'
before_script:
  - 'export DISPLAY=:99.0'
  - sh -e /etc/init.d/xvfb start
  - sleep 3
  - npm i -g bower gulp
  - bower i
before_deploy:
  - openssl aes-256-cbc -K $encrypted_7ef9aab2215d_key -iv $encrypted_7ef9aab2215d_iv
    -in service-account.json.enc -out service-account.json -d
  - gulp
  - cp app.yaml dist/app.yaml
  - LAST_TAG=`git describe --abbrev=0` || LAST_TAG="develop"; echo $LAST_TAG
  - DEPLOY_VERSION=${LAST_TAG//.}
deploy:
  - provider: gae
    skip_cleanup: true
    project: gdg-es
    config: dist/app.yaml
    version: develop
    no_promote: true
    on:
      branch: develop
  - provider: gae
    skip_cleanup: true
    project: gdg-es
    config: dist/app.yaml
    version: $DEPLOY_VERSION
    on:
      branch: master

Fix Travis error with LAST_TAG
Fix Travis error with LAST_TAG
