-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (44 loc) · 2.18 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
47
48
49
50
51
52
language: ruby
cache: bundler
rvm:
- 2.3.1
branches:
only:
- source
before_install:
- git clone https://github.com/DecisionsDev/decisionsdev.github.io.git ODMDEV.GITHUB.DIR/
- cd ODMDEV.GITHUB.DIR/
- git config --global user.email "$GITHUB_EMAIL"
- git config --global user.name "$GITHUB_NAME"
- git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
- git fetch --all
- git pull --all
- git checkout -B master
- git merge source # Update master from source
- cp config.json.sample config.json
- sed -ri "s@GITHUB_TOKEN@$GITHUB_TOKEN_ENCODED@" config.json
- sed -ri "s@GITHUB_REPOS_URL@$GITHUB_REPOS_URL@" config.json
- sed -ri "s@GITHUB_ISSUES_URL@$GITHUB_ISSUES_URL@" config.json
- sed -ri "s@GITHUB_TEMPLATE_URL@$GITHUB_TEMPLATE_URL@" config.json
- sed -ri "s@ORG_NAME@$ORG_NAME@" config.json
- sed -ri "s@ORG_URL@$ORG_URL@" config.json
- sed -ri "s@ORG_PREFIX@$ORG_PREFIX@" config.json
- sed -ri "s@REPO_SEPARATOR@-@" config.json
- sed -ri "s@TOPIC_SEPARATOR@-@" config.json
- cp config.json _site/config.json
- git checkout -B source
- git remote rm origin
- git remote add origin https://[email protected]/DecisionsDev/decisionsdev.github.io.git
# we use '@' for sed because '/' are used in var GITHUB_REPOS_URL.
install:
- bundle install
script: bundle exec rake site:deploy --trace
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
on:
branch: master
#env:
# global:
# secure: "j/ZRgjReHAPvclefTfZw8PoXZ8YbZ9ZPhlY9OJfgKDsPi2WLMLaAxKddGB1jTs3IMAIa+zW/cH51+pMzuWp1DaMlKkRXa4VN0Q1ODmHJ+xIDv5MAIa3f/HPVcFr7Z0FgwsqHx8FgbXKEko0BrYpCU45o2ox24gDOo41uc1R5DhVHLLTJ3u0g7/yb3mAeeVx0OfW3BLrNjPFmVy1xlTPTBK3ADHZK4IhGCgDkD4J3kmmPvQ28/nM0QKtcUecixrYN+M5HdGhMyc+1DBqxA4ko7KQwCWrr3p6ntiIZBer3Cb63j0kRuVt37UHKFX5Z1nfRbViN4QxhWhvA8wRb2Hpnpiu0XGeG3Nsn9KuopvRDt9TN9G35UXgWi6YLERZpfr8PRPN2r/d+HHXo8OLUDEI4fn+YzEP5dimDUQh9CQq8nO0f4+ztAGn0qor9xXbvNVnsavgf/Zwa5dSEVTHScGFLxS4E7EgicNQ8jjdw9CEmmjRQDLFWwg5axWZeSbktlZivcK703UhEbBH8v7zhN3vREnv2/cntrJb0JAfSTUf6n1XOJJs5zegWgdaUWpxivoVqLqQssV27eqCQReC5AGIfKXd2QNV1yPgn2E0GCJPC68bFDKQ09hh6BRRv9rdjdlpSGXMevcnz1NTzJ76omvC6yxyGFU035YyaEi2FSMpczw0="