forked from bevry/staticsitegenerators-list
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (38 loc) · 1.88 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
# August 25, 2015
# https://docpad.org/docs/deploy
# Use the latest travis infrastructure
sudo: false
# We use node
language: ruby
rvm:
- "2.2"
# Custom Notifications
# travis encrypt "$TRAVIS_NOTIFICATION_EMAIL" --add notifications.email.recipients
# travis encrypt "$SLACK_SUBDOMAIN:$SLACK_TRAVIS_TOKEN#updates" --add notifications.slack
notifications:
email:
recipients:
secure: Gdsugs7pHBBb2NFs28030H9y+jlU+CzLfFYcXFZcowQSLzr4aCMD4zWDh8vuVE6gt4ZIFJWQwNzoYASSr0ZB8PkM2SAdnxcEHdIuEmOEalFqgpz92fJbWxFgRR6wf2lcqTpernNsrq9vwKOtEl6CROeDU7nveqazrIRVJ58+dXA=
slack:
secure: KuHE+mNiuWIqVmz+6ywE/0e1UjNrWxhgHHJzdtVi1XONvGpE7z3bS9lo+NUM60z76105rRxykA3aQcU7RI+s37Six3WimZT+CHzRZPOlcC+NShAy9yCrFvLNEdf1MjUxNTVZtIXQcDIlHg/vwBqagj6oHlINMaGXYl/ZmTNWuYc=
# Prepare and run our tests
# Deployment should be easier, but https://github.com/travis-ci/travis.rb/issues/315 is a thing
# Doesn't use --debug on `travis login` as that will output our github token
install: gem install travis curb --no-rdoc --no-ri
script: rake
after_success: >
if [ ! -z $GITHUB_TRAVIS_TOKEN ]; then
echo "Deploying...";
travis login --skip-completion-check --org --github-token "$GITHUB_TRAVIS_TOKEN";
export TRAVIS_ACCESS_TOKEN=`cat ~/.travis/config.yml | grep access_token | sed 's/ *access_token: *//'`;
travis restart --debug --skip-completion-check --org -r "$DEPLOY_REPO_SLUG" -t "$TRAVIS_ACCESS_TOKEN";
echo "Deployed";
else
echo "Skipped deploy";
fi
# Custom deployment
# travis encrypt "GITHUB_TRAVIS_TOKEN=$GITHUB_TRAVIS_TOKEN" --add env.global
env:
global:
- DEPLOY_REPO_SLUG='bevry/staticsitegenerators-website' # this is the repo owner and repo name that you want tested and deployed, set correctly
- secure: WPW25SQXgwoW2nTu492+bIEflMarGnZZ20DuLmiUK8Ebnmh2GzJbz0aclfC38NR8+oJFaXk7HpXBTTdtXWjc8S1tvrm0yQqUahSOT/Hybewm1FqP1wIOYStSnsGfQMODSXOWFMX+fjKlHPe+lV1WeXzGh5tnudTEtNV5kzXXjOo=