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: jobs:
include: include:
- stage: test - stage: test
script: ./gradlew check -Dspring.profiles.active=test script: ./gradlew check --args="--spring.profiles.active=test"
- stage: build - stage: build
script: ./gradlew clean build -x test script: ./gradlew clean build -x test
- stage: Build Docker Image for Release - stage: Build Docker Image for Release

View File

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

View File

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