test: test travis ci.

pull/435/head
ruibaby 2019-12-18 19:52:02 +08:00
parent 2b75762b76
commit faa9b2820a
3 changed files with 7 additions and 7 deletions

View File

@ -13,7 +13,7 @@ dist: trusty
jobs:
include:
- stage: test
script: ./gradlew check -Dspring.profiles.active=test
script: ./gradlew check --args="--spring.profiles.active=test"
- stage: build
script: ./gradlew clean build -x test
- stage: Build Docker Image for Release

View File

@ -14,10 +14,10 @@ spring:
type: com.zaxxer.hikari.HikariDataSource
# H2 Database 配置
# driver-class-name: org.h2.Driver
# url: jdbc:h2:file:~/halo-test/db/halo
# username: admin
# password: 123456
driver-class-name: org.h2.Driver
url: jdbc:h2:file:~/halo-test/db/halo
username: admin
password: 123456
# MySQL 配置
# driver-class-name: com.mysql.cj.jdbc.Driver
@ -50,7 +50,7 @@ management:
web:
base-path: /api/admin/actuator
exposure:
include: ['httptrace', 'metrics','env','logfile']
include: ['httptrace', 'metrics','env','logfile','health']
logging:
level:
run.halo.app: DEBUG

View File

@ -51,7 +51,7 @@ management:
web:
base-path: /api/admin/actuator
exposure:
include: ['httptrace', 'metrics','env','logfile']
include: ['httptrace', 'metrics','env','logfile','health']
logging:
level:
run.halo.app: INFO