-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathMakefile
executable file
·96 lines (68 loc) · 1.86 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
workspaceFolder :=
gradlewScript :=
# https://gist.github.com/sighingnow/deee806603ec9274fd47
ifneq ($(OS),Windows_NT)
workspaceFolder = ./
gradlewScript = gradlew
else
gradlewScript = .\gradlew.bat
endif
#*****************
# Java code tasks
#*****************
java-dependencies:
${workspaceFolder}${gradlewScript} dependencies
java-build:
${workspaceFolder}${gradlewScript} build
java-test:
${workspaceFolder}${gradlewScript} test
java-clean:
${workspaceFolder}${gradlewScript} clean
java-test-coverage:
${workspaceFolder}${gradlewScript} test jacocoJupTestReport
java-code: java-dependencies java-clean java-test-coverage
#*****************
# C# code tasks
#*****************
csharp-xunit-tests:
python ${workspaceFolder}scripts/run_xunit_tests.py
csharp-code: csharp-xunit-tests
#*******************
# Python code tasks
#*******************
python-requirements:
python -m pip install -r requirements.txt
python-tests:
python ${workspaceFolder}scripts/run_unit_tests.py
python-test-coverage:
coverage run ${workspaceFolder}scripts/run_unit_tests.py
python-code: python-test-coverage
#*****************
# Project tasks
#*****************
get-problems-count:
python ${workspaceFolder}scripts/get_problems_count.py
#*****************
# Git tasks
#*****************
git-version:
git --version
git-upgrade-ubuntu:
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:git-core/ppa -y
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install git -y
git --version
git-submodules-setup:
git submodule sync --recursive
git submodule foreach --recursive git fetch
git submodule foreach git pull
git-get-submodules:
git submodule update --init --recursive --remote --rebase
#*****************
# All tasks
#*****************
git: git-version git-get-submodules
code: java-code python-code csharp-code
all: git get-problems-count code