-
Notifications
You must be signed in to change notification settings - Fork 17
/
.travis.yml
52 lines (45 loc) · 1.59 KB
/
.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
dist: focal
arch: amd64
language: groovy
jdk:
- openjdk11
sudo: false
branches:
only:
- master
- develop
- /^feature\/.*$/
- /^hotfix\/.*$/
services:
- docker
- postgresql
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
directories:
- $HOME/.m2
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
before_install:
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/v2.17.3/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- mkdir -p ~/.docker/cli-plugins/
- cp docker-compose ~/.docker/cli-plugins/docker-compose
- sudo cp docker-compose /usr/local/bin
- docker-compose -f elastic.yml up -d
- 'export GRADLE_OPTS="-Dgrails.env=travis"'
install:
- 'travis_wait 30 ./gradlew clean'
- './gradlew assemble'
after_success:
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && GRADLE_OPTS="-Dgrails.env=production" travis_retry ./gradlew publish --stacktrace'
after_script:
- docker-compose -f elastic.yml kill
after_failure:
- cat /home/travis/build/AtlasOfLivingAustralia/image-service/build/test-results/integrationTest/*
env:
global:
- JAVA_TOOL_OPTIONS=-Dhttps.protocols=TLSv1.2
- secure: rWlywM7xq6UpiQJKSmfXM/lEURpBBtczVabWTFsL2APFu/ZkqeN8WTlLvvyupi6B4MXBUCpXkVQyGSdsoxUNrAQ6+HI7vYuCI0C44j+SelkoMgLjxsfWvRmc4FnP924LX3c9KqAjkjuMZ/cfUjomEuWiUiMCvwJO5laCCE9+Do4=
- secure: L2tXyQ3jVEDAOnhTUWJR8mzXXRp9VLAmlybS9gNy9cnsSdegLFZk/P8Og+AjY+X54sHGc7KOipMs5cJmNE9XG5IDCKq0m7LFNog6goI8N4/xi95k6vNXyeoIlcASpCAMW0YqLyZNz+oGbmmdhIwz8xdSZTPnrZWHPyczYkbb++0=