Commit 22fde085 authored by Michał Kępień's avatar Michał Kępień

Danger: fix the "merge_status" enum for GitLab MRs

parent abb645b8
......@@ -105,9 +105,9 @@ 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
RUN if [ -n "@NODEJS@" ]; then curl -sL https://deb.nodesource.com/setup_@NODEJS@.x | bash - && apt-get install -y nodejs; fi
# https://github.com/danger/python/pull/8
RUN if [ -n "@NODEJS@" ] && [ "@DANGER@" = "yes" ]; then npm install -g danger@9 || cat /root/.npm/_logs/*.log; fi
RUN if [ -n "@NODEJS@" ] && [ "@DANGER@" = "yes" ]; then pip3 install danger-python && sed -i 's|OPEN = "open"|OPEN = "opened"|' /usr/local/lib/python3.7/dist-packages/danger_python/models.py; fi
# https://github.com/danger/python/pull/8, https://github.com/danger/python/pull/9
RUN if [ -n "@NODEJS@" ] && [ "@DANGER@" = "yes" ]; then pip3 install danger-python && sed -i '/CAN_BE_MERGED/{p;s|CAN|CANNOT|;s|can|cannot|}; 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