-
Notifications
You must be signed in to change notification settings - Fork 9
/
.travis.yml
55 lines (45 loc) · 2.05 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
dist: xenial
sudo: required
language: generic # could be python
env:
- TRAVIS_PYTHON_VERSION="3.7"
- TRAVIS_PYTHON_VERSION="3.8"
before_install:
- python -m pip install --upgrade pip
install:
#intall Miniconda
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
- conda create -q -n test-env python="${TRAVIS_PYTHON_VERSION}" pytest pytest-cov pyyaml
- source activate test-env
# install package and dependancies
- pip install --user -r requirements.txt
- pip install configparser
- pip install coveralls
script:
- pytest -v --cov=pycsamt --cov-report=tests --ignore=pycsamt/gui | python -m pytest --cov-fail-under=20
after_failure:
- cat config.log
after_success:
- coveralls
before-deploy:
- python3 -m pip install --upgrade build
- python3 -m pip install --user --upgrade twine
deploy:
skip_existing: true
provider: pypi
user: daniel03kl
password:
secure: UZAHwiahUjupCcFUXd8VVMOzinzIAQwfMIxI3GeTXng2RUd7K3xRUWSftw2icHCgPZdRY7Hic9M3VYuu2todd8ZI8UTIdyAvFtUt9TQIZAtSc3TwFJTs5Rh7Z9lAyaxBaAIUCVZ9j9yFqSKK6/qh6dCwUpgna17UkhpZe2Tq/mtQR3Ls8e3WMp15Q20eVW0Wr70dwZbQPA9hxenDUFxG7TIXcVC+mkBru7jq6OXJPuPJD8KM8rtOzQvACnUtyv3Wao7ntmsl3hCHivQBqWDbnOeyTHfER5Ke0tTHQuzjM1elownoOvf7ujPpwWh2agNLBGbWiq6KI0pQpac4WZqACcIu3Z6snp9SJSXjE+dY5Q1cnmRaEVUpN7GQgBmg9qrorLWCQN/NubZa1jf4IAVt1/xTqBjADDABB81DylfH2uZnFg1Piak4a5mpbVI8gdPzLB5p3Oo4l9S9CGlKZIv55IiDHRLU/okSrI+rQkKBrZdWKCbT9k/qXVcZTCEFHoJtKSVB6ofSekqhW42BAsrQjdK3Gn0sr6TDuA4lTyO+ka+MdPA7VRCiatW0j05zGNKvTuhoQusGP9XbZ8ta1SBhaO0ejlAOgI/LNZTI4ngKl8/JArnIfAQ6Nf+xux8F05tIbUDm8oFD0MPaiq0OmPzCbhVyKU4dFZ0Ha2vqJXXDy/0=
on:
all_branches: true
skip_cleanup: true
after-deploy:
- pip search pycsamt
- pip show pycsamt
- pip show https://pypi.org/project/pycsamt/1.0.3