From e6e1bdee2f14c992df738b834205383baedb06b6 Mon Sep 17 00:00:00 2001 From: whossname Date: Sun, 15 Sep 2019 13:39:19 +0800 Subject: [PATCH] simplify travis --- .travis.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0beda07..6626479 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,3 @@ - language: elixir elixir: - 1.8 @@ -6,12 +5,18 @@ elixir: services: - docker -install: - - docker-compose build +before_script: + - docker run --name test_mssql_server -e 'ACCEPT_EULA=Y' -e SA_PASSWORD='ThePa$$word' -p 1433:1433 -d microsoft/mssql-server-linux + - ./bash_scripts/wait-for-it.sh localhost:1433 + - mix local.rebar + - rm -rf deps + - rm -rf _build + - mix deps.get + - mix script: - - docker-compose run mssql_ecto mix compile --warnings-as-errors - - docker-compose run mssql_ecto mix coveralls.travis + - mix compile --warnings-as-errors + - mix coveralls.travis after_script: - mix local.hex --force