-
Notifications
You must be signed in to change notification settings - Fork 31
/
.travis.yml
executable file
·40 lines (40 loc) · 3.76 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
language: java
jdk:
- oraclejdk8
services:
- postgresql
before_install:
- psql -c "create user flowchat with password 'asdf' superuser" -U postgres
- psql -c 'create database flowchat;' -U postgres
- cd ui;
- |-
echo "export const environment = {production: true,endpoint: 'https://flow-chat.com/',websocket: 'wss://flow-chat.com/threaded_chat'};" > src/environments/environment.prod.ts
- yarn; yarn build;
- cp -R dist/ ../service/src/main/resources
- cd ../service
- echo -e 'jdbc.url=jdbc\:postgresql\://127.0.0.1/flowchat\njdbc.username=flowchat\njdbc.password=asdf\nsorting_created_weight=86400\nsorting_number_of_votes_weight=0.001\nsorting_avg_rank_weight=0.01\nreddit_client_id=\nreddit_client_secret=\nreddit_username=\nreddit_password='>flowchat.properties
addons:
postgresql: '9.3'
apt:
packages:
- sshpass
env:
global:
- secure: kRNtgp2nlEozBOkRa1GaaVaOFwu11lfWIL+LvJKnUhFR9cfHy03W6pfIBYgFrlhU4fkNM0iFtQs1WlvHuBa8DuHYr4xDyLJLDfdDEry+/0yd88UQsIzV2KIwa/aKUR77Ruq0P5d/h2ArB6Oxd21qf39+SN/ZSe0aCxZZvOK68NIDw2fdODhdF/36vxt1N7n7HqSKlpU7cPDhWn6lN0rdrbhuUO6QTVvvYGEjkSJAjRNOBTerKz0ioFzqoYpErSPwufAYEdrPsRJD2iKhlfxIN1SmL5EnY701WlSoMFpEvz7XvSwGwvk9CGlDleV8IZssSsrXVBxsNLQ5GU60SkD4B/QROg3BqeFKTx0JZEYcObiSamHPdogMMsPIeTfyfe9R72Ws5uDEGTh0e0l3GRzebxPfA3mo25bU+MLEC+pHakb5e5Ck7JnEXJD9Ci9e0VG70U6c0E/55YdhPzo6m2GN3cex4+305oPcFB2d+GcywC0bBle4uWVOyKeP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Lb+oxUCzQvbefhIpdr/yTRm8ihhTUDcpBkSd6ztelTR1GBQaLjDLKFqbeLZIItrlsz4sE60gUGMQHDdP7fPuWD4aK95EsdvjoKjLDRzB6E=
file:
- target/flowchat.jar
skip_cleanup: true
on:
repo: dessalines/flowchat
tags: true
before_deploy:
- echo $PWD
after_deploy:
- cd ..
- ./deploy.sh