dist: trusty
sudo: false

addons:
  chrome: stable

branches:
  except:
  - domui-1.0

jdk:
- oraclejdk8

language: java

install: true
script: mvn -q clean install -Dmaven.test.skip=false -Dmaven.javadoc.skip=true

cache:
  directories:
  - $HOME/.m2

deploy:
  - provider: script
    skip_cleanup: true
    script: scripts/demo-deploy $DEPLOY_KEY
    on:
      branch: master
  - provider: script
    skip_cleanup: true
    script: scripts/demo-deploy $DEPLOY_KEY
    on:
      branch: testing

before_install:
- scripts/beforeInstall

after_script:
  - echo "Creating maven report"
  - mvn site site:deploy -Dmaven.javadoc.skip=true
  - scripts/deploy-test-reports.sh

after_failure:
  - echo $( pwd )


dist: trusty
sudo: false

addons:
  chrome: stable

branches:
  except:
  - domui-1.0

jdk:
- oraclejdk8

language: java

install: true
script: mvn -q clean install -Dmaven.test.skip=false -Dmaven.javadoc.skip=true

cache:
  directories:
  - $HOME/.m2

deploy:
  - provider: script
    skip_cleanup: true
    script: scripts/demo-deploy $DEPLOY_KEY
    on:
      branch: master
  - provider: script
    skip_cleanup: true
    script: scripts/demo-deploy $DEPLOY_KEY
    on:
      branch: testing
  - provider: script
    skip_cleanup: true
    script: scripts/demo-deploy $DEPLOY_KEY
    on:
      branch: demo

before_install:
- scripts/beforeInstall

after_script:
  - echo "Creating maven report"
  - mvn site site:deploy -Dmaven.javadoc.skip=true
  - scripts/deploy-test-reports.sh

after_failure:
  - echo $( pwd )


Add demo as a target for deploy
Add demo as a target for deploy
