Created
August 28, 2019 20:09
-
-
Save h4t0n/dc730870ce76c9596b26ef7176e1fc41 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# file name must be .travis.yml | |
language: java | |
jdk: openjdk10 | |
before_install: | |
- wget http://services.gradle.org/distributions/gradle-5.4.1-bin.zip | |
- unzip -qq gradle-5.4.1-bin.zip | |
- export GRADLE_HOME=$PWD/gradle-5.4.1 | |
- export PATH=$GRADLE_HOME/bin:$PATH | |
- gradle -v | |
- sudo apt-get update | |
- sudo apt-get --yes remove postgresql\* | |
- sudo apt-get install -y postgresql-11 postgresql-client-11 | |
- sudo cp /etc/postgresql/{9.6,11}/main/pg_hba.conf | |
- sudo service postgresql restart 11 | |
before_script: | |
- psql --version | |
- psql -c 'CREATE DATABASE "test-gem";' -U postgres | |
- psql -c "CREATE ROLE gem SUPERUSER LOGIN CREATEDB PASSWORD 'gem';" -U postgres | |
services: | |
- postgresql | |
addons: | |
postgresql: "11.2" | |
script: | |
- gradle clean | |
- gradle jacocoRootReport --stacktrace | |
after_success: | |
- bash <(curl -s https://codecov.io/bash) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment