Closed gmile closed 6 years ago
That's weird. Tests are passing using elixir 1.5.1 and Erlang 20.0 on my macOS :/
Finally was able to get to the bottom of this. It looks like excoveralls
+ meck
+ elixir 1.5
aren't playing nicely together.
Seems to be related to this: https://github.com/parroty/excoveralls/issues/107#issuecomment-322266282
In order to debug initial problem I've built a docker container, to replicate Travis env:
FROM ubuntu:12.04.5
SHELL ["/bin/bash", "-c"]
RUN apt-get update
RUN apt-get install -y ca-certificates libssl1.0.0 wget git curl bzip2 unzip
RUN wget -o $HOME/erlang.tar.bz2 https://s3.amazonaws.com/travis-otp-releases/binaries/ubuntu/12.04/x86_64/erlang-20.0-nonroot.tar.bz2
RUN mkdir -p ~/otp && tar -xf erlang-20.0-nonroot.tar.bz2 -C ~/otp/
RUN source $HOME/otp/20.0/activate
RUN mkdir -p elixir
RUN cd elixir
RUN wget https://repo.hex.pm/builds/elixir/v1.5.1-otp-20.zip
RUN unzip v1.5.1-otp-20.zip
ENV PATH=/root/otp/20.0/bin:/elixir/bin:$PATH
RUN sed -i -- "s/home\/travis/root/" /root/otp/20.0/bin/erl
RUN sed -i -- "s/home\/travis/root/" /root/otp/20.0/erts-9.0/bin/erl
RUN mix local.hex --force
RUN mix local.rebar --force
RUN git clone https://github.com/gmile/extwitter /extwitter && \
cd /extwitter && \
git checkout patch-1
RUN cd /extwitter && \
MIX_ENV=test mix do deps.get, compile, coveralls.travis
But Travis issue is also easily reproducible on my macOS environment by simply running the following (having my branch checked out):
mix coveralls
Bump all versions to the latest patch-version. Also, try testing on 1.1.