Update yarn syntax in pipelines

This commit is contained in:
Ramon Wenger 2022-09-26 23:34:17 +02:00
parent 54aa8a421b
commit a92554fa85
1 changed files with 14 additions and 14 deletions

View File

@ -25,8 +25,8 @@ definitions:
caches: caches:
- clientmodules - clientmodules
script: script:
- npm install --prefix client - yarn --cwd client
- yarn run lint --prefix client - yarn --cwd client run lint
- &unittest-python - &unittest-python
name: run python unit tests name: run python unit tests
caches: caches:
@ -52,14 +52,14 @@ definitions:
script: script:
- echo "This pipeline rules!" - echo "This pipeline rules!"
- *setup-tests - *setup-tests
- yarn install --frozen-lockfile --prefix client - yarn --cwd client install --frozen-lockfile
- yarn run "install:cypress" --prefix client - yarn --cwd client run "install:cypress"
- psql -U $DATABASE_USER -h $DATABASE_HOST -c "create database $DATABASE_NAME" - psql -U $DATABASE_USER -h $DATABASE_HOST -c "create database $DATABASE_NAME"
- python server/manage.py dummy_data - python server/manage.py dummy_data
- python server/manage.py runserver 2>&1 > /dev/null & - 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 - curl http://localhost:8000/beta-login
- yarn run --prefix client test:cypress:e2e - yarn --cwd client run
- &frontend-test - &frontend-test
name: run cypress frontend tests name: run cypress frontend tests
caches: caches:
@ -71,12 +71,12 @@ definitions:
- client/cypress/**/*.png - client/cypress/**/*.png
- client/cypress/**/*.mp4 - client/cypress/**/*.mp4
script: script:
- yarn install --frozen-lockfile --prefix client - yarn --cwd client install --frozen-lockfile
- yarn run "install:cypress" --prefix client - yarn --cwd client run "install:cypress"
- yarn run dev --prefix client 2>&1 > /dev/null & - yarn --cwd client run dev 2>&1 > /dev/null &
- sleep 30 - sleep 30
- curl http://localhost:8080/beta-login - curl http://localhost:8080/beta-login
- yarn run --prefix client test:cypress:frontend - yarn --cwd client run test:cypress:frontend
- &frontend-test-parallel - &frontend-test-parallel
name: run cypress frontend tests name: run cypress frontend tests
caches: caches:
@ -88,9 +88,9 @@ definitions:
- client/cypress/**/*.png - client/cypress/**/*.png
- client/cypress/**/*.mp4 - client/cypress/**/*.mp4
script: script:
- yarn install --frozen-lockfile --prefix client - yarn --cwd client install --frozen-lockfile
- yarn run "install:cypress" --prefix client - yarn --cwd client run "install:cypress"
- yarn run dev --prefix client 2>&1 > /dev/null & - yarn --cwd client run dev 2>&1 > /dev/null &
- sleep 30 - sleep 30
- curl http://localhost:8080/beta-login - curl http://localhost:8080/beta-login
- source bin/run-cypress-parallel.sh - source bin/run-cypress-parallel.sh
@ -102,7 +102,7 @@ definitions:
script: script:
- echo "This pipeline rules!" - echo "This pipeline rules!"
- *setup-tests - *setup-tests
- npm install --prefix client - yarn --cwd client install
- cd client - cd client
- yarn run test:unit - yarn run test:unit
- &deploy-dev - &deploy-dev