sudo: required
services:
  - docker
language: groovy
before_install:
  - docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
script:
  - docker build -t sdkman/sdkman-broadcast:2.0.0-SNAPSHOT .
  - docker run -d -p 9001:9001 --net=host sdkman/sdkman-broadcast:2.0.0-SNAPSHOT
  - "./gradlew check"
after_success:
  - docker push sdkman/sdkman-broadcast:2.0.0-SNAPSHOT
cache:
  directories:
  - "$HOME/.gradle"
# blacklist
branches:
  except:
    - RELEASE


sudo: required
services:
  - docker
language: groovy
before_install:
  - docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
  - docker run -d -p 27017:27017 mongo:latest
script:
  - docker build -t sdkman/sdkman-broadcast:2.0.0-SNAPSHOT .
  - docker run -d -p 9001:9001 --net=host sdkman/sdkman-broadcast:2.0.0-SNAPSHOT
  - "./gradlew check"
after_success:
  - docker push sdkman/sdkman-broadcast:2.0.0-SNAPSHOT
cache:
  directories:
  - "$HOME/.gradle"
# blacklist
branches:
  except:
    - RELEASE


Revert "Remove manual start of docker on CI."
Revert "Remove manual start of docker on CI."

This reverts commit 15d3933ab540c171d75be8af448befbbdc62c0cf.
