Merge pull request #99 from singingwolfboy/doc-travis-deploy

Update docs for Travis CI deploy
This commit is contained in:
David Baumgold 2016-06-02 21:36:39 -07:00
commit a3e2125925
2 changed files with 16 additions and 7 deletions

View File

@ -15,4 +15,4 @@ lektor-disqus-comments = 0.1
lektor-markdown-header-anchors = 0.1
lektor-markdown-highlighter = 0.1
lektor-markdown-admonition = 0.1
lektor-atom = 0.1
lektor-atom = 0.2

View File

@ -30,12 +30,15 @@ file into your repository. You can copy paste this over:
language: python
python: 2.7
install: "pip install Lektor"
script: "lektor build && lektor deploy ghpages"
script: "lektor build"
deploy:
provider: script
script: "lektor deploy ghpages"
```
Because Travis already comes with all dependencies we need other than
Lektor itself we just need to pip install Lektor and we're ready to go. For
the build step we just invoke `lektor build` and on success we invoke
the build step we invoke `lektor build`, and for the deploy step we invoke
`lektor deploy ghpages` to ship it to the ghpages server. We still need
to configure that.
@ -122,7 +125,10 @@ cache:
- $HOME/.cache/pip
- $HOME/.cache/lektor/builds
install: "pip install Lektor"
script: "lektor build && lektor deploy ghpages"
script: "lektor build"
deploy:
provider: script
script: "lektor deploy ghpages"
```
## Restricting Branches
@ -139,7 +145,10 @@ cache:
- $HOME/.cache/pip
- $HOME/.cache/lektor/builds
install: "pip install Lektor"
script:
- "lektor build"
- 'test "$TRAVIS_PULL_REQUEST" == false && test "$TRAVIS_BRANCH" == master && lektor deploy ghpages'
script: "lektor build"
deploy:
provider: script
script: "lektor deploy ghpages"
on:
branch: master
```