fix: Add mix deps.get before unit-testing
authorAkiraFukushima <h3.poteto@gmail.com>
Mon, 29 Apr 2019 14:53:48 +0000 (23:53 +0900)
committerAkiraFukushima <h3.poteto@gmail.com>
Thu, 2 May 2019 12:04:09 +0000 (21:04 +0900)
.gitlab-ci.yml

index c07f1a5d34f9028945a997fe65ffbc776eb40491..dc99b81ee4cd25dc0332fe77425d66f52ee99e6a 100644 (file)
@@ -48,6 +48,7 @@ unit-testing:
   - name: postgres:9.6.2
     command: ["postgres", "-c", "fsync=off", "-c", "synchronous_commit=off", "-c", "full_page_writes=off"]
   script:
+    - mix deps.get
     - mix ecto.create
     - mix ecto.migrate
     - mix test --trace --preload-modules
@@ -77,4 +78,4 @@ docs-deploy:
     - echo "${SSH_HOST_KEY}" > ~/.ssh/known_hosts
     - eval $(ssh-agent -s)
     - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
-    - rsync -hrvz --delete -e "ssh -p ${SSH_PORT}" priv/static/doc/ "${SSH_USER_HOST_LOCATION}/${CI_COMMIT_REF_NAME}" 
+    - rsync -hrvz --delete -e "ssh -p ${SSH_PORT}" priv/static/doc/ "${SSH_USER_HOST_LOCATION}/${CI_COMMIT_REF_NAME}"