-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
49 lines (49 loc) · 1.88 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
sudo: false
dist: focal
language: groovy
jdk:
- openjdk11
branches:
only:
- master
- develop
- /^integration\/.*$/
- /^feature\/.*$/
- /^hotfix\/.*$/
services:
- postgresql
addons:
postgresql: "15"
apt:
packages:
- postgresql-15
- postgresql-client-15
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.m2
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
before_install:
- sudo apt-get update
- sudo cp travis/pg_hba.conf /etc/postgresql/15/main/pg_hba.conf
- sudo -u postgres sed -i -e 's/^port.*/port = 5432/' /etc/postgresql/15/main/postgresql.conf
- sudo service postgresql@15-main restart
- psql -c 'create database volunteerstest;' -U postgres
- cp travis/travis.properties local.properties
- echo "org.gradle.jvmargs=-Xmx3072m" >> ~/.gradle/gradle.properties
- export GRAILS_ENV=test
install:
- travis_wait 30 ./gradlew assemble
after_success:
# - '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && travis_retry ./gradlew publish'
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && GRAILS_ENV=production travis_retry ./gradlew publish'
#- '[ "${TRAVIS_BRANCH}" = "develop" ] && travis_retry curl -X POST --header "X-DEPLOY-KEY:
# ${DEPLOY_KEY}" https://volunteer-dev.ala.org.au/deploy/${APP_VERSION}'
env:
global:
- secure: 2MEDHHQ3nxNwf+YGgtC/GXx6kb0y4ixYA7Ia50pZHaN8xMHYdQ8EymKZJ8F9SXw0Feg9FsDc5I90lBJB8URYZZ4hPZN9+uj9crOvnOFMByvJpPikrQ6Yw8IdUjmYxHO/zv+kmOkqVnu6zCtS42olSM7ljeZs0PzW484Ci9w5eM4=
- secure: iR4/BuaBNTKIGQENUdQQjzqhUgefvJnfyC0aK0j9NNLVwcH6lE//TAqz22n7TuzTDPq7My+0clua8DEbJt2k7/kMrbrAohCEXtWvI2pBa43GmB+D5/qOW0+MZk46QJ0pR+hmjHZ3U9DjhuNuF3w7zlNsUnItk70FlzV+sRrYgwg=
- secure: pOWY7dwZRDcgsrYcwscdXHNPfhsPOSGhKNrG0G7AA4mhxaRKd9+1D31i5lhiA9qvbA0/lqD7A8Fnzvsf99MkUC6CSCQOh5n104UalYyiRQ/vhwfc0l9HdlCH86hShYq4PKvXA0hK5iCcIdltzn8pSnM4uHQiVKlbEJiX/qYNx7E=