rebuild/.travis.yml

28 lines
600 B
YAML
Raw Normal View History

2019-01-06 03:17:00 +08:00
sudo: false
2019-07-19 19:57:42 +08:00
dist: trusty
2019-01-31 17:43:10 +08:00
language: java
jdk:
2019-07-19 20:10:22 +08:00
- oraclejdk8
# - oraclejdk9
# - oraclejdk11
2019-07-17 17:05:44 +08:00
script: mvn cobertura:cobertura -DskipTests=false
2019-01-06 03:17:00 +08:00
2019-01-26 16:05:45 +08:00
services:
- mysql
2019-01-31 17:43:10 +08:00
- redis
2019-01-26 16:05:45 +08:00
2019-07-19 20:06:55 +08:00
#git:
# depth: 3
2019-01-31 17:43:10 +08:00
#branches:
# only:
# - master
before_script:
2019-11-23 16:47:37 +08:00
- mysql -e "CREATE DATABASE rebuild10 COLLATE utf8mb4_general_ci;"
2019-01-30 15:07:35 +08:00
- 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;"
2019-11-09 20:47:32 +08:00
- mysql -D rebuild10 < src/main/resources/scripts/db-init.sql
2019-01-06 03:17:00 +08:00
2019-01-31 17:43:10 +08:00
# codecov
after_success:
- bash <(curl -s https://codecov.io/bash)