diff --git a/.travis.settings.xml b/.travis.settings.xml new file mode 100644 index 000000000..2aa0aa65c --- /dev/null +++ b/.travis.settings.xml @@ -0,0 +1,29 @@ + + + + + artifactory + + true + + + + + release-repo + libs-release + http://artifactory-sdc.onsdigital.uk/artifactory/libs-release-local + + + snapshot-repo + http://artifactory-sdc.onsdigital.uk/artifactory/libs-snapshot-local/ + + + + + + + artifactory + + diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..b8043abb2 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,30 @@ +sudo: required + +services: + - docker + +language: java +jdk: openjdk8 + +before_install: "cp .travis.settings.xml $HOME/.m2/settings.xml" + +after_success: + - if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then + docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"; + docker push sdcplatform/collectionexercisesvc; + fi + +notifications: + slack: + on_failure: always + on_success: never + rooms: + secure: xHvqsIklJ+gX67JbpTdi0TMHxMKV9llXH6htk8qIe/sRweq/8tgcTFhSnp6Zlw42cFH6jeweme8xXH6xS3Cft6gLj8nHwAzpkU6cgDndUDPiN1pgCZOBHmIccFcWrl81REfJVgyOVicyKgVthdV1VLCDUkj9Cq+67LKq+EUi9EUw5/1ZzAkPDmuhzinelZ50lu27jyWcPQkKjN4XnpLYB2ybyqqBAJkKaxwooxCZifq1Ghub7a/EH7wiCZgc0zyJfg6EvY4MkJgbfj6b449PRTYaqNxj8Cpy0hO7EsALSednjbjoJtH3+axAFoHdVvskj0QAc3Q9pZfddXWajK4uvWOxf8EifvbhOX+yMJDy7olfuDfVD+BuCSwUXKycbJNA5C4A9fSvj/aoHI/kxxm+/ydToSaZVxLmIa5WR8EU215AAzP3RnOfYDcpPAbYLtq+TdqMuxmns+4mNjOflu4EaRexlNgWbnEwRDvuvgoS/ALEFr2fHrC/LSoMDdgb0pxDE7ddFmAsutWT8zbhGjrNF3mXlfJWEu4xky3rmUsc3GiB5xebPnPaagrVciwHkyJenn8zywBn+zk3u/VfQuHTN9u04dwf38FNC/QZBNj9AFy9wyn9YxWVvsS7euEkpbMLorz1fcIQL+H1sP8C3tZqOleurY+0mkJRHMsiGSjwwx4= + +cache: + directories: + - $HOME/.m2 + +branches: + only: + - master \ No newline at end of file diff --git a/README.md b/README.md index aa19fd9ab..4316b9e16 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ [![Codacy Badge](https://api.codacy.com/project/badge/Grade/68211df3f35e44fbb3fe01da5151a8b9)](https://www.codacy.com/app/sdcplatform/rm-collection-exercise-service?utm_source=github.com&utm_medium=referral&utm_content=ONSdigital/rm-collection-exercise-service&utm_campaign=Badge_Grade) [![Docker Pulls](https://img.shields.io/docker/pulls/sdcplatform/collectionexercisesvc.svg)]() +[![Build Status](https://travis-ci.org/ONSdigital/rm-collection-exercise-service.svg?branch=master)](https://travis-ci.org/ONSdigital/rm-collection-exercise-service) # Collection Exercise Service The Collection Exercise service will be responsible for the orchestration of the processes necessary to begin the data collection for a particular field period for a particular survey.