-
Notifications
You must be signed in to change notification settings - Fork 17
/
tox.ini
57 lines (51 loc) · 1.19 KB
/
tox.ini
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
[tox]
envlist = py3{7,8,9,10}
skip_missing_interpreters = true
skipsdist = true
[testenv]
envdir = {toxinidir}/.env
skip_install = true
setenv =
CFLAGS = -march=native -O2 -g -DNDEBUG
CXXFLAGS = {env:CFLAGS:-march=native -O2 -g -DNDEBUG}
LDFLAGS = {env:CFLAGS:-march=native -O2 -g -DNDEBUG -Wl,-O1 -Wl,--as-needed}
DEBUG = {env:DEBUG:}
CC = {env:CC:gcc}
CXX = {env:CXX:g++}
CCC = {env:CXX:g++}
LD = {env:CXX:g++}
passenv =
pythonLocation
CC
CXX
LD
AR
AS
NM
RANLIB
STRIP
OBJCOPY
PYTHON
DISPLAY
XAUTHORITY
HOME
USERNAME
USER
CI
XDG_*
GITHUB*
PIP_DOWNLOAD_CACHE
whitelist_externals =
{build,clang,lint,clean,changes}: bash
deps =
{build,clang,lint,clean}: pip>=19.0.1
{build,clang}: this_cli
changes: git+https://github.com/sarnold/gitchangelog.git@master
lint: cpplint
lint: beautysh
commands =
{build,clang}: bash -c 'make -j1 CCC=$CXX CC=$CC cccc'
{build,clang}: bash -c 'make -j1 CCC=$CXX test 2>&1 | tail -n5'
lint: bash -c 'cpplint --output=gsed {toxinidir}/cccc/*'
changes: bash -c 'gitchangelog {posargs} > CHANGELOG.md'
clean: bash -c 'make reallyclean'