Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example of travis YAML file, using Gradle and SASS
sudo: required # need by docker
dist: trusty
group: travis_lts # travis_lts (stable) vs travis_latest (more features-fixes)
language: java
jdk:
- oraclejdk8
services:
- docker
branches:
only:
- master
- dev
cache:
directories:
- '$HOME/.m2/repository'
- '$HOME/.sonar/cache'
- '$HOME/.gradle/caches/'
- '$HOME/.gradle/wrapper/'
addons:
sonarcloud:
organization: "terahorse"
before_install:
- sudo apt update
- sudo apt install npm
- sudo npm config set registry http://registry.npmjs.org/
- sudo npm install -g sass
script:
- ./gradlew sonarqube --parallel --scan
deploy:
provider: script
script:
- ./gradlew runDeploy --scan
on:
branch: master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment