-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.travis.yml
49 lines (46 loc) · 1.48 KB
/
.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
language: python
install:
- pip install -e .
- pip install -r requirements.txt
script:
- pytest
jobs:
include:
- python: "3.6"
script: pytest --cov levitate --cov-report term-missing
after_success: bash <(curl -s https://codecov.io/bash)
- python: "3.7"
- python: "3.8"
- stage: deploy
python: "3.6"
install:
- pip install -e .
- pip install -r requirements.txt
- pip install plotly
script:
- mkdir -p build/examples
- python examples/basic_trap.py
- mv basic_trap.html build/examples/basic_trap.html
- python examples/two_fields.py
- mv two_fields.html build/examples/two_fields.html
- python examples/complex_setup.py
- mv complex_setup.html build/examples/complex_setup.html
- python examples/force_diagrams.py
- mv force_diagrams.html build/examples/force_diagrams.html
- sphinx-build -M html docs .
- echo '<html>\n<head>\n<meta http-equiv="refresh" content="0; url=html/index.html" />\n</head>\n<body></body>\n</html>' > index.html
- touch .nojekyll
deploy:
- provider: pages
skip-cleanup: true
keep-history: true
target-branch: gh-pages
github-token: $GITHUB_TOKEN
on:
tags: true
- provider: pypi
user: CarlAndersson
password: $PYPI_PASSWORD
distributions: "sdist bdist_wheel"
on:
tags: true