parroty / extwitter

Twitter client library for elixir.
MIT License
409 stars 129 forks source link

Modernize .travis.yml #88

Closed gmile closed 6 years ago

gmile commented 7 years ago

Bump all versions to the latest patch-version. Also, try testing on 1.1.

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 79.386% when pulling ff96ff6707c0960d8a252d80bc1fd455ed15e09f on gmile:patch-1 into 1964e86a22376e846aa253254ae4c4b6127826e2 on parroty:master.

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 79.386% when pulling 8fad0f65da5c2703f3f87d28f8346ed77bd58be7 on gmile:patch-1 into 1964e86a22376e846aa253254ae4c4b6127826e2 on parroty:master.

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 79.386% when pulling 8fad0f65da5c2703f3f87d28f8346ed77bd58be7 on gmile:patch-1 into 1964e86a22376e846aa253254ae4c4b6127826e2 on parroty:master.

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 79.386% when pulling cc840e6a770611ecdf62c1a53fc2f37ea83cfc7b on gmile:patch-1 into 1964e86a22376e846aa253254ae4c4b6127826e2 on parroty:master.

gmile commented 7 years ago

That's weird. Tests are passing using elixir 1.5.1 and Erlang 20.0 on my macOS :/

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 79.386% when pulling 7e5961fd8a7c15bc96544a2e6015f0fcb402f32d on gmile:patch-1 into 1964e86a22376e846aa253254ae4c4b6127826e2 on parroty:master.

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 79.386% when pulling dedb0f24788f4a1318ce3e85d290cf2e5ea3d788 on gmile:patch-1 into 1964e86a22376e846aa253254ae4c4b6127826e2 on parroty:master.

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 79.386% when pulling a5df7eb724d8df7e223dc0fbbc8ecea511f1498b on gmile:patch-1 into 1964e86a22376e846aa253254ae4c4b6127826e2 on parroty:master.

gmile commented 7 years ago

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
coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 79.386% when pulling 6ffc64686cc17ec52097323a6d4069f8d9f8b4b6 on gmile:patch-1 into 1964e86a22376e846aa253254ae4c4b6127826e2 on parroty:master.

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 79.176% when pulling 57fa62ab66add213fbe02c3ebe5a4dffd310db35 on gmile:patch-1 into 93d323268b27f6dc16c8ffd070b0e2200ddc8748 on parroty:master.