sudo: required
language: java

services:
  - docker

before_install:
  - source /opt/jdk_switcher/jdk_switcher.sh
  - jdk_switcher use oraclejdk8	
  - cd rabix-integration-testing
  - rm -rf common-workflow-language
  - git clone https://github.com/common-workflow-language/common-workflow-language.git
  - cd common-workflow-language
  - git status
  - git fetch
  - git pull
  - git status
  - cd ..
  - cd ..

script:
  - mvn clean install package -P all
  - mvn org.codehaus.mojo:exec-maven-plugin:1.5.0:java -pl rabix-integration-testing -Dexec.mainClass="org.rabix.tests.TestRunner" -e -X

cache:
  directories:
  - $HOME/.m2

notifications:
  email:
    recipients:
      - marko.vukobrat@sbgenomics.com
      - janko.simonovic@sbgenomics.com
      - sinisa.ivkovic@sbgenomics.com
    on_success: always
    on_failure: always 


sudo: required
language: java

os:
  - linux
  - osx 

services:
  - docker

before_install:
  - source /opt/jdk_switcher/jdk_switcher.sh
  - jdk_switcher use oraclejdk8	
  - cd rabix-integration-testing
  - rm -rf common-workflow-language
  - git clone https://github.com/common-workflow-language/common-workflow-language.git
  - cd common-workflow-language
  - git status
  - git fetch
  - git pull
  - git status
  - cd ..
  - cd ..

script:
  - mvn clean install package -P all
  - mvn org.codehaus.mojo:exec-maven-plugin:1.5.0:java -pl rabix-integration-testing -Dexec.mainClass="org.rabix.tests.TestRunner" -e -X

cache:
  directories:
  - $HOME/.m2

notifications:
  email:
    recipients:
      - marko.vukobrat@sbgenomics.com
      - janko.simonovic@sbgenomics.com
      - sinisa.ivkovic@sbgenomics.com
    on_success: always
    on_failure: always 


Build on both linux and osx
Build on both linux and osx
