-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
.travis.yml
52 lines (51 loc) · 1.7 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
dist: focal
language: python
python:
- 3.9
- "3.10"
- "3.11"
- "3.12"
git:
depth: false
before_install:
- pip install --upgrade pip
install:
# - git fetch --tags
#
- pip install -r requirements-test.txt
- pip install -r requirements-flake.txt
- ls -l
- pip uninstall whatstk
- pip install .[full]
# - ls -l /home/travis/virtualenv/python3.7.1/lib/python3.7/site-packages/whatstk/whatsapp/assets/
- cat MANIFEST.in
- mkdir -p tests/chats/hformats tests/chats/merge
- whatstk-generate-chat --size 500 -z --output-path tests/chats/hformats/ # Generate chats for hformat checks
- whatstk-generate-chat --size 300 --last-timestamp 2019-09-01 --hformats '%Y-%m-%d, %H:%M - %name:' --output-path tests/chats/merge/ --filenames file1.txt
- whatstk-generate-chat --size 300 --last-timestamp 2020-01-01 --hformats '%Y-%m-%d, %H:%M - %name:' --output-path tests/chats/merge/ --filenames file2.txt
#pip install -r requirements.txt
script:
- flake8 --max-complexity=10 --docstring-convention=google --max-line-length=120 --ignore=ANN101,ANN102,ANN401 whatstk
- pytest --cov-report term --cov=whatstk tests
after_success:
- codecov # submit coverage
jobs:
include:
# perform a linux build
# - services: docker
# and a windows build
- os: windows
language: shell
before_install:
- choco upgrade python -y --version 3.12.2
- export PATH="/c/Python312:/c/Python312/Scripts:$PATH"
# make sure it's on PATH as 'python3'
- ln -s /c/Python312/python.exe /c/Python312/python3.exe
- stage: deploy
python: 3.11
deploy:
- provider: pypi
user: $USER_PYPI
password: $PWD_PYPI
on:
tags: true