-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
52 lines (49 loc) · 1.96 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
50
51
52
language: python
dist: focal
python:
- "3.6" # current default Python on Travis CI
- "3.7"
- "3.8"
- "3.9"
# command to install dependencies
install:
- pip install --upgrade setuptools packaging wheel
- pip install -r dev_requirements.txt
# command to run tests
script:
- python3 setup.py sdist bdist_wheel
- pip3 install --upgrade ./dist/*.whl
- pytest --cov=./ --flake8
after_success:
- bash <(curl -s https://codecov.io/bash)
jobs:
include:
- name: "Numpy 1.15/SciPy 1.0"
python: "3.6"
install:
- pip install --upgrade setuptools packaging wheel
- sed -i 's/~=/==/g' requirements.txt
- pip install -r dev_requirements.txt
script:
- pytest --flake8
- python3 setup.py sdist bdist_wheel
- stage: Documenation
python: "3.7"
install:
- pip install -r dev_requirements.txt
- pip install -r docs/requirements.txt
script:
- echo "Building the docs..."
- sphinx-build ./docs/ ./docs/build/
- stage: Deploy
script: echo "Deploying to Pypi..."
deploy:
provider: pypi
username: "__token__"
password:
secure: "izhloGs0eOKXz8SJXW/GKZc3tejzInAIFwsgVjtBjfdbCoK2GjUNSIVpG3BrP69F8mMrxMN2R3xCzlXjB8D4Rh52wi8gjDdAhnJoTuKsYRGizbDUPNHAKPOPSUUFsDoSxzwboiGokPFRzG717jUG2k3LZsCQKj52//o2tGuyh7ikD+eAzUvr2sroBsc6lWTFwQnJ82Aff7hpeyzbLjQg+AxMJ1XIiw+6CaTvAnsxWbUE4+MNGWIqB/pV8eHRCa6bqTUxMQLcUmLm9JbgJ4Xp/VZS+HrPNljw0ru0IxhHaJxoKLIv7h2mbRKULFK7BBv67kHyl5XCgQJpNE27Dv7frrL3NpMVQm8aedkgIDekwH6EF3twVvN6kyr8CLaR27/IfVBnDNxmdVp8EzcNlLZGx93lc84QA8Yenp76sIym9IYbSldNCHd2K4MqAnQOYM+iL5DWsy1nLWN3idkr8n5l6wykA036dMEVRYti8ezaLmp/16OtoO2F+1SEfXGY+aZWfWIZkcEjEb6Qha+vnfsY5hw0BrDTNmFO/kORA4RD4tUMwH9Hb0Lkm4BOHTb9uTt6NaIWXG1SghpuKqDbDMCkI57fm/xT3yeVdRO6neUvaL+mClqxefYDmoixhXZP/PXZHpimUk9dPxfc5fcG4I/0hlMXYxqaOaKBqKpTjfXe91k="
on:
tags: true
branch: release
skip_existing: true
distributions: "sdist bdist_wheel"