This repository has been archived by the owner on Nov 6, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
58 lines (49 loc) · 3.3 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
53
54
55
56
57
58
language: java
dist: trusty
jdk:
- openjdk11
sudo: false
install: true
notifications:
email: false
branches:
only:
- master
- development
addons:
chrome: stable
sonarcloud:
organization: "tbmelabs-github"
token:
secure: "m6YtJXyy+gZR1HBrK+kMI8yueXztQ3l0A4aaIO3p+VUviVIsPzYVCuTkZvXdOUpI/w54QKI5wuLdCBeHtfcUWCWrAEfT2DNkz68ENZakiS4Mu4LesQe/d2aWKpzIqPkibp68flnccY9whgX/uYayHha93nuN1j9XmjSKRInj+NSZhzVwZb3DNH6eq1YF+Pz0yVQHvOUoE1Dd8KF1kYBPUMzxVQSpOi0CiwLydBNUK3b4QT4wf5wMLYjELU3Ljl8YqbN4sTMCiR4FGstnOS3fmwe1rCjcmqfof6XO5ro2n+1JKQLdHVMbH6aEFnr21nAsebArDeVSDwGTsaSFg8Vt14HeSW8evWpG+XEINQT9wO9klRXe4cIvN4rUNUNeWVA9h+tjzfVwANVu/byW6qejrqKyiP4tHpepD9gsVTAUiAL0QqH+qudxWLzNBz5uDksdMmexhX/usAxeS51kZDC9xIX1XmzhJiQnPW3gdWkw3guBVYUj9Vby5z1Xz80rimUIr+dGuTqa/2cwjjtkZUpuJdpc6OrTmvmMNIVkWNuyjvifSuVZYZcd6DiRj1cwBtBuo1v07rF0rP5s+TduGze8IMMv08fh1qX6n6oTsFyob8HkVC2T0W9bDVUy08dbK0M+VC47le5HQd+CvZTPW4es45uddRa+6NUBRNvze171RP4="
postgresql: "10"
apt:
packages:
- postgresql-10
- postgresql-client-10
deploy:
- provider: script
script: mvn dockerfile:push
on:
branch: development
env:
global:
- secure: "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QPqN1RzLAOdAdMehkea3W4Ntr1AhZGrBKyGnfcDkZk+IbmMGRDCYIMhFR404q1HgzRTQYvXm3d3VRRChirBqzwggi4y6CtQmBdJkguUU302Wu05qoLASAy1E2V/E2ArXIJfvirUT9dm2lK5uk4fdHc71GrNWxjjLAMyAzZRPV0jyUn+amlVsNUQfDR8iAqEPqv7XvQPxZnKAD4X8YhLgsHtX9tjqzbYkl/oIgwFyLj7AqMfQN1EZuvOk3euEaHzyTbi6QFeF2JOzhpWXEqj/kTEI6w9rjMoKl+kj62MptC2IGu8Z2EbRh/jhc="
# ^^ DOCKER_PASSWORD
before_script:
- sudo sed -i 's/port = 5433/port = 5432/' /etc/postgresql/10/main/postgresql.conf
- sudo cp /etc/postgresql/{9.2,10}/main/pg_hba.conf
- sudo service postgresql restart
- psql -c "CREATE DATABASE authorization_server_integration;" -U postgres
- psql -c "CREATE USER authorization_server_integration_user WITH PASSWORD 'authorization_server_integration_user_password';" -U postgres
- psql -c "GRANT ALL PRIVILEGES ON DATABASE authorization_server_integration TO authorization_server_integration_user;" -U postgres
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
script:
- mvn clean install dockerfile:build sonar:sonar -Pprod
cache:
directories:
- "$HOME/.cache"
- '$HOME/.m2/repository'
- '$HOME/.sonar/cache'