forked from hmcts/ccd-data-store-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
28 lines (22 loc) · 874 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
language: java
jdk:
- openjdk8
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
script:
- "./gradlew build --info"
- "./gradlew dependencyCheckAnalyze || echo 'dependencyCheckAnalyze failed'"
- "./gradlew sendCoverageToCodacy || echo sendCoverageToCodacy failed"
env:
global:
- CODACY_PROJECT_TOKEN=24f7bf62b3fa4328aa3b9bf32c07b0d9
before_install:
- curl https://raw.githubusercontent.com/hmcts/reform-api-docs/master/bin/publish-swagger-group-docs.sh > publish-swagger-group-docs.sh
after_success:
- 'bash <(curl -s https://codecov.io/bash) || echo "Codecov failed to upload"'
- '[ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false" ] && sh ./publish-swagger-group-docs.sh v1 v2'