-
-
Notifications
You must be signed in to change notification settings - Fork 54
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (33 loc) · 1.05 KB
/
Makefile
File metadata and controls
39 lines (33 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
MAKEFLAGS += --warn-undefined-variables
SHELL := /bin/bash
.EXPORT_ALL_VARIABLES:
.ONESHELL:
.SHELLFLAGS := -eu -o pipefail -c
.SILENT:
PHP_VERSION := 8.3
UID := $(shell id -u)
GID := $(shell id -g)
.PHONY: functional-test
functional-test: ##@ Run functional tests
Build/Scripts/runTests.sh -x -p ${PHP_VERSION} -d sqlite -s functional Tests/Functional
.PHONY: install-build
install-build: ##@ Composer install
echo "Installed build tools started"
Build/Scripts/runTests.sh -p ${PHP_VERSION} -s composerInstall;
echo "Installed build tools finished"
.PHONY: cleanup
cleanup:
echo "Cleanup started"
Build/Scripts/runTests.sh -s clean
Build/Scripts/additionalTests.sh -s clean
echo "Cleanup finished"
.PHONY: npm-update
npm-update:
echo "Npm update started"
docker run --rm -it -u $(UID):$(GID) -v "${PWD}:/app" -w /app node npm --prefix ./Build update
echo "Npm update finished"
.PHONY: npm-build
npm-build:
echo "Npm build started"
docker run --rm -it -u $(UID):$(GID) -v "${PWD}:/app" -w /app node npm run --prefix ./Build build
echo "Npm build finished"