sudo: required
language: java
jdk:
 - oraclejdk8
services:
  - docker
cache:
  yarn: true
before_install:
  - nvm install 7.8.0 > /dev/null
  - sudo apt-key adv --fetch-keys http://dl.yarnpkg.com/debian/pubkey.gpg
  - echo "deb http://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
  - sudo apt-get update -qq
  - sudo apt-get install -y -qq yarn
script:
  - mvn -q cobertura:cobertura
  - yarn install > /dev/null
  - NODE_ENV=production ./node_modules/.bin/gulp test
  - NODE_ENV=production ./node_modules/.bin/gulp build
after_success:
 - bash <(curl -s https://codecov.io/bash)
 - if [ "$TRAVIS_BRANCH" == "master" ]; then
    mvn -q docker:build;
    docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD";
    docker tag ominidi/ominidi-web ominidi/ominidi-web:latest;
    docker push ominidi/ominidi-web:latest;
   fi
notifications:
 irc: "chat.freenode.net#ominidi.org"
sudo: required
language: java
jdk:
 - oraclejdk8
services:
  - docker
cache:
  yarn: true
before_install:
  - nvm install 7.8.0 > /dev/null
  - sudo apt-key adv --fetch-keys http://dl.yarnpkg.com/debian/pubkey.gpg
  - echo "deb http://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
  - sudo apt-get update -qq
  - sudo apt-get install -y -qq yarn
before_script:
  - yarn install > /dev/null
  - NODE_ENV=production ./node_modules/.bin/gulp test
  - NODE_ENV=production ./node_modules/.bin/gulp build
script:
  - mvn -q cobertura:cobertura
after_success:
 - bash <(curl -s https://codecov.io/bash)
 - if [ "$TRAVIS_BRANCH" == "master" ]; then
    mvn -q docker:build;
    docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD";
    docker tag ominidi/ominidi-web ominidi/ominidi-web:latest;
    docker push ominidi/ominidi-web:latest;
   fi
notifications:
 irc: "chat.freenode.net#ominidi.org"
Move assets compiling on before_script hook
Move assets compiling on before_script hook
