diff --git a/.travis.yml b/.travis.yml index b3e323a..c7a067f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,7 +21,9 @@ script: cd /coala-bears; rm bears/Constants.py; # There are no tests covering this module rm bears/c_languages/CSharpLintBear.py tests/c_languages/CSharpLintBearTest.py; + rm bears/go/GoTypeBear.py tests/go/GoTypeBearTest.py; rm bears/java/InferBear.py tests/java/InferBearTest.py; + rm bears/julia/JuliaLintBear.py tests/julia/JuliaLintBearTest.py; rm bears/haskell/GhcModBear.py tests/haskell/GhcModBearTest.py; rm -r bears/verilog tests/verilog/; python3 -m pytest --cov --cov-fail-under=100; diff --git a/Dockerfile b/Dockerfile index 2f1b2f1..047a164 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM opensuse:tumbleweed +FROM opensuse:leap MAINTAINER Fabian Neuschmidt fabian@neuschmidt.de ARG branch=master @@ -10,20 +10,21 @@ ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en PATH=$PATH:/root/pmd-bin-5.4.1/bin:/root/ RUN mkdir -p /root/.local/share/coala && \ ln -s /root/.local/share/coala /cache -# Add packaged flawfinder -RUN zypper addrepo http://download.opensuse.org/repositories/home:illuusio/openSUSE_Tumbleweed/home:illuusio.repo && \ +RUN \ # Use Leap for nodejs zypper addrepo http://download.opensuse.org/repositories/devel:languages:nodejs/openSUSE_Leap_42.2/devel:languages:nodejs.repo && \ - # Add repo for rubygem-bundler - zypper addrepo http://download.opensuse.org/repositories/home:AtastaChloeD:ChiliProject/openSUSE_Factory/home:AtastaChloeD:ChiliProject.repo && \ # Remove unnecessary repos to avoid refreshes - zypper removerepo 'NON-OSS' && \ + zypper removerepo 'NON-OSS' 'Update Non-Oss' && \ # Package dependencies time zypper --no-gpg-checks --non-interactive \ # science contains latest Julia - --plus-repo http://download.opensuse.org/repositories/science/openSUSE_Tumbleweed/ \ + --plus-repo http://download.opensuse.org/repositories/science/openSUSE_Leap_42.2/ \ # luarocks - --plus-repo http://download.opensuse.org/repositories/devel:languages:lua/openSUSE_Tumbleweed/ \ + --plus-repo http://download.opensuse.org/repositories/home:malkavi/openSUSE_Leap_42.2/ \ + # flawfinder + --plus-repo http://download.opensuse.org/repositories/home:illuusio/openSUSE_Leap_42.2 \ + # clang + --plus-repo http://download.opensuse.org/repositories/devel:tools:compiler/openSUSE_Leap_42.2/ \ install \ bzr \ cppcheck \ @@ -38,7 +39,8 @@ RUN zypper addrepo http://download.opensuse.org/repositories/home:illuusio/openS hlint \ indent \ java-1_8_0-openjdk-headless \ - julia \ + # julia \ + libcholmod-3_0_6 \ libclang3_8 \ # libcurl-devel needed by R httr libcurl-devel \ @@ -53,8 +55,8 @@ RUN zypper addrepo http://download.opensuse.org/repositories/home:illuusio/openS devscripts \ # linux-glibc-devel needed for Ruby native extensions linux-glibc-devel \ - lua \ - lua-devel \ + lua51 \ + lua51-devel \ luarocks \ m4 \ nodejs \ @@ -77,7 +79,7 @@ RUN zypper addrepo http://download.opensuse.org/repositories/home:illuusio/openS R-base \ ruby \ ruby-devel \ - ruby2.2-rubygem-bundler \ + ruby2.1-rubygem-bundler \ ShellCheck \ subversion \ tar \ @@ -87,14 +89,10 @@ RUN zypper addrepo http://download.opensuse.org/repositories/home:illuusio/openS aaa_base \ cron \ cronie \ - dbus-1 \ fdupes \ fontconfig \ fonts-config \ - kbd \ iproute2 \ - kmod \ - libasan3 \ libdrm_amdgpu1 \ libdrm_intel1 \ libdrm_nouveau2 \ @@ -122,19 +120,11 @@ RUN zypper addrepo http://download.opensuse.org/repositories/home:illuusio/openS openslp \ perl-File-ShareDir \ perl-Net-DBus \ - perl-Pod-Coverage \ - perl-Test-Pod \ - perl-Test-Pod-Coverage \ perl-X11-Protocol \ postfix \ php7-zlib \ - python-cssselect \ python-curses \ - python-javapackages \ - python-lxml \ python-Pygments \ - python-pyxb \ - python-rpm-macros \ python-xml \ R-core-doc \ rsync \ @@ -144,15 +134,12 @@ RUN zypper addrepo http://download.opensuse.org/repositories/home:illuusio/openS syslog-service \ systemd \ systemd-presets-branding-openSUSE \ - texlive-gsftopk \ - texlive-gsftopk-bin \ texlive-kpathsea \ texlive-kpathsea-bin \ texlive-tetex-bin \ texlive-texconfig \ texlive-texconfig-bin \ texlive-texlive.infra \ - texlive-updmap-map \ util-linux-systemd \ wicked \ wicked-service \ @@ -242,7 +229,8 @@ RUN source /etc/profile.d/go.sh && time go get -u \ github.com/golang/lint/golint \ golang.org/x/tools/cmd/goimports \ sourcegraph.com/sqs/goreturns \ - github.com/jayvdb/gotype \ + # See https://github.com/coala/docker-coala-base/issues/144 + # github.com/jayvdb/gotype \ github.com/kisielk/errcheck && \ find /tmp -mindepth 1 -prune -exec rm -rf '{}' '+' @@ -273,15 +261,16 @@ RUN source /etc/profile.d/go.sh && time go get -u \ # ENV PATH=$PATH:/home/opam/infer-linux64-v0.9.0/infer/bin # Julia setup -RUN time julia -e 'Pkg.add("Lint")' && \ - rm -rf \ - ~/.julia/.cache \ - ~/.julia/v0.5/.cache \ - ~/.julia/v0.5/METADATA \ - ~/.julia/v0.5/*/.git \ - ~/.julia/v0.5/*/test \ - ~/.julia/v0.5/*/docs && \ - find /tmp -mindepth 1 -prune -exec rm -rf '{}' '+' +# https://github.com/coala/docker-coala-base/issues/144 +# RUN time julia -e 'Pkg.add("Lint")' && \ +# rm -rf \ +# ~/.julia/.cache \ +# ~/.julia/v0.5/.cache \ +# ~/.julia/v0.5/METADATA \ +# ~/.julia/v0.5/*/.git \ +# ~/.julia/v0.5/*/test \ +# ~/.julia/v0.5/*/docs && \ +# find /tmp -mindepth 1 -prune -exec rm -rf '{}' '+' # Lua commands RUN time luarocks install luacheck && \