From 1b9cd15e06a0cdebff5be680acd7474506d4029e Mon Sep 17 00:00:00 2001 From: saw-jan Date: Wed, 25 Aug 2021 17:23:48 +0545 Subject: [PATCH] add drone config --- .drone.yml | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..0eafa5d --- /dev/null +++ b/.drone.yml @@ -0,0 +1,47 @@ +--- +kind: pipeline +type: docker +name: webUITest + +platform: + os: linux + arch: amd64 + +steps: + - name: start-planka + image: node + commands: + - npm ci + - npm run server:db:init + - npm start + - until curl -s http://localhost:3000; do sleep 5; done + - until curl -s http://localhost:1337; do sleep 5; done + + - name: ui-tests + image: node + commands: + - cd client + - npm ci + - npm run test:webui tests/acceptance/features + +services: + - name: postgres + image: postgres + volumes: + - name: data-path + path: /var/lib/postgresql/data + environment: + POSTGRES_DB: planka + POSTGRES_HOST_AUTH_METHOD: trust + + - name: selenium + image: selenium/standalone-chrome-debug + +volumes: + - name: data-path + host: + path: /var/lib/postgresql/data + +trigger: + branch: + - master