sudo: required
language: ruby
rvm: 2.2
node_js: "0.10"

jobs:
  include:
    - stage: "Test"
      before_script:
        - gem install awesome_bot
        - sudo pip install json-spec
      script: 
        - awesome_bot contents.json -w AERecord,theswiftwebdeveloper,bluemix,swiftplayground,awesome-for-swift-cheatsheet
        - json validate --schema-file=.github/schema.json --document-file=contents.json
    - stage: "Before Deploy"
      script:
        - ruby .github/convert.rb
        - node .github/upgradeDb.js
      if: branch = master AND type != pull_request
    - stage: "Deploy"
      script:
        - ./.github/deploy.sh
      if: branch = master AND type != pull_request

sudo: required
language: ruby
rvm: 2.2
node_js: "0.10"

jobs:
  include:
    - stage: "Test"
      before_script:
        - gem install awesome_bot
        - sudo pip install json-spec
      script: 
        - awesome_bot contents.json -w AERecord,theswiftwebdeveloper,bluemix,swiftplayground,awesome-for-swift-cheatsheet
        - json validate --schema-file=.github/schema.json --document-file=contents.json
    - stage: "Deploy"
      script:
        - ruby .github/convert.rb
        - node .github/upgradeDb.js
        - ./.github/deploy.sh
      if: branch = master AND type != pull_request

Make 2 stages instead of 3
Make 2 stages instead of 3