forked from martignoni/moodle-tool-guide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (38 loc) · 2.97 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
---
os: linux
dist: bionic
language: node_js
node_js:
- lts/*
install:
- wget "https://github.com/gohugoio/hugo/releases/download/v${HUGO_RELEASE}/hugo_extended_${HUGO_RELEASE}_Linux-64bit.deb"
- sudo dpkg -i hugo*.deb
- npm install
script:
- hugo version
- hugo --minify
before_deploy:
- openssl aes-256-cbc -K $encrypted_db2095f63ba3_key -iv $encrypted_db2095f63ba3_iv -in deploy_rsa.enc -out /tmp/deploy_rsa -d
- eval "$(ssh-agent -s)"
- chmod 600 /tmp/deploy_rsa
- ssh-add /tmp/deploy_rsa
- echo -e "Host ${DEPLOY_HOST}\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
deploy:
provider: script
skip_cleanup: true
script: rsync -r --quiet --delete ${TRAVIS_BUILD_DIR}/public/ ${DEPLOY_USER}@${DEPLOY_HOST}:${DEPLOY_DIRECTORY}
on:
branch: master
env:
global:
- PRODUCTION=true
- HUGO_RELEASE=0.73.0
- secure: "j5trZ3HrIyJDg2W7AR1rchlrTFy2l5ouULswQibGy0b8nRoWJDX8muCMmWhWU8pU7PeDPfGu3nANz1iWb2bqZyH1iKpPNJ2nLnJyuKjF5O6xJGNnS7mRPZI+Z9LwvKElXGXtBJSCEqCc4GT/oKLtXs31UnOiCO0KqFONqLd2/3qNY/m+reH7BA0wlKd16L6rfa9aXy22EhzFDWJ/lTUTQJiAugLzX9wZactO6xHio5lb5Dc/Bax4LtuShIxgjhJvgM4zvDdbN6zgs+kdhMJ3cYKJAn80nJ+rBWY+Y72HNHDQEmuE1Jhy76//hOQ8E/SNHxxVLHH9PwC+t8oOe10Rj6ZXF+WQsLlh5dkxV4J9/DNTGD/Z+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AO93jPxtHkdwHjdP2ZJ+YNNldwCvAZz+haZApu3HWy9EBRl66LQnsghR7vhaSEOgwa613gK680C8jt3826Xc06f4vkZuJ+QPjSmjNrqDCkZKAHnD2lqj9zxu9XmmAnJdZ/14vIt6b3VPxNQP48WRcT6dcet/XhDLf+prkVSrGJJCWWW2M8wO40IEYk3cEwepHQeoGN7lofBIXslxi0Y5R2hi6VDf2pFVy80QzHLUHg4oiY835T79ymJTUGe2RH6s0i6VuQJlwq0TPluxx1F+wOQoAdwvgEZmi4F+qAdB0K+CKfddrFuDrPJsoRSeXSzrJP6XQ1IuU07e7Lx50CsT9CGXVriXwVztuKk2VwTvwWAXOr1OmdHfJBharGAOhw0H2qylSK8O+F5faQY0K9IigtmW9x+IU29wr6HpXL+6KQl46dvU2yITTpKlUv27E4bN2VAuohPxpoZyi7M3tipKRUOXoRM8lMAlPUTZ9uUMNjnywT9V7AeGUVBKC4XnNRSo9/dfKDdvJMX1IaiIy9B5m1JLbuAnzB9m+oKxYvQ57s6sDYPwwFTNobM89+mW2DCOwY7MBCLvjYv6H02PrC7uZQt5L/sdwZPltG/5EcTvOpZoE="
cache:
directories:
- node_modules
notifications:
email:
on_success: never