-
Notifications
You must be signed in to change notification settings - Fork 24
/
Makefile
35 lines (34 loc) · 1.16 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
git_version = $$(git branch 2>/dev/null | sed -e '/^[^*]/d'-e's/* \(.*\)/\1/')
npm_bin= $$(npm bin)
all: test-pc-browser
install:
npm install
test-pc-browser: server
mvn -s settings.xml clean install -Dmaven.test.skip=true
mvn -s settings.xml test -Dtest=DesktopSampleTest
travis-pc-browser: install server
npm install macaca-electron --save-dev
${npm_bin}/macaca doctor
sleep 10s
mvn -s settings.xml clean install -Dmaven.test.skip=true
mvn -s settings.xml test -Dtest=DesktopSampleTest
travis-android: install server
npm install macaca-android --save-dev
${npm_bin}/macaca doctor
sleep 10s
mvn -s settings.xml clean install -Dmaven.test.skip=true
mvn -s settings.xml test -Dtest=AndroidSampleTest
travis-ios: install server
npm install macaca-ios --save-dev
${npm_bin}/macaca doctor
mvn -s settings.xml clean install -Dmaven.test.skip=true
mvn -s settings.xml test -Dtest=IosSampleTest
travis-android-browser: install server
npm install macaca-android --save-dev
${npm_bin}/macaca doctor
mvn -s settings.xml clean install -Dmaven.test.skip=true
mvn -s settings.xml test -Dtest=H5SampleTest
server:
${npm_bin}/macaca server --verbose &
sleep 10s
.PHONY: test