Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
ecommerce
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
ecommerce
Commits
e7efcbb9
Commit
e7efcbb9
authored
Oct 20, 2015
by
Clinton Blackburn
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #398 from edx/clintonb/makefile-update
Updated Makefile for easier testing
parents
db6774fb
574c9e7f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
7 deletions
+13
-7
.travis.yml
+5
-2
Makefile
+8
-5
No files found.
.travis.yml
View file @
e7efcbb9
...
...
@@ -17,6 +17,7 @@ addons:
before_install
:
-
"
export
DISPLAY=:99.0"
-
"
sh
-e
/etc/init.d/xvfb
start"
-
"
export
DJANGO_SETTINGS_MODULE=ecommerce.settings.test"
install
:
-
pip install -U codecov
-
pip install -U pip wheel
...
...
@@ -29,8 +30,10 @@ script:
-
cd ..
# Compile assets and run validation
-
make static -e DJANGO_SETTINGS_MODULE="ecommerce.settings.test"
-
make validate
-
make clean_static
-
make static
-
make validate_python
-
make validate_js
branches
:
only
:
-
master
...
...
Makefile
View file @
e7efcbb9
...
...
@@ -22,6 +22,8 @@ help:
@
echo
' make fake_translations install fake translations '
@
echo
' make pull_translations pull translations from Transifex '
@
echo
' make update_translations install new translations from Transifex '
@
echo
' make clean_static delete compiled/compressed static assets'
@
echo
' make static compile and compress static assets'
@
echo
' '
requirements.js
:
...
...
@@ -40,7 +42,10 @@ serve:
clean
:
find
.
-name
'*.pyc'
-delete
coverage erase
rm
-rf
assets/ ecommerce/static/build coverage htmlcov
rm
-rf
coverage htmlcov
clean_static
:
rm
-rf
assets/ ecommerce/static/build
validate_js
:
rm
-rf
coverage
...
...
@@ -49,14 +54,12 @@ validate_js:
$(NODE_BIN)
/gulp jscs
validate_python
:
clean
python manage.py compress
--settings
=
ecommerce.settings.test
-v0
REUSE_DB
=
1 coverage run
--branch
--source
=
ecommerce ./manage.py
test
ecommerce
\
--settings
=
ecommerce.settings.test
--with-ignore-docstrings
--logging-level
=
DEBUG
coverage report
make quality
fast_validate_python
:
clean
python manage.py compress
--settings
=
ecommerce.settings.test
-v0
REUSE_DB
=
1
DISABLE_ACCEPTANCE_TESTS
=
True ./manage.py
test
ecommerce
\
--settings
=
ecommerce.settings.test
--processes
=
4
--with-ignore-docstrings
--logging-level
=
DEBUG
make quality
...
...
@@ -70,7 +73,7 @@ validate: validate_python validate_js
static
:
$(NODE_BIN)
/r.js
-o
build.js
python manage.py collectstatic
--noinput
-v0
python manage.py compress
-v0
python manage.py compress
-v0
--force
html_coverage
:
coverage html
&&
open htmlcov/index.html
...
...
@@ -97,4 +100,4 @@ update_translations: pull_translations fake_translations
# Targets in a Makefile which do not produce an output file with the same name as the target name
.PHONY
:
help requirements migrate serve clean validate_python quality validate_js validate html_coverage accept
\
extract_translations dummy_translations compile_translations fake_translations pull_translations
\
update_translations fast_validate_python
update_translations fast_validate_python
clean_static
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment