Replace npm with yarn in pipelines
This commit is contained in:
parent
f0107b3d90
commit
af59175e5c
|
|
@ -27,7 +27,7 @@ definitions:
|
||||||
- clientmodules
|
- clientmodules
|
||||||
script:
|
script:
|
||||||
- npm install --prefix client
|
- npm install --prefix client
|
||||||
- npm run lint --prefix client
|
- yarn run lint --prefix client
|
||||||
- &unittest-python
|
- &unittest-python
|
||||||
name: run python unit tests
|
name: run python unit tests
|
||||||
caches:
|
caches:
|
||||||
|
|
@ -53,14 +53,14 @@ definitions:
|
||||||
script:
|
script:
|
||||||
- echo "This pipeline rules!"
|
- echo "This pipeline rules!"
|
||||||
- *setup-tests
|
- *setup-tests
|
||||||
- npm ci --prefix client
|
- yarn install --frozen-lockfile --prefix client
|
||||||
- npm run "install:cypress" --prefix client
|
- yarn run "install:cypress" --prefix client
|
||||||
- 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 &
|
||||||
- npm run build --prefix client
|
- yarn run build --prefix client
|
||||||
- curl http://localhost:8000/beta-login
|
- curl http://localhost:8000/beta-login
|
||||||
- npm run --prefix client test:cypress:e2e
|
- yarn run --prefix client test:cypress:e2e
|
||||||
- &frontend-test
|
- &frontend-test
|
||||||
name: run cypress frontend tests
|
name: run cypress frontend tests
|
||||||
caches:
|
caches:
|
||||||
|
|
@ -72,12 +72,12 @@ definitions:
|
||||||
- client/cypress/**/*.png
|
- client/cypress/**/*.png
|
||||||
- client/cypress/**/*.mp4
|
- client/cypress/**/*.mp4
|
||||||
script:
|
script:
|
||||||
- npm ci --prefix client
|
- yarn install --frozen-lockfile --prefix client
|
||||||
- npm run "install:cypress" --prefix client
|
- yarn run "install:cypress" --prefix client
|
||||||
- npm run dev --prefix client 2>&1 > /dev/null &
|
- yarn run dev --prefix client 2>&1 > /dev/null &
|
||||||
- sleep 30
|
- sleep 30
|
||||||
- curl http://localhost:8080/beta-login
|
- curl http://localhost:8080/beta-login
|
||||||
- npm run --prefix client test:cypress:frontend
|
- yarn run --prefix client test:cypress:frontend
|
||||||
- &frontend-test-parallel
|
- &frontend-test-parallel
|
||||||
name: run cypress frontend tests
|
name: run cypress frontend tests
|
||||||
caches:
|
caches:
|
||||||
|
|
@ -89,9 +89,9 @@ definitions:
|
||||||
- client/cypress/**/*.png
|
- client/cypress/**/*.png
|
||||||
- client/cypress/**/*.mp4
|
- client/cypress/**/*.mp4
|
||||||
script:
|
script:
|
||||||
- npm ci --prefix client
|
- yarn install --frozen-lockfile --prefix client
|
||||||
- npm run "install:cypress" --prefix client
|
- yarn run "install:cypress" --prefix client
|
||||||
- npm run dev --prefix client 2>&1 > /dev/null &
|
- yarn run dev --prefix client 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
|
||||||
|
|
@ -105,7 +105,7 @@ definitions:
|
||||||
- *setup-tests
|
- *setup-tests
|
||||||
- npm install --prefix client
|
- npm install --prefix client
|
||||||
- cd client
|
- cd client
|
||||||
- npm run test:unit
|
- yarn run test:unit
|
||||||
- &deploy-dev
|
- &deploy-dev
|
||||||
name: deploy to dev on Heroku
|
name: deploy to dev on Heroku
|
||||||
deployment: dev
|
deployment: dev
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue