-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (34 loc) · 1.12 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
language: node_js
node_js: '6'
branches:
only:
- master
before_install:
- openssl aes-256-cbc -K $encrypted_9626480e6579_key -iv $encrypted_9626480e6579_iv
-in deploy.pem.enc -out .travis/deploy.pem -d
script:
- "./generate"
after_success:
- eval `ssh-agent -s`
- chmod 600 .travis/deploy.pem
- ssh-add .travis/deploy.pem
- git clone git@github.com:dit4c/dit4c.github.io.git build_tmp
- mv build_tmp/.git build/.git && rm -rf build_tmp
- export GIT_AUTHOR_NAME=`git log -1 --format="format:%an"`
- export GIT_AUTHOR_EMAIL=`git log -1 --format="format:%ae"`
- export GIT_COMMIT_BODY=`git log -1 --format="format:%B"`
- cd build
- git config user.name "$GIT_AUTHOR_NAME"
- git config user.email "$GIT_AUTHOR_EMAIL"
- git add -A .
- git commit -m "$GIT_COMMIT_BODY"
- git push origin master
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/014e0757486d0003ff6c
on_success: change
on_failure: always
on_start: false
slack:
secure: eIsop1SKHeYAFFEeAjjdAhSu8JaCJLjTbdczIMOTqVZ7r9AOMWtUVwvQJYTW7gz34VayeKkuod9mXocPmHyZVPzFaYHNr3auApqH6F6OGuaDJtni2Ky2AOWBbmYDvZvzBu2+boQQwZz29/+BKRfdNs6BwyYFQWNfraCunpEhq6w=