-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (33 loc) · 1.23 KB
/
Makefile
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
40
41
### Set the default target
.DEFAULT_GOAL := help
${HOME}/truststores/cacerts:
./scripts/buildtrust
.env:
echo "Please provide a valid .env file before running tests" && exit 127
checkPreconditions: .env ${HOME}/truststores/cacerts
.PHONY: checkPreconditions
### Use the headless chrome by default
test: testChromeHeadless
.PHONY: test
### Test with Chrome in headless versoin
testChromeHeadless: checkPreconditions
./gradlew chromeHeadlessTest --system-prop "javax.net.ssl.trustStore=${HOME}/truststores/cacerts" --system-prop "javax.net.ssl.trustStorePassword=changeit" --tests "org.ods.e2e.ODSSpec"
.PHONY: testChromeHeadless
### Test with Chrome in desktop version
testChrome: checkPreconditions
./gradlew chromeTest --tests "org.ods.e2e.ODSSpec"
.PHONY: testChrome
### Install generate artifact in the local maven repository
generateLocalLibrary:
./gradlew clean install
.PHONY: generateLocalLibrary
### Default goal, information
help:
@ echo 'Usage'
@ echo ' make <target>'
@ echo ''
@ echo 'Targets:'
@ echo ' make test : Using the Chrome Headless by default'
@ echo ' make testChrome : Chrome displaying the browser '
@ echo ' make testChromeHeadless : Chrome without displaying the browser'
.PHONY: help