forked from buffer/thug
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
62 lines (55 loc) · 1.37 KB
/
Copy pathtox.ini
File metadata and controls
62 lines (55 loc) · 1.37 KB
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
[tox]
envlist = py38, py39, py310
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
[stpyv8]
version =
10.9.194.9
[testenv]
passenv =
TOXENV
CI
TRAVIS
TRAVIS_*
CODECOV_TOKEN
setenv =
BUILD_LIB = 1
allowlist_externals =
sudo
mkdir
wget
unzip
commands_pre =
pip install --upgrade pip
pip install .
pip install .[test]
commands =
wget https://github.com/cloudflare/stpyv8/releases/download/v{[stpyv8]version}/{env:STPYV8_BASE}.zip
unzip {env:STPYV8_BASE}.zip
pip install {env:STPYV8_WHEEL}
sudo mkdir -p /usr/share/stpyv8
sudo mv {env:STPYV8_ROOT}/icudtl.dat /usr/share/stpyv8
commands_post =
thug --version
pytest
codecov
safety check
pre-commit run --all-files
[testenv:py38]
setenv =
STPYV8_BASE = stpyv8-ubuntu-20.04-python-3.8
STPYV8_ROOT = stpyv8-ubuntu-20.04-3.8
STPYV8_WHEEL = {env:STPYV8_ROOT}/stpyv8-{[stpyv8]version}-cp38-cp38-linux_x86_64.whl
[testenv:py39]
setenv =
STPYV8_BASE = stpyv8-ubuntu-20.04-python-3.9
STPYV8_ROOT = stpyv8-ubuntu-20.04-3.9
STPYV8_WHEEL = {env:STPYV8_ROOT}/stpyv8-{[stpyv8]version}-cp39-cp39-linux_x86_64.whl
[testenv:py310]
setenv =
STPYV8_BASE = stpyv8-ubuntu-22.04-python-3.10
STPYV8_ROOT = stpyv8-ubuntu-22.04-3.10
STPYV8_WHEEL = {env:STPYV8_ROOT}/stpyv8-{[stpyv8]version}-cp310-cp310-linux_x86_64.whl