Closed nelsonic closed 5 years ago
Got mix cover
working on localhost
on tutorial
branch:
Build fails on Travis-CI because it is expecting a "append_only"
Postgres user to exist:
https://travis-ci.org/dwyl/phoenix-ecto-append-only-log-example/builds/431146775#L604
So we need to create the user on Travis-CI before attempting to run the tests.
it's relatively easy to add a before_script:
to the .travis.yml
file.
Trying it now:
before_script:
- psql -c "CREATE USER append_only WITH PASSWORD 'postgres';" -U postgres
- psql -c "ALTER USER append_only CREATEDB;" -U postgres
Build passing: https://travis-ci.org/dwyl/phoenix-ecto-append-only-log-example/builds/431336390
We can work on improving the coverage after the tutorial is more complete. 👍
Tests for #2 (Daniel's PR) currently pass on my Localhost:
But we cannot "know" this without checking out the branch and running the tests on
localhost
...Todo
.travis.yml
file for this project.append_only
user on Travis-CI before attempting to run tests see: https://github.com/dwyl/phoenix-ecto-append-only-log-example/issues/3#issuecomment-423412835mix.exs
so that we can run coverage using:excoveralls
Thanks! 👍