mirror of
https://github.com/getrebuild/rebuild.git
synced 2024-11-11 01:14:42 +08:00
27 lines
600 B
YAML
27 lines
600 B
YAML
sudo: false
|
|
dist: trusty
|
|
language: java
|
|
jdk:
|
|
- oraclejdk8
|
|
# - oraclejdk9
|
|
# - oraclejdk11
|
|
script: mvn cobertura:cobertura -DskipTests=false
|
|
|
|
services:
|
|
- mysql
|
|
- redis
|
|
|
|
#git:
|
|
# depth: 3
|
|
#branches:
|
|
# only:
|
|
# - master
|
|
|
|
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)
|