-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (26 loc) · 846 Bytes
/
Copy pathMakefile
File metadata and controls
34 lines (26 loc) · 846 Bytes
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
############################################################
# Makefile for the regression tests that are run on travis
############################################################
ROOT = .
IMG_NAME=simulatortofmu_master
COMMAND_RUN=docker run \
--name simulatortofmu \
--detach=false \
-e DISPLAY=${DISPLAY} \
-v /tmp/.X11-unix:/tmp/.X11-unix \
--rm \
-v `pwd`:/mnt/shared \
-i \
-t \
${IMG_NAME} /bin/bash -c
build:
docker build --no-cache --rm -t ${IMG_NAME} .
remove-image:
docker rmi -f ${IMG_NAME}
run:
$(COMMAND_RUN) \
"cd ~/git/simulatortofmu/SimulatorToFMU/simulatortofmu/bin && jm_python.sh runUnitTest.py"
test-documentation:
(cd $(ROOT)/simulatortofmu/doc/userGuide && make dist)
test-jmodelica:
(cd $(ROOT)/ && make build run remove-image)