From a92554fa85c5325d21195e0ad08566d04bd46643 Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Mon, 26 Sep 2022 23:34:17 +0200 Subject: [PATCH] Update yarn syntax in pipelines --- bitbucket-pipelines.yml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index db4f5e3b..e73bb3fc 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -25,8 +25,8 @@ definitions: caches: - clientmodules script: - - npm install --prefix client - - yarn run lint --prefix client + - yarn --cwd client + - yarn --cwd client run lint - &unittest-python name: run python unit tests caches: @@ -52,14 +52,14 @@ definitions: script: - echo "This pipeline rules!" - *setup-tests - - yarn install --frozen-lockfile --prefix client - - yarn run "install:cypress" --prefix client + - yarn --cwd client install --frozen-lockfile + - yarn --cwd client run "install:cypress" - psql -U $DATABASE_USER -h $DATABASE_HOST -c "create database $DATABASE_NAME" - python server/manage.py dummy_data - python server/manage.py runserver 2>&1 > /dev/null & - - yarn run build --prefix client + - yarn --cwd client run build - curl http://localhost:8000/beta-login - - yarn run --prefix client test:cypress:e2e + - yarn --cwd client run - &frontend-test name: run cypress frontend tests caches: @@ -71,12 +71,12 @@ definitions: - client/cypress/**/*.png - client/cypress/**/*.mp4 script: - - yarn install --frozen-lockfile --prefix client - - yarn run "install:cypress" --prefix client - - yarn run dev --prefix client 2>&1 > /dev/null & + - yarn --cwd client install --frozen-lockfile + - yarn --cwd client run "install:cypress" + - yarn --cwd client run dev 2>&1 > /dev/null & - sleep 30 - curl http://localhost:8080/beta-login - - yarn run --prefix client test:cypress:frontend + - yarn --cwd client run test:cypress:frontend - &frontend-test-parallel name: run cypress frontend tests caches: @@ -88,9 +88,9 @@ definitions: - client/cypress/**/*.png - client/cypress/**/*.mp4 script: - - yarn install --frozen-lockfile --prefix client - - yarn run "install:cypress" --prefix client - - yarn run dev --prefix client 2>&1 > /dev/null & + - yarn --cwd client install --frozen-lockfile + - yarn --cwd client run "install:cypress" + - yarn --cwd client run dev 2>&1 > /dev/null & - sleep 30 - curl http://localhost:8080/beta-login - source bin/run-cypress-parallel.sh @@ -102,7 +102,7 @@ definitions: script: - echo "This pipeline rules!" - *setup-tests - - npm install --prefix client + - yarn --cwd client install - cd client - yarn run test:unit - &deploy-dev