.travis.yml 1.25 KB
Newer Older
1
# configuration for https://travis-ci.org/bitcoincash-wallet/bitcoincashj
2
sudo: false
3
dist: trusty
4
language: java
5
jdk: oraclejdk8
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
addons:
  postgresql: "9.3"   # min supported version
cache:
  directories:
  - $HOME/.m2

services:
  - mysql

install: true   # disable default because no need to do the mvn install before mvn verify

before_script:
  - psql -c "create user bitcoinj with password 'password';" -U postgres
  - psql -c 'create database bitcoinj_test owner bitcoinj;' -U postgres
  - mysql -e 'CREATE DATABASE bitcoinj_test;'
  - mysql -e "grant all PRIVILEGES on bitcoinj_test.* to 'bitcoinj' identified by 'password';"
  - mysql -e 'SET GLOBAL max_allowed_packet=20971520;'

24
script:
25 26 27 28 29
  - mvn verify -Ptravis -Dmaven.javadoc.skip=true
# to run one specific test - in this case only testFirst100kBlocksWithCustomSchema test in PostgresFullPrunedBlockChainIT class
#  - mvn clean verify -Ptravis -Dmaven.javadoc.skip=true -Dit.test=PostgresFullPrunedBlockChainIT#testFirst100kBlocksWithCustomSchema -Dtest=nothing -DfailIfNoTests=false
# run only mysql integration tests
#  - mvn clean verify -Ptravis -Dmaven.javadoc.skip=true -Dit.test=MySQLFullPrunedBlockChainIT -Dtest=nothing -DfailIfNoTests=false
30

31
after_success:
32
  - cd core
33
  - mvn jacoco:report coveralls:report