-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
64 lines (57 loc) · 2.79 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
53
54
55
56
57
58
59
60
61
62
63
64
# Config file for automatic testing at travis-ci.org
sudo: false
language: python
matrix:
include:
- name: "Python 3.6.3 on Xenial Linux"
python: 3.6 # this works for Linux but is ignored on macOS or Windows
env: TEST=tox
- name: "Python 3.5.6 on Xenial Linux"
python: 3.5
env: TEST=tox
- name: "Python 3.6.8 on Windows"
os: windows # Windows 10.0.17134 N/A Build 17134
language: shell # 'language: python' is an error on Travis CI Windows
before_install:
- choco install python3 --version 3.6.8 # this install takes at least 1 min 30 sec
- python -m pip install --upgrade pip
before_script:
- poetry install
env:
- PATH=/c/Python36:/c/Python36/Scripts:$PATH;
- TEST="poetry run pytest --cov=src/antenna_intensity_modeler tests/"
- name: "Python 3.5.4 on Windows"
os: windows # Windows 10.0.17134 N/A Build 17134
language: shell # 'language: python' is an error on Travis CI Windows
before_install:
- choco install python3 -version 3.5.4 # this install takes at least 1 min 30 sec
- python -m pip install --upgrade pip
before_script:
- poetry install
env:
- PATH=/c/Python35:/c/Python35/Scripts:$PATH;
- TEST="poetry run pytest --cov=src/antenna_intensity_modeler tests/"
env:
global:
- secure: "nPG6veYLoq/o6Hg6h/O6+ZkZgFVKyMch16+KIUSfHI0RK+2LD3BM0HsMmhuMbkwOjiLCSSU6N260eReIYZpcvoBHzxA32VeX3VeKp572LOKWN1FG1+/R7ebzbEXkLWQHAMavFr+5IJfGMOZB/y9jbMSBLKVLRC51EJFnt8lg4/2Wlcy7/i02nSvjD0ToIKk33gOCXKjk6TH1BsuuvrnjSEmvEQscrqN7kVjhB/QEGBXqi6vn0YcS2FO+EcAXtJ5zoEi4eRi6DOAl0RndfHSTmzc6Row5nvWRT/OJdEroA1q5xfjArskpQBe3kLZ/XpFPTMHznBbtTIddZlS0GdtisfU+z/d4Ez2HezDsDkHRiGdE90M4f7TnAcNuxOGXaBxaNooMD7oLerPvV0YzoyQqrY/sR/nPGhk3psxzczWiUMZGQfDOLID/IFG9wH+yOo68VYrLQwNBZMPqWK+EIDGTejx5jAtODN8Jy7h4bQC/vjfNOr7t7ne2sJMYsGwZNnpp7zFYw1EsqBLgz55/aOfcIem/7BvYT4bghRg6JfVfk+drDkiEPUTPtJ5Y9xbsqEJuzM0NPNv6tM/aw0dEYVPwsPc3jcnKG6T+ZG4/AGM+KiYWnDwRZ7pNYva730su3mtTDGcGnWYv6+y/bteGOfDmXfUHQC0GRCYHQMrG8emdTjM="
# Command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install:
- pip install -U poetry
- pip install -U tox-travis
# Command to run tests, e.g. python setup.py test
script: $TEST
# Assuming you have installed the travis-ci CLI tool, after you
# create the Github repo and add it to Travis, run the
# following command to finish PyPI deployment setup:
# $ travis encrypt --add deploy.password
before-deploy:
- poetry config http-basic.mypypi wboxx1 $TRAVIS_PASS
- poetry build
#deploy:
# provider: script
# script: poetry publish
# on:
# tags: true
# repo: wboxx1/antenna-intensity-modeler
# branch: master
# python: 3.6