|
@@ -1,44 +0,0 @@
|
|
|
-# .travis.yml
|
|
|
-
|
|
|
-
|
|
|
-language: minimal
|
|
|
-sudo: required
|
|
|
-services:
|
|
|
- - docker
|
|
|
-
|
|
|
-env:
|
|
|
- global:
|
|
|
- - COMPOSE_PROJECT_NAME=musare
|
|
|
- - BACKEND_HOST=127.0.0.1
|
|
|
- - BACKEND_PORT=8080
|
|
|
- - FRONTEND_HOST=127.0.0.1
|
|
|
- - FRONTEND_PORT=80
|
|
|
- - FRONTEND_MODE=dev
|
|
|
- - MONGO_HOST=127.0.0.1
|
|
|
- - MONGO_PORT=27017
|
|
|
- - MONGO_ROOT_PASSWORD=PASSWORD_HERE
|
|
|
- - MONGO_USER_USERNAME=musare
|
|
|
- - MONGO_USER_PASSWORD=OTHER_PASSWORD_HERE
|
|
|
- - REDIS_HOST=127.0.0.1
|
|
|
- - REDIS_PORT=6379
|
|
|
- - REDIS_PASSWORD=PASSWORD
|
|
|
-
|
|
|
-before_install:
|
|
|
- # create config files from template
|
|
|
- - cp backend/config/template.json backend/config/default.json
|
|
|
- - cp frontend/dist/config/template.json frontend/dist/config/default.json
|
|
|
-
|
|
|
-jobs:
|
|
|
- include:
|
|
|
- - stage: frontend
|
|
|
- script:
|
|
|
- - docker-compose build frontend # build frontend
|
|
|
- - docker-compose up -d frontend # start frontend
|
|
|
- - docker-compose exec frontend /bin/bash -c "cd app && npm run lint" # using eslint to check for formatting/linting issues
|
|
|
- - stage: backend # This will eventually be used for proper unit tests etc.
|
|
|
- script:
|
|
|
- - docker-compose up -d mongo # start mongo (users automatically setup)
|
|
|
- - docker-compose up -d redis # start redis
|
|
|
- - docker-compose build backend # build backend
|
|
|
- - docker-compose up -d backend # start backend
|
|
|
- # - docker-compose exec backend /bin/bash -c "npx eslint app/logic" # using eslint to check for formatting/linting issues
|