2021-09-16 17:16:51 +02:00
|
|
|
run-integration-tests:
|
|
|
|
@echo "Start OpenSlides Dev"
|
|
|
|
make run-dev ARGS="-d"
|
|
|
|
@echo "Start integration tests"
|
|
|
|
make cypress-docker
|
|
|
|
docker-compose -f integration/docker-compose.yml up
|
|
|
|
@echo "Stop OpenSlides Dev"
|
|
|
|
make stop-dev
|
2020-02-13 10:01:33 +01:00
|
|
|
|
|
|
|
run-service-tests:
|
|
|
|
git submodule foreach 'make run-tests'
|
|
|
|
|
|
|
|
build-dev:
|
|
|
|
git submodule foreach 'make build-dev'
|
2021-03-15 14:17:07 +01:00
|
|
|
make -C proxy build-dev
|
2020-02-13 10:01:33 +01:00
|
|
|
|
|
|
|
run-dev: | build-dev
|
2021-09-16 17:16:51 +02:00
|
|
|
docker-compose -f docker/docker-compose.dev.yml up $(ARGS)
|
2020-06-10 13:58:26 +02:00
|
|
|
|
2020-06-19 08:56:20 +02:00
|
|
|
stop-dev:
|
2021-08-06 11:14:30 +02:00
|
|
|
docker-compose -f docker/docker-compose.dev.yml down --volumes --remove-orphans
|
2020-06-19 08:56:20 +02:00
|
|
|
|
2020-06-10 13:58:26 +02:00
|
|
|
copy-node-modules:
|
2020-10-05 10:43:43 +02:00
|
|
|
docker-compose -f docker/docker-compose.dev.yml exec client bash -c "cp -r /app/node_modules/ /app/src/"
|
2020-06-10 13:58:26 +02:00
|
|
|
mv openslides-client/client/src/node_modules/ openslides-client/client/
|
2020-02-13 10:01:33 +01:00
|
|
|
|
2021-03-15 14:17:07 +01:00
|
|
|
reload-proxy:
|
|
|
|
docker-compose -f docker/docker-compose.dev.yml exec -w /etc/caddy proxy caddy reload
|
|
|
|
|
|
|
|
services-to-master:
|
|
|
|
# Note: This script updates all submodules to upstream/master[1]. For setting the submodules to the linked
|
|
|
|
# commits use `git submodule update`. The `upstream` remote must be set up correctly to point to the main repo.
|
|
|
|
#
|
|
|
|
# [1] ...or main, or whatever branch the OS4 one is. See .gitmodules.
|
|
|
|
git submodule foreach -q --recursive 'git checkout $(git config -f $$toplevel/.gitmodules submodule.$$name.branch || echo master); git pull upstream $$(git config -f $$toplevel/.gitmodules submodule.$$name.branch || echo master)'
|
2021-09-16 17:16:51 +02:00
|
|
|
|
2021-11-17 23:32:40 +01:00
|
|
|
submodules-origin-to-upstream:
|
|
|
|
# You may only use this one time after cloning this repository.
|
|
|
|
# Will set the upstream remote to "origin"
|
|
|
|
git submodule foreach -q --recursive 'git remote rename origin upstream'
|
|
|
|
|
2021-09-16 17:16:51 +02:00
|
|
|
cypress-open:
|
|
|
|
cd integration; npm run cypress:open
|
|
|
|
|
|
|
|
cypress-run:
|
|
|
|
cd integration; npm run cypress:run
|
|
|
|
|
|
|
|
cypress-docker:
|
|
|
|
docker-compose -f integration/docker-compose.yml build
|
|
|
|
docker-compose -f integration/docker-compose.yml up
|