From f7db48910c374b7176eb1f43b94f1d505e166140 Mon Sep 17 00:00:00 2001 From: Cassie Tarakajian Date: Tue, 19 Jun 2018 19:22:35 -0700 Subject: [PATCH] remove reference to .env file from docker-compose.yml --- .travis.yml | 11 +++++++++++ docker-compose.yml | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index be52c161..87276657 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,4 @@ +sudo: required language: node_js node_js: - "8.11.1" @@ -10,3 +11,13 @@ before_install: - docker-compose up -d - docker ps -a +before_script: +# Install dependencies in the app container +- docker-compose exec -T app composer self-update +- docker-compose exec -T app composer install --no-interaction +- docker-compose exec -T app composer dump-autoload -o + +script: +# Run unit tests in the app container +- docker-compose exec -T app npm run test --verbose + diff --git a/docker-compose.yml b/docker-compose.yml index 203fa5c8..fa865432 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,8 +15,8 @@ services: context: . dockerfile: Dockerfile target: production - env_file: - - .env + # env_file: + # - .env environment: - MONGO_URL=mongodb://mongo:27017/p5js-web-editor # - API_URL=https://localhost/api