-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
31 lines (31 loc) · 978 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
branches:
only:
- master
language: ruby
rvm:
- 1.9.3
notifications:
email: false
before_script:
- git checkout master
- git config --global user.name "xuehung"
- git config --global user.email "[email protected]"
- export REPO_URL="https://[email protected]/$GH_REPO.git"
- bundle exec rake setup_github_pages[$REPO_URL]
# To set the credential
- git config credential.helper "store --file=.git/credentials"
- echo "https://${GH_TOKEN}:@github.com" > .git/credentials
# To reset the 'url' to the custom domain in '_config.yml'
- git checkout -- _config.yml
# To deal with images
- ruby processimg.rb
script:
- set LANG=zh_TW.UTF-8
- set LC_ALL=zh_TW.UTF-8
- bundle exec rake generate
after_script:
- bundle exec rake deploy
env:
global:
- GH_REPO="codefortomorrow/foodopendata"
- secure: SPtYuqVW182Mu6uEGyA3+cui6FHro+VCH6/hJgKCxQna10hpC7182jvGzejgJG3Q4yy/1ZSiHgUCpFDpn13dxY9vfkhUm7UTDKk5qSsYcOyL1d/Eq2MAmeLDQu8faNlaXBzM+hWts27fwYAhEJyRPh+HOQnJdWJaZnh35H2mgnc=