Update yarn syntax in pipelines
This commit is contained in:
parent
54aa8a421b
commit
a92554fa85
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue