|
|
@@ -1,5 +1,5 @@
|
|
1
|
1
|
# These targets are not files
|
|
2
|
|
-.PHONY: contribute ci test i18n
|
|
|
2
|
+.PHONY: contribute ci test i18n lint travis
|
|
3
|
3
|
|
|
4
|
4
|
install:
|
|
5
|
5
|
python setup.py develop
|
|
|
@@ -16,16 +16,18 @@ sandbox: install
|
|
16
|
16
|
sites/sandbox/manage.py loaddata countries.json sites/_fixtures/pages.json sites/_fixtures/auth.json
|
|
17
|
17
|
sites/sandbox/manage.py rebuild_index --noinput
|
|
18
|
18
|
|
|
19
|
|
-ci:
|
|
|
19
|
+test:
|
|
|
20
|
+ ./runtests.py tests/
|
|
|
21
|
+
|
|
|
22
|
+ci: install lint
|
|
20
|
23
|
# Run continous tests and generate lint reports
|
|
21
|
|
- python setup.py develop
|
|
22
|
|
- pip install -r requirements.txt
|
|
23
|
24
|
./runtests.py --with-coverage --with-xunit
|
|
24
|
25
|
coverage xml
|
|
25
|
|
- flake8 --ignore=W292,E202 oscar | perl -ple "s/: /: [E] /" | grep -v migrations > violations.txt
|
|
26
|
26
|
|
|
27
|
|
-test:
|
|
28
|
|
- ./runtests.py
|
|
|
27
|
+lint:
|
|
|
28
|
+ ./lint.sh
|
|
|
29
|
+
|
|
|
30
|
+travis: install test lint
|
|
29
|
31
|
|
|
30
|
32
|
i18n:
|
|
31
|
33
|
# Create the .po files used for i18n
|