Browse Source

chore(CI): stages are seperate entities, no point building containers

Signed-off-by: Jonathan <theflametrooper@gmail.com>
Jonathan 5 years ago
parent
commit
071ddd979d
1 changed files with 4 additions and 6 deletions
  1. 4 6
      .travis.yml

+ 4 - 6
.travis.yml

@@ -28,16 +28,14 @@ before_install:
 jobs:
   include:
     - stage: general
-      script:
-        - docker-compose build
     - stage: frontend
       script:
-        - docker-compose up -d frontend # start frontend
+        - docker-compose up --build --detach frontend # build and start frontend
         - docker-compose -p tests run frontend yarn lint # using eslint to check for formatting/linting issues
         - docker-compose -p tests run frontend snyk test --dev # scan for dependency/dev. dependency vunerabilities
     - stage: backend
       script:
-        - docker compose up -d mongo # start mongo (users automatically setup)
-        - docker-compose up -d mongoclient redis # start mongoclient and redis
-        - docker-compose up -d backend # start backend
+        - docker compose up --detach mongo # start mongo (users automatically setup)
+        - docker-compose up --detach mongoclient redis # start mongoclient and redis
+        - docker-compose up --build --detach backend # build and start backend
         - docker-compose -p tests run backend snyk test --dev # scan for dependency/dev. dependency vunerabilities