forked from bitcoinj-cash/bitcoinj
-
Notifications
You must be signed in to change notification settings - Fork 12
/
.travis.yml
33 lines (28 loc) · 1.25 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# configuration for https://travis-ci.org/bitcoincash-wallet/bitcoincashj
sudo: false
dist: trusty
language: java
jdk: oraclejdk8
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;'
script:
- 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
after_success:
- cd core
- mvn jacoco:report coveralls:report