rebuild/.travis.yml
2020-07-28 17:50:25 +08:00

27 lines
607 B
YAML

sudo: false
dist: trusty
language: java
jdk:
- oraclejdk8
# - oraclejdk9
# - oraclejdk11
script: mvn cobertura:cobertura -DskipTests=false
services:
- mysql
- redis
#branches:
# only:
# - master
git:
submodules: false
before_script:
- mysql -e "CREATE DATABASE rebuild10 COLLATE utf8mb4_general_ci;"
- mysql -e "CREATE USER 'rebuild'@'127.0.0.1' IDENTIFIED BY 'rebuild'; GRANT ALL PRIVILEGES ON rebuild10.* TO 'rebuild'@'127.0.0.1'; FLUSH PRIVILEGES;"
- mysql -D rebuild10 < src/main/resources/scripts/db-init.sql
# codecov
after_success:
- bash <(curl -s https://codecov.io/bash)