Skip to content

Commit 8e93b9a

Browse files
authored
more policy refactoring; expand CI and coverage for AB examples and CLI (#1307)
1 parent c0a57a2 commit 8e93b9a

35 files changed

+1678
-732
lines changed

.coveragerc

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[run]
22
omit =
33
crossbar/worker/test/examples/syntaxerror.py
4+
*/test/*.py
45
branch = True
56
source = crossbar
67
parallel = True

.travis.yml

+13-10
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ matrix:
2525
include:
2626
- env: TOX_ENV=flake8
2727

28+
- python: 3.6
29+
env: TOX_ENV=coverage
30+
2831
- python: 3.6
2932
env: TOX_ENV=py36-cli
3033
- python: pypy3
@@ -36,28 +39,28 @@ matrix:
3639
env: TOX_ENV=pypy3-examples
3740

3841
- python: 3.6
39-
env: TOX_ENV=py36-unpinned-trial,coverage-report
42+
env: TOX_ENV=py36-unpinned-trial
4043
- python: 3.6
41-
env: TOX_ENV=py36-pinned-trial,coverage-report
44+
env: TOX_ENV=py36-pinned-trial
4245
- python: 3.6
43-
env: TOX_ENV=py36-abtrunk-trial,coverage-report
46+
env: TOX_ENV=py36-abtrunk-trial
4447

4548
- python: pypy3
46-
env: TOX_ENV=pypy3-unpinned-trial,coverage-report
49+
env: TOX_ENV=pypy3-unpinned-trial
4750
- python: pypy3
48-
env: TOX_ENV=pypy3-pinned-trial,coverage-report
51+
env: TOX_ENV=pypy3-pinned-trial
4952
- python: pypy3
50-
env: TOX_ENV=pypy3-abtrunk-trial,coverage-report
53+
env: TOX_ENV=pypy3-abtrunk-trial
5154

5255
# we allow failures when not using autobahn trunk, for cases
5356
# where we depend on a new feature in autobahn here in crossbar
5457
allow_failures:
5558
- python: 3.6
56-
env: TOX_ENV=py36-unpinned-trial,coverage-report
59+
env: TOX_ENV=py36-unpinned-trial
5760
- python: 3.6
58-
env: TOX_ENV=py36-pinned-trial,coverage-report
61+
env: TOX_ENV=py36-pinned-trial
5962

6063
- python: pypy3
61-
env: TOX_ENV=pypy3-unpinned-trial,coverage-report
64+
env: TOX_ENV=pypy3-unpinned-trial
6265
- python: pypy3
63-
env: TOX_ENV=pypy3-pinned-trial,coverage-report
66+
env: TOX_ENV=pypy3-pinned-trial

Makefile

+16-2
Original file line numberDiff line numberDiff line change
@@ -70,18 +70,32 @@ publish: clean
7070
python setup.py sdist bdist_wheel
7171
twine upload dist/*
7272

73-
test: flake8
73+
_test: flake8
7474
trial crossbar
7575

76+
test:
77+
crossbar start --personality=standalone --cbdir=./test/full/.crossbar
78+
# crossbar start --personality=standalone --cbdir=./test/full/.crossbar --shutdownafter=10
79+
80+
gen_ssh_keys:
81+
# ssh-keygen -t ed25519 -f test/full/.crossbar/ssh_host_ed25519_key
82+
ssh-keygen -t rsa -b 4096 -f test/full/.crossbar/ssh_host_rsa_key
83+
84+
test_coverage:
85+
tox -e coverage .
86+
7687
test_tox:
77-
tox -e flake8,py36-unpinned-trial,py36-cli .
88+
tox -e flake8,py36-unpinned-trial,py36-cli,py36-examples,coverage .
7889

7990
test_cli:
8091
./test/test_cli.sh
8192

8293
test_cli_tox:
8394
tox -e py36-cli .
8495

96+
test_examples:
97+
tox -e py36-examples .
98+
8599
test_mqtt:
86100
# trial crossbar.adapter.mqtt.test.test_wamp
87101
trial crossbar.adapter.mqtt.test.test_wamp.MQTTAdapterTests.test_basic_publish

0 commit comments

Comments
 (0)