-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
99 lines (88 loc) · 2.84 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
language: python
script: pytest
os: linux
before_install:
# Additional info about the build
- uname -a
- df -h
- ulimit -a
# Install the Python environment
- source devtools/travis-ci/before_install.sh
- python -V
install:
# Create test environment for package
- python devtools/scripts/create_conda_env.py -n=test -p=$PYTHON_VER devtools/conda-envs/test_env.yaml
# Activate the test environment
- conda activate test
# Build and install package
#- python setup.py develop --no-deps
- pip install -e .
# Print details of the environment
- 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.8
script:
- flake8 forcefield_step tests
- yapf --diff --recursive forcefield_step tests
- 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 MacOS Python 3.8"
script:
- pytest -v tests/
os: osx
language: generic
env: PYTHON_VER=3.8
- stage: test
name: "Tests on Linux Python 3.7"
script:
- pytest -v tests/
os: linux
language: generic # No need to set Python version since its conda
env: PYTHON_VER=3.7
- stage: test
name: "Tests and coverage on Linux Python 3.8"
script:
- pytest -v --cov=forcefield_step tests/
after_success:
- codecov
os: linux
language: generic
env: PYTHON_VER=3.8
- stage: deploy
name: "Deploy to PyPi"
if: tag IS present
os: linux
dist: xenial
python: 3.8
script: skip
deploy:
provider: pypi
distributions: sdist bdist_wheel
skip_existing: true
on:
condition: $PYTHON_VER = 3.8
condition: $TRAVIS_OS_NAME = linux
repo: molssi-seamm/forcefield_step
tags: true
username: seamm
password:
secure: "Pqe6T0TP0q+yYZyviooG95c9cV6AALKt3aguUuSc766MQ1HtEgPUFO+BDXvpUV4w9xMPi3lYbMHduoF/EGRhiyUUNYRc7ad+xFU5Yeg/AZSzm2L3nqU1GX17YAHPZWM1FFB0d4r4uJ9sTFTGMgskqxUQZpOv5X2hckcx4EutkQZiSJsBGLhRxzVO75Cgl5SbBYIsSa31NBEoMxYZTFspK3CDc2zxbDcUpmRNZpVGJRtnv4ieW7/B0xSULWiDWyabo/Lo16TRCxpjBo+VgYpORjzJ98HYXt5UDviPMMR1PB5y3yWj4SIqp22tncAauaFFk/L/uuHWA1qKCutCWvUkqDFjJIJHsfcoKqmf0VqQjnKUvzPJ9rbuZ74lFlGT+XWZrQf9vCzIb99213sRMWvBMwVHODLVhss677Vxmf52y2LfIHXpBDbobYryiSZRP9E8ES8LNdo4p6awC3FqQxfHJt9qMl30+ul6s5bob61lM3jNblvnEgvFlgTyo7N569mK3esLhFt7o4hOYloka+ne7MS85kd61jWfAs0h87MQv6DAaQgxtcNC+qBhH1bEEuriarJdDCJHklkq3k8h4n/PG+cNGoebMH7FZhNyn9Wgp8lxh5jfzJBf0G4OWZg3vlN2ZG5WjBsmq72L1g4rLk6aWQR9Rmokq7DHwNx/r4mqeuw="