I try to run tests by drone locally, using drone exec
.
I use Windows 10 and Docker Toolbox.
I added the exe to path and I can run it:
$ drone -v
drone version 1.0.4
But when I try to do exec
, I receive this error:
PS F:\Gorrion\Projekty\loughs_elicensing> drone exec
2019/01/16 14:30:06 Error response from daemon: invalid mount config for type "bind": invalid mount path: 'F:/Gorrion/Projekty/loughs_elicensing' mount path must be absolute
I’ve tried both mingw and powershell, default and absolute path - no luck:
Michal@MAJKEL MINGW64 /f/Gorrion/Projekty/loughs_elicensing (elic-17-testing-environment)
$ drone exec /f/Gorrion/Projekty/loughs_elicensing/.drone.yml
2019/01/16 14:31:23 Error response from daemon: invalid mount config for type "bind": invalid mount path: 'F:/Gorrion/Projekty/loughs_elicensing' mount path must be absolute
Looks like the problem is with drone CLI and wrong generated volumes mount syntax.
EDIT: The v0.8.6
runs, but it prints new error in runtime:
[test-server:L3:85s] npm ERR! path ../typescript/bin/tsserver
[test-server:L4:85s] npm ERR! code EROFS
[test-server:L5:85s] npm ERR! errno -30
[test-server:L6:85s] npm ERR! syscall symlink
[test-server:L7:85s] npm ERR! rofs EROFS: read-only file system, symlink '../typescript/bin/tsserver' -> '/drone/src/server/node_modules/.bin/tsserver'
[test-server:L8:85s] npm ERR! rofs Often virtualized file systems, or other file systems
[test-server:L9:85s] npm ERR! rofs that don't support symlinks, give this error.
[test-server:L10:85s]
[test-server:L11:85s] npm ERR! A complete log of this run can be found in:
[test-server:L12:85s] npm ERR! /root/.npm/_logs/2019-01-16T14_39_07_394Z-debug.log
2019/01/16 15:39:08 drone_step_0 : exit code 226
My .drone.yml:
pipeline:
test-server:
image: node:10.14.2-alpine
commands:
- cd ./server/
- npm ci
- npm run verify
- sleep 10 # wait for database
- npm run test:ci
environment:
- DB_HOST=database
- DB_PORT=5432
- DB_USERNAME=postgres
# - DB_PASSWORD=qwerty
- DB_NAME=test
test-public-site:
image: node:10.14.2-alpine
commands:
- cd ./clients/public/
- npm ci
- npm run verify
- npm run test
environment:
- CI=true
services:
database:
image: postgres:11.1-alpine
detach: true
ports:
- "5432:5432"
environment:
- POSTGRES_USER=postgres
# - POSTGRES_PASSWORD=qwerty
- POSTGRES_DB=test