Commit 3451e3ba authored by Michał Kępień's avatar Michał Kępień

Install Danger Python on Debian buster

parent d193de99
......@@ -32,6 +32,7 @@ abi_check_debian_buster_amd64 := yes
coccinelle_debian_buster_amd64 := yes
compiledb_debian_buster_amd64 := yes
cppcheck_debian_buster_amd64 := yes
danger_debian_buster_amd64 := yes
dnstap_alpine_3.11_amd64 := yes
dnstap_debian_buster_amd64 := yes
dnstap_centos_centos7_amd64 := yes
......@@ -84,6 +85,7 @@ $(TARGETS): CLANG = $(clang_$(VENDOR)_$(VERSION)_$(ARCH))
$(TARGETS): COCCINELLE = $(coccinelle_$(VENDOR)_$(VERSION)_$(ARCH))
$(TARGETS): COMPILEDB = $(compiledb_$(VENDOR)_$(VERSION)_$(ARCH))
$(TARGETS): CPPCHECK = $(cppcheck_$(VENDOR)_$(VERSION)_$(ARCH))
$(TARGETS): DANGER = $(danger_$(VENDOR)_$(VERSION)_$(ARCH))
$(TARGETS): DNSTAP = $(dnstap_$(VENDOR)_$(VERSION)_$(ARCH))
$(TARGETS): PYTHON_QA = $(python_qa_$(VENDOR)_$(VERSION)_$(ARCH))
$(TARGETS): RESPDIFF = $(respdiff_$(VENDOR)_$(VERSION)_$(ARCH))
......@@ -101,6 +103,7 @@ $(TARGETS):
-e 's,@COCCINELLE@,$(COCCINELLE),g' \
-e 's,@COMPILEDB@,$(COMPILEDB),g' \
-e 's,@CPPCHECK@,$(CPPCHECK),g' \
-e 's,@DANGER@,$(DANGER),g' \
-e 's,@DNSTAP@,$(DNSTAP),g' \
-e 's,@KYUA_GIT_COMMIT@,$(KYUA_GIT_COMMIT),g' \
-e 's,@PYTHON_QA@,$(PYTHON_QA),g' \
......
......@@ -104,6 +104,8 @@ RUN if [ "@CLANG@" -ge "9" ] 2>/dev/null; then \
RUN if [ "@COCCINELLE@" = "yes" ]; then apt-get -y install coccinelle; fi
RUN if [ "@COMPILEDB@" = "yes" ]; then pip3 install compiledb; fi
RUN if [ "@CPPCHECK@" = "yes" ]; then apt-get -y install cppcheck; fi
# https://github.com/danger/python/pull/8
RUN if [ "@DANGER@" = "yes" ]; then apt-get -y install npm && npm install -g danger@9 && pip3 install danger-python && sed -i 's|OPEN = "open"|OPEN = "opened"|' /usr/local/lib/python3.7/dist-packages/danger_python/models.py; fi
RUN if [ "@DNSTAP@" = "yes" ]; then apt-get -y install libfstrm-dev libprotobuf-c-dev protobuf-c-compiler; fi
RUN if [ "@PYTHON_QA@" = "yes" ]; then pip3 install flake8==3.8.1 pylint==2.5.2; fi
RUN if [ "@RESPDIFF@" = "yes" ]; then apt-get -y install python3-dpkt python3-lmdb python3-numpy python3-scipy python3-tabulate; fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment