forked from jasync-sql/jasync-sql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (35 loc) · 1.11 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
34
35
36
37
38
39
40
41
dist: trusty
language: java
install: true
sudo: required
services:
- docker
jdk:
- oraclejdk8
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
stages:
- name: build
- name: release
if: branch IN (release) AND type = push
jobs:
include:
- stage: build
script:
# - ./gradlew build -Pnetty_version=4.0.56.Final
# - ./gradlew clean build -x test
# - ./gradlew :mysq-async:test --tests com.github.jasync.sql.db.mysql.QueryTimeoutSpec --info
- ./resources/run-docker-memsql.sh
- ./gradlew clean build
- ./resources/detect-leak.sh mysql-async/target/mysql-async-tests.log
- ./resources/detect-leak.sh postgresql-async/target/postgresql-async-tests.log
- ./gradlew codeCoverageReport
after_success:
- bash <(curl -s https://codecov.io/bash) -t $CODECOV_TOKEN
- stage: release
script: ./gradlew clean build publishToSonatype closeAndReleaseSonatypeStagingRepository -no-daemon --no-parallel -x test