---
sudo: required
dist: xenial

script:
    - cp client/.env{.example,}
    - cp server/.env{.example,}
    - docker-compose up --build

after_script:
    - docker-compose down

---
sudo: required
dist: xenial

script:
    - echo 'VUE_APP_HOSTNAME=http://server:3000/api' > client/.env
    - docker-compose build
    - docker-compose up -d
    - docker exec $(docker container ls -f name=client -q) npm audit
    - docker exec $(docker container ls -f name=server -q) npm audit

after_script:
    - docker-compose down

Add npm audit before image build
ci: Add npm audit before image build

Signed-off-by: Mohamed Ismail BENNANI <46edf9705a1fce9b9cc78de084550124292840fa@gmail.com>
