-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (42 loc) · 1.44 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
addons:
ssh_known_hosts: hednowley.synology.me:169
services:
- postgresql
- docker
before_deploy:
- openssl aes-256-cbc -K $encrypted_8c047e66c105_key -iv $encrypted_8c047e66c105_iv -in ../deploy_rsa.enc -out /tmp/deploy_rsa -d
- eval "$(ssh-agent -s)"
- chmod 600 /tmp/deploy_rsa
- ssh-add /tmp/deploy_rsa
jobs:
include:
- language: go
go:
- 1.14.x
before_install:
- cd go
- go get github.com/mattn/goveralls
before_script:
- psql -c "CREATE USER sound WITH PASSWORD 'sound';" -U postgres
- psql -c "ALTER USER sound WITH SUPERUSER;" -U postgres
- psql -c "CREATE DATABASE sound_test OWNER sound;" -U postgres
script:
- "$GOPATH/bin/goveralls -service=travis-ci"
deploy:
provider: script
skip_cleanup: true
script: ./linux_dsm_build.sh &&
ssh [email protected] -p 169 "if ( sudo status sound | grep start ); then sudo stop sound; fi" &&
scp -P 169 ./sound [email protected]:/volume1/other/soundDir &&
ssh [email protected] -p 169 "sudo start sound"
- language: node_js
node_js:
- 12
before_install:
- cd elm
script:
- echo "skipping tests"
deploy:
provider: script
skip_cleanup: true
script: yarn run build:prod && scp -P 169 ./dist/* [email protected]:/volume1/other/soundDir/static