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