Debian Codegraph @

.travis.yml

raw symbols SCIP
1 dist: xenial
2 language: python
3 python: 3.6
4 branches:
5 except:
6 - master
7 - dev
8
9 install:
10 # Install other pip dependencies
11 - pip install nbconvert requests jinja2 mkdocs mkdocs-material pygments pymdown-extensions mkdocs-exclude
12 # Install this one after or it raises an error
13 - pip install mknotebooks
14 # Fix temp issue with pypi deployment
15 - pip install keyring==21.4.0
16
17 script: true
18
19 before_deploy:
20 # Prebuild mkdocs site documentation
21 - mkdocs build --verbose --clean
22
23 deploy:
24
25 # Development / test deployment
26 - provider: pages
27 skip_cleanup: true
28 target_branch: gh-pages-test
29 github_token: "$GH_TOKEN"
30 local_dir: site
31 on:
32 all_branches: true
33 tags: true
34 condition: $TRAVIS_TAG == *.dev*
35
36 - provider: pypi
37 skip_cleanup: true
38 user: aleg
39 password: "$PYPI_PW"
40 server: https://test.pypi.org/legacy/
41 on:
42 all_branches: true
43 tags: true
44 condition: $TRAVIS_TAG == *.dev*
45
46 - provider: script
47 skip_cleanup: true
48 script: bash ./deploy_anaconda.sh $ANACONDA_DEV_TOKEN
49 on:
50 all_branches: true
51 tags: true
52 condition: $TRAVIS_TAG == *.dev*
53
54 # Production version deployment
55 - provider: pages
56 skip_cleanup: true
57 target_branch: gh-pages-test
58 github_token: "$GH_TOKEN"
59 local_dir: site
60 on:
61 tags: true
62 all_branches: true
63 condition: $TRAVIS_TAG != *.dev*
64
65 - provider: pypi
66 skip_cleanup: true
67 user: aleg
68 password: "$PYPI_PW"
69 on:
70 tags: true
71 all_branches: true
72 condition: $TRAVIS_TAG != *.dev*
73
74 - provider: script
75 skip_cleanup: true
76 script: bash ./deploy_anaconda.sh $ANACONDA_TOKEN
77 on:
78 tags: true
79 all_branches: true
80 condition: $TRAVIS_TAG != *.dev*
81
82 - provider: releases
83 api_key: $GH_TOKEN
84 skip_cleanup: true
85 on:
86 tags: true
87 all_branches: true
88 condition: $TRAVIS_TAG != *.dev*