forked from SmileiPIC/Smilei
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·28 lines (23 loc) · 1011 Bytes
/
.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
language: python
git:
depth: 9999999
install:
- git fetch -t
- pip install Sphinx
script:
- mkdir -p build/html/_downloads
- git rev-parse --short HEAD > scripts/compile_tools/version
- git archive --format tar -o build/html/_downloads/Smilei.tar HEAD
- tar rf build/html/_downloads/Smilei.tar scripts/compile_tools/version
- gzip -f build/html/_downloads/Smilei.tar
- make doc
- touch build/html/.nojekyll
- for v in `git tag | grep '^v[0-9].[0-9].\?[0-9]\?$'`; do echo ${v}; git archive --format tar -o build/html/_downloads/smilei-${v}.tar $v; git show-ref --abbrev -s ${v} > scripts/compile_tools/version; tar rf build/html/_downloads/smilei-${v}.tar scripts/compile_tools/version; gzip -f build/html/_downloads/smilei-${v}.tar; done
deploy:
- provider: pages
skip-cleanup: true
github-token: $GH_TOKEN
keep-history: false
local-dir: build/html
- provider: script
script: curl -X POST "https://registry.hub.docker.com/u/iltommi/docker-smilei/trigger/${DOCKER_HUB_TOKEN}/"