language: clojure
lein: 2.8.0
cache:
  directories:
    - $HOME/.m2
jdk:
  - oraclejdk9
  - oraclejdk8
  - openjdk8
  - openjdk7
env:
  matrix:
    - VERSION='1.7'
    - VERSION='1.8'
    - VERSION='1.9'
script: lein with-profile dev,$VERSION test
after_success:
  - CLOVERAGE_VERSION=1.0.9 lein cloverage -e '^cljam.main' --codecov
  - bash <(curl -s https://codecov.io/bash) -f target/coverage/codecov.json
jobs:
  include:
    - stage: deploy
      jdk: oraclejdk8
      script: skip
      after_success: echo skip
      deploy:
        provider: script
        script: ./deploy-snapshot.sh
        on:
          branch: master

language: clojure
lein: 2.8.0
cache:
  directories:
    - $HOME/.m2
jdk:
  - oraclejdk9
  - oraclejdk8
  - openjdk8
  - openjdk7
env:
  matrix:
    - VERSION='1.7'
    - VERSION='1.8'
    - VERSION='1.9'
script: lein with-profile dev,$VERSION test
jobs:
  include:
    - stage: coverage
      jdk: oraclejdk8
      script:
        - CLOVERAGE_VERSION=1.0.9 lein cloverage -e '^cljam.main' --codecov
        - bash <(curl -s https://codecov.io/bash) -f target/coverage/codecov.json
    - stage: deploy
      jdk: oraclejdk8
      script: skip
      deploy:
        provider: script
        script: ./deploy-snapshot.sh
        on:
          branch: master

Move coverage phase to build stages
Move coverage phase to build stages
