-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
47 lines (38 loc) · 950 Bytes
/
.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
language: php
php:
- 7.2
addons:
ssh_known_hosts: back1.igotta.beer
notifications:
slack: geekdpt:kvAHyarGjSRHAJXlVNH5SBa4
cache:
directories:
- $HOME/.composer/cache
- web/node_modules
before_install:
- composer self-update
- composer validate --no-check-publish
install:
- export PATH="$HOME/.composer/vendor/bin:$PATH"
- composer install
- cd web/
- npm install
script:
- npm run build
before_deploy:
- cd .. && pwd
- openssl aes-256-cbc -K $encrypted_5b0d89742976_key -iv $encrypted_5b0d89742976_iv -in deploy/deploy.tar.gz.enc -out deploy/deploy.tar.gz -d
- cd deploy && pwd
- tar xvzf deploy.tar.gz
- mv .token $TRAVIS_BUILD_DIR/
- mv deploy_rsa /tmp/
- cd .. && pwd
- eval "$(ssh-agent -s)"
- chmod 600 /tmp/deploy_rsa
- ssh-add /tmp/deploy_rsa
deploy:
provider: script
skip_cleanup: true
script: /bin/bash deploy/travis_deploy.sh $TRAVIS_BUILD_DIR
on:
branch: master