-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
98 lines (87 loc) · 2.81 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
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 seamm_util tests
- yapf --diff --recursive seamm_util 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=seamm_util 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
env: PYTHON_VER=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/seamm_util
tags: true
username: seamm
password:
secure: dMONRr7xRx09LOnKUteCa3CY8aGy8XrLX4oAka70RqmycrdZk1fLO3Ykz1Hzw4psREoXWQjmU5C0UTXAfSgpO3PrZPxYHU7+Pnyfjy8gE8ssVHUv19dXlFazxZG0vfjDiKq5FLiIx96Va2OnNDrcL5RfP3MXHamwqJkds8+w+nF0BEQ5Oa/WODAGIBYLYv08rpyBk9tYDX5uMliABgnraalHgPpoVVJEdOBIlpTgKUP2CCd+iaJQquHwJka3BEQ/PbGbQq0Rh5uWfNLEKZHQ53LPpqfTLhF9sR1ewXCQaFHIupDcmIGjavogk05lIcTgti7gF++Lv9xHZeakQF90d/jphhRu9DM2rS84MESm/LhgfqYJRk3P/6XrSUx4zxNV54cKOwdttGBUU+Ei102Rmh9f62Loc2uMNsGVes+kOshX2P9qiqUlGpV1Y8zbOuipscMFIJTnKHOkN2pLctNm+Qewa9VZjnC4ZVa39ssmmseEfJG906CfsCARVQ7Wf/uEIAn0nr07j6im4fql3fOEdKoAeUDvjX/o2K4lUR85ikbKFiiaz9XeyXmLbtgZC5/FIhgCA5dJtjgTrpsuYnEcACz++28+vWZKdYX89ohhD5mgZBVtc6XiXtD9oQp3bbgUAbmitRNI3ewBszVX6FQ7DC4czZsmDYOfyVt5NoR+8DA=