File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -39,10 +39,13 @@ matrix:
39
39
- echo "deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list
40
40
- curl https://bazel.build/bazel-release.pub.gpg | sudo apt-key add -
41
41
- sudo apt-get update && sudo apt-get install bazel make
42
+ - sudo apt install python3-dev
43
+ - pip install -U pytest --user
42
44
script : make all
43
45
44
46
before_install :
45
47
- sudo apt install python3-dev
48
+ - pip install -U pytest --user
46
49
- go get github.com/axw/gocov/gocov
47
50
- go get github.com/mattn/goveralls
48
51
- go get github.com/fatih/color
Original file line number Diff line number Diff line change 16
16
from setuptools import setup
17
17
from setuptools import Extension
18
18
from setuptools .command .build_ext import build_ext as BuildExt
19
+ from setuptools .command .test import test as TestCommand
19
20
from subprocess import Popen , PIPE
20
21
21
22
DIR = os .path .abspath (os .path .dirname (__file__ ))
@@ -45,6 +46,10 @@ def run(self):
45
46
46
47
BuildExt .run (self )
47
48
49
+ class NoopTestCommand (TestCommand ):
50
+ def __init__ (self , dist ):
51
+ print ("_gojsonnet does not support running tests with 'python setup.py test'. Please run 'pytest'." )
52
+
48
53
jsonnet_ext = Extension (
49
54
'_gojsonnet' ,
50
55
sources = MODULE_SOURCES ,
@@ -63,7 +68,7 @@ def run(self):
63
68
version = get_version (),
64
69
cmdclass = {
65
70
'build_ext' : BuildJsonnetExt ,
71
+ 'test' : NoopTestCommand ,
66
72
},
67
73
ext_modules = [jsonnet_ext ],
68
- test_suite = "python._jsonnet_test" ,
69
74
)
Original file line number Diff line number Diff line change 14
14
else
15
15
c-bindings-tests/run.sh
16
16
17
- $PYTHON_COMMAND setup.py build
18
- $PYTHON_COMMAND setup.py test
17
+ $PYTHON_COMMAND setup.py build --build-platlib .
18
+ $PYTHON_COMMAND -m pytest python
19
19
fi
20
20
21
21
export IMPLEMENTATION=golang
You can’t perform that action at this time.
0 commit comments