Skip to content

Commit

Permalink
Add deploy to gh-pages for Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
yves-chevallier committed Aug 14, 2019
1 parent 8c988ca commit 05f0daa
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 8 deletions.
21 changes: 18 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
sudo: required
language: python
services: docker
before_install:
- docker build -t local .
- docker build -t local .
script:
- docker run -v "$(pwd)/srv" -w/srv local make
- docker run -v "$(pwd):/srv" -w/srv local make
deploy:
- provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: _build/html
on:
branch: master
- provider: releases
api_key:
secure: wtzjWvYXLNcvTEP07ta8t2CDzmacdWleZtDPL2RJET0+2L55WbDHGT0aH9eNsLMv+Sdlq7EtlGdHhBb9JPGGKUkjFXMldDt8twbvWB6Krt6+NO/w+73lPfuvoupK5n2kAhgObMxmbF9pS5YAIUplZ6rLh6r78juqnFnkHGDFv/dRXKPrEakw34yMRcC66k4Io+wTSS0jFQTKyf7DDkxJFuKDyvjPMunT2PI2PSnJoE5FUKZX8wT7N4j69cCQrz1I4nWEyRniZLGNjTApvnsfAspOxdSR0OtJrH2YB616KFFms7Pphb7pgZ+qFq2dnp6Kfn+1cxNCyJbMuFBFbSdRUGS00IB/YE9FkCjkXY6nkxpXFeQVaqT2YJExG0H9wBU11KXUXn6b33hSMDzDC3WETEOBwWtK4PZg0N7f72CVXHOpV+vz8whYPAV3s78OlLsSLxe2xefhV2zuWCiPlXFAyMhvtQZyQ6H6INJopygWthnzq2/YMFM4MrN9XmmbJWcHwxr1yXBjyG2YcnPIwmtJ1NKbNVqU7JeChJQNCKMOalKgt1i7Ei5FhpOFSvddEgISClMuefbloAiWz6yR3Z2DA6ZPQ2bpbGjlAvggmR/VLokszKB6ulc0/LpASOuv7jcPjz4ZU5oknwSBKfIto/RpFzdSC0RV5a7E0LzhulCWbVU=
skip_cleanup: true
file:
- ./_build/man/info.1
- ./_build/latex/main.pdf
on:
tags: true
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM nowox/latex:1.0

RUN apt-get update
RUN apt-get install -y git
RUN apt-get install -y git wget
RUN apt-get install -y librsvg2-bin
RUN apt-get install -y python3 python3-pip python3-sphinx
RUN rm -rf /var/lib/apt/lists/*
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ artifacts: $(ARTIFACTS_DIR)/heig-vd.pdf
clean:
$(RM) -rf _build _static

.PHONY: all clean artifacts
.PHONY: all clean artifacts dist
11 changes: 8 additions & 3 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
sys.path.append(os.path.abspath("./_ext"))

project = "Le C pour l'ingénieur"
author = 'Pierre Bressy, Didier Mettler, François Birling, Yves Chevallier'
author = 'Prof. Yves Chevallier'
copyright = 'HEIG-VD(c) 2019'

extensions = [
Expand Down Expand Up @@ -45,7 +45,7 @@
]

latex_documents = [
('index', 'main.tex', None , 'Prof. Yves Chevallier' , 'manual')
('index', 'main.tex', None , author, 'manual')
]

latex_engine = 'xelatex'
Expand All @@ -62,4 +62,9 @@
'''
}

latex_logo = '_artifacts/heig-vd.pdf'
latex_logo = '_artifacts/heig-vd.pdf'


man_pages = [
('index', 'info', None, author, 1)
]

0 comments on commit 05f0daa

Please sign in to comment.