-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
80 lines (80 loc) · 2.31 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
language: python
script: pytest
os: linux
before_install:
- uname -a
- df -h
- ulimit -a
- source devtools/travis-ci/before_install.sh
- python -V
install:
- python devtools/scripts/create_conda_env.py -n=test -p=$PYTHON_VER devtools/conda-envs/test_env.yaml
- conda activate test
- pip install -e .
- conda list
- pip freeze
notifications:
email: false
stages:
- lint
- test
- deploy
jobs:
fast_finish: true
include:
- stage: lint
name: Check formatting of code for PEP-8
os: linux
language: generic
env: PYTHON_VER=3.7
script:
- flake8 solvate_step tests
- yapf --diff --recursive solvate_step tests
- stage: test
name: Tests on MacOS Python 3.6
script:
- pytest -v tests/
os: osx
language: generic
env: PYTHON_VER=3.6
- stage: test
name: Tests on MacOS Python 3.7
script:
- pytest -v tests/
os: osx
language: generic
env: PYTHON_VER=3.7
- stage: test
name: Tests on Linux Python 3.6
script:
- pytest -v tests/
os: linux
language: generic
env: PYTHON_VER=3.6
- stage: test
name: Tests and coverage on Linux Python 3.7
script:
- pytest -v --cov=solvate_step tests/
after_success:
- codecov
os: linux
language: generic
env: PYTHON_VER=3.7
- stage: deploy
name: Deploy to PyPi
if: tag IS present
os: linux
dist: xenial
python: 3.7
script: skip
deploy:
provider: pypi
distributions: sdist bdist_wheel
skip_existing: true
on:
condition: "$TRAVIS_OS_NAME = linux"
repo: molssi-seamm/solvate_step
tags: true
username: seamm
password:
secure: cZ8RfF93wOENeq+T7EsZ8VWBB80vXuIHKQEOuQMUEBrPY9w8lHYjX+V/J1I7vJABPelhKBDcRz7ZCov9oaf+BLG5kM2BR10oKcGtkyB90nguFNFMtlErOGWu6fM7CPoqcp6vYx8VSkR53exEqE6c960EeSk3fQl7c3xjMu7oSW4O5rtmCk1mv15WJUPz0zlw3i2rb37V32oERzAYDqQsWTTRax6/xzFRjpkLWe37SSIQ9+3IxpFhSWZ5tCJ+vauigH6Y4au7x76XEQ2UMlerzF1PjSXWJUStQS5fyJx1ZWIcMdfoi51h3Kg5+nJLAmMA62e7/NJgi5JY0T3VwB7XFPgmIK2pLOmj1BehxiwXjtWgy264zZVh/Hyv43Cf/QWmj4AypmR8Rm5ZAvF6mQ2gm3/eutyKmTB2Qw1rFgdF30rJhUXEnGoDcNv9zc8NVu31DjKsAbZPBdDuinxUZT+/G63JlddDkKdf2kR+f17sX307UNa3K0NpsYxhn2YUKKp+MEmL4XukSfKwgmNifVZwc4SryCMWkzPcOteAA2lPQOBUw/hi/xRjWXaRP4w0gOEyv54tWynXWbTPanJKvYBsTbnJfyrgac3Zgugddt1G0oWXUG5Y9vFmVz+LOtB2axiU9+OCmTVRvLxAahkWovms1owXT6CamL9b91FNc6SVLr8=