Commit 7fc3c602 authored by Stéphane Veyret's avatar Stéphane Veyret

Improve CI

parent 96c58ed7
Pipeline #4773 failed with stages
in 14 minutes and 48 seconds
......@@ -4,29 +4,15 @@ stages:
before_script:
- yarn
- mkdir -p packages/{clients/web,core/{client,plugin,server,shared},locales/{eo,fr}/{client,shared,plugin},plugins/{barter,basesys,mutcredit,nedb}}/dist
- yarn lerna link
- npx lerna exec -- mkdir -p dist/
- npx lerna link
build:
stage: build
tags:
- duniter
script:
- yarn --cwd packages/core/shared/ build
- yarn --cwd packages/core/plugin/ build
- yarn --cwd packages/plugins/nedb/ build
- yarn --cwd packages/plugins/basesys/ build
- yarn --cwd packages/plugins/barter/ build
- yarn --cwd packages/plugins/mutcredit/ build
- yarn --cwd packages/core/client/ build
- yarn --cwd packages/clients/web/ build
- yarn --cwd packages/core/server/ build
- yarn --cwd packages/locales/fr/shared/ build
- yarn --cwd packages/locales/fr/client/ build
- yarn --cwd packages/locales/fr/plugin/ build
- yarn --cwd packages/locales/eo/shared/ build
- yarn --cwd packages/locales/eo/client/ build
- yarn --cwd packages/locales/eo/plugin/ build
- npx lerna run build
artifacts:
paths:
- packages/clients/*/dist
......@@ -42,7 +28,7 @@ test:
dependencies:
- build
script:
- yarn lerna exec yarn test
- npx lerna run --parallel test
- rm -rf .nyc_output && mkdir .nyc_output
- cp packages/{clients/web,core/{client,plugin,server,shared},locales/{eo,fr}/{client,shared,plugin},plugins/{barter,basesys,mutcredit,nedb}}/.nyc_output/* .nyc_output/
- yarn nyc report --reporter=text-summary
- PROJECT_ROOT=${PWD} npx lerna exec -- cp .nyc_output/* ${PROJECT_ROOT}/.nyc_output/
- npx nyc report --reporter=text-summary
......@@ -7,9 +7,6 @@
"packages/**"
]
},
"scripts": {
"lerna": "lerna"
},
"keywords": [
"gecogvidanto",
"geconomicus",
......@@ -18,7 +15,8 @@
"author": "Stéphane Veyret",
"license": "GPL-3.0+",
"devDependencies": {
"lerna": "3.10.7"
"lerna": "3.10.7",
"nyc": "13.1.0"
},
"resolutions": {
"@types/react": "16.8.4"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment