-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
61 lines (49 loc) · 1.39 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
SHELL := /bin/bash
all: clean prepare install test fixup test apply run
git-init :
git init .
echo "node_modules" > .gitignore
git add .
git commit -m "Initial Commit"
prepare :
expect -f scripts/wdio-setup
install : prepare
@rm -rf package-lock.json
@echo -n "Installing additional dependencies ... "
@yarn add -D \
@wdio/local-runner@latest \
@wdio/cucumber-framework@latest \
@wdio/spec-reporter@latest \
ts-node@latest \
typescript@latest \
prettier@latest \
prettier-quick@latest
@echo "DONE"
test :
yarn wdio
run :
yarn test:acceptance:desktop
yarn test:acceptance:desktop --cucumberOpts.tags="@swaglab-app"
yarn test:acceptance:mobile
yarn test:acceptance:desktop:ci
version :
@echo `cat package.json |grep cli|grep -Po '[\d.]+' `
fixup :
@python3 -m venv scripts/.pyvenv
source scripts/.pyvenv/bin/activate
@python -m scripts.packagejson-fixup
@python -m scripts.tsconfig-fixup
@echo "Fixup package.json ... DONE"
@echo "Fixup tsconfig.json ... DONE"
yarn
@cp .assets/login.page.ts features/pageobjects/login.page.ts
@cp .assets/secure.page.ts features/pageobjects/secure.page.ts
@cp .assets/steps.ts features/step-definitions/steps.ts
apply :
@rm -rf features/*
@cp -r .assets/test test/
.PHONY: clean
clean :
rm -rf package.json package-lock.json node_modules/ \
features/ babel.config.js tsconfig.json wdio.conf.* \
yarn.lock