-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
20 lines (20 loc) · 953 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
matrix: #allows to set up tests/deploys in different languages/environments.
include: #includes all stages of build
- stage: deploy # this block builds and deploys the docs, it's in Python.
language: python
install:
- pip install mkdocs==1
- pip install mkdocs-material==3.0.3
script:
- mkdir docs/styles
- mkdir docs/images
- curl https://gist.githubusercontent.com/fernandogelin/08ecff3387dffc374c4abf06a577ab71/raw/29ad95fcc771ce49ff6cecc56346218a0e929df8/dark_mode.css > docs/styles/dark_mode.css
- curl https://gist.githubusercontent.com/fernandogelin/b02ee98f2f35ce4263093f7a1c66582b/raw/20ca5a37eb6defe00d35e50e7e00a784b64309f9/cbc-logo.svg > docs/images/cbc-logo.svg
- mkdocs build --verbose --clean --strict
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: site
on:
branch: master