Mise à jour de '.drone.yml'

Tests
Lucas DELANIER 2 years ago
parent 2e2f18ad49
commit e19eb577ab

@ -124,38 +124,3 @@ blocks:
- cache restore server-node-modules-$SEMAPHORE_GIT_BRANCH-$(checksum package-lock.json),server-node-modules-$SEMAPHORE_GIT_BRANCH,server-node-modules-master - cache restore server-node-modules-$SEMAPHORE_GIT_BRANCH-$(checksum package-lock.json),server-node-modules-$SEMAPHORE_GIT_BRANCH,server-node-modules-master
- npm test - npm test
- name: E2e Tests
task:
env_vars:
- name: NODE_ENV
value: test
- name: CI
value: 'true'
prologue:
commands:
- checkout
- nvm use
- node --version
- npm --version
# Start a Postgres database. On Semaphore, databases run in the same
# environment as your code.
# See https://docs.semaphoreci.com/ci-cd-environment/ubuntu-18.04-image/#databases-and-services
- sem-service start postgres
# With unrestricted sudo access, you can install any additional
# system package:
- sudo apt-get install -y libgtk2.0-0
jobs:
- name: Client Tests
commands:
- cd src/client
- cache restore client-node-modules-$SEMAPHORE_GIT_BRANCH-$(checksum package-lock.json),client-node-modules-$SEMAPHORE_GIT_BRANCH,client-node-modules-master
- npx cypress install
- npm run test:e2e
- name: Server Tests
commands:
- cd src/server
- cache restore server-node-modules-$SEMAPHORE_GIT_BRANCH-$(checksum package-lock.json),server-node-modules-$SEMAPHORE_GIT_BRANCH,server-node-modules-master
- cp ci.env .env
- cp ormconfig.ci.json ormconfig.json
- npm run migrate:up
- npm run test:e2e
Loading…
Cancel
Save