diff --git a/.travis.yml b/.travis.yml index 8d0a46659..934534b60 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/src/main/resources/application-test.yaml b/src/main/resources/application-test.yaml index fc273f032..fec768cb9 100755 --- a/src/main/resources/application-test.yaml +++ b/src/main/resources/application-test.yaml @@ -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 diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index d70d8df11..ad9bebce4 100755 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -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