summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2020-10-27 13:21:48 +0100
committerAlexandre Flament <alex@al-f.net>2020-10-28 22:48:16 +0100
commit54afe37e18cdbf4fd858907f0a6e83c6cb1c4157 (patch)
treed3c4b8280060ecbbc8bb72d0865ebde0c7fad021 /.travis.yml
parent10ddd421f22c993a8cd3f4a02798dc3335c59709 (diff)
[mod] .travis.yml: build documentation automatically on the master branch
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index fa59d528d..951f292b2 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -23,6 +23,8 @@ after_success:
stages:
- test
+ - name: documentation
+ if: env(GITHUB_TOKEN) IS present
- name: docker
if: branch = master AND type != pull_request AND env(DOCKER_USERNAME) IS present
@@ -32,6 +34,26 @@ jobs:
- python: "3.6"
- python: "3.7"
- python: "3.8"
+ - stage: documentation
+ python: "3.8"
+ addons: []
+ before_install:
+ - sudo ./utils/searx.sh install buildhost
+ install: true
+ script:
+ - SEARX_DEBUG=1 make travis-gh-pages
+ after_success: true
+ deploy:
+ provider: pages
+ edge: false
+ token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
+ strategy: git
+ skip_cleanup: true
+ keep_history: true
+ local_dir: gh-pages
+ target_branch: gh-pages
+ on:
+ branch: master
- stage: docker
python: "3.8"
git: