-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
62 lines (51 loc) · 2.61 KB
/
Makefile
File metadata and controls
62 lines (51 loc) · 2.61 KB
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
# CING makefile
# gv June 10, 2008
# jfd 2011-06-17
#
#all: clean install cython sloccount pylint nose test
all: install cython sloccount pylint nose test
clean:
@echo "Cleaning up CING installation"
-/bin/rm -f cing.csh
install:
@echo "==> Installing CING setup script ..."
-/bin/rm -f cing.csh
python python/cing/setupCing.py -tcsh
cython:
@echo "==> Building CING cython dependencies ..."
-/bin/rm -f python/cing/Libs/cython/superpose.so
-/bin/rm -f python/cing/Libs/cython/superpose.c
cd python/cing/Libs/cython; python compile.py build_ext --inplace
# Using nose instead.
#test:
# python -u python/cing/main.py --testQ -c 1
sloccount:
-/bin/rm -f sloccount.sc
-sloccount --duplicates --wide --details python src > sloccount.sc
pylint:
# CING will run pylint on individual files as not to exceed open file limit.
-cd python; python -u cing/main.py --doPylint pylint.txt
# Next fails in recursion with old version of pylint 0.20.0 but works fine with version 0.23.0
pylint_old:
-/bin/rm -f python/pylint.txt
-cd python; pylint --rcfile ../.pylintrc --report=no cing.core > pylint.txt || exit 0
-cd python; pylint --rcfile ../.pylintrc --report=no cing.Database >> pylint.txt || exit 0
-cd python; pylint --rcfile ../.pylintrc --report=no cing.Libs >> pylint.txt || exit 0
-cd python; pylint --rcfile ../.pylintrc --report=no cing.NRG >> pylint.txt || exit 0
-cd python; pylint --rcfile ../.pylintrc --report=no cing.PluginCode >> pylint.txt || exit 0
-cd python; pylint --rcfile ../.pylintrc --report=no cing.Scripts >> pylint.txt || exit 0
-cd python; pylint --rcfile ../.pylintrc --report=no cing.Talos >> pylint.txt || exit 0
# Next fails with old version of nosetest 0.10.4 but works fine with version 1.0.0
nose:
# Write the .coverage and nosetest.xml
# Uses .coveragerc
-/bin/rm -f nosetests.xml coverage.xml .coverage
nosetests --with-xunit --with-coverage --verbose --cover-package=cing --where=python/cing
# Convert .coverage to coverage.xml.
#Needs Coverage.py, version 3.4+. http://nedbatchelder.com/code/coverage
coverage xml
test:
@echo "This test -does- need to succeed for the make to be successful."
@echo "It will only use one core so the output is easier to read and the Jenkins scheduler doesn't overload a slave."
# That's why there is no minus character at the beginning of this command.
python -u python/cing/main.py --testQ -c 1