Skip to content
This repository has been archived by the owner on Dec 7, 2020. It is now read-only.

Commit

Permalink
tests: pinning example application dependencies
Browse files Browse the repository at this point in the history
* Pins `invenio-i18n` package version and NPM `node-sass`, `clean-css` package
  versions for the example application to work again.

Signed-off-by: Tibor Simko <tibor.simko@cern.ch>
  • Loading branch information
tiborsimko committed Feb 14, 2017
1 parent b04bcad commit ae6f580
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions examples/app.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2016 CERN.
# Copyright (C) 2016, 2017 CERN.
#
# Invenio is free software; you can redistribute it
# and/or modify it under the terms of the GNU General Public License as
Expand Down Expand Up @@ -62,7 +62,7 @@
cd static
npm install
cd ..
npm install -g node-sass clean-css requirejs uglify-js
npm install -g node-sass@3.8.0 clean-css@3.4.24 requirejs uglify-js
5. Collect static files and build bundles
Expand Down
3 changes: 2 additions & 1 deletion examples/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2016 CERN.
# Copyright (C) 2016, 2017 CERN.
#
# Invenio is free software; you can redistribute it
# and/or modify it under the terms of the GNU General Public License as
Expand All @@ -24,5 +24,6 @@

-e ..[all]
invenio-assets>=1.0.0a4,<1.1
invenio-i18n==1.0.0b1
invenio-pidstore>=1.0.0a7,<1.1
invenio-theme>=1.0.0a9,<1.1
5 changes: 3 additions & 2 deletions tests/test_example_app.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2016 CERN.
# Copyright (C) 2016, 2017 CERN.
#
# Invenio is free software; you can redistribute it
# and/or modify it under the terms of the GNU General Public License as
Expand Down Expand Up @@ -72,7 +72,8 @@ def test_example_app():
# Download javascript and css libraries
for cmd in ['FLASK_APP=app.py flask npm',
'cd static && npm install && cd ..',
'npm install -g node-sass clean-css requirejs uglify-js',
'npm install -g node-sass@3.8.0 clean-css@3.4.24'
' requirejs uglify-js',
'FLASK_APP=app.py flask collect -v',
'FLASK_APP=app.py flask assets build']:
exit_status = subprocess.call(cmd, shell=True)
Expand Down

0 comments on commit ae6f580

Please sign in to comment.