Skip to content

Commit

Permalink
Merge pull request #774 from starteam/jmclaus/fix-preview
Browse files Browse the repository at this point in the history
Fix tests
  • Loading branch information
jmclaus authored Sep 6, 2017
2 parents 19b0793 + 9423745 commit 343b74c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ before_script:
- ./chromedriver > /tmp/chromedriver.log 2> /tmp/chromedriver.err &
- pip install -r requirements.txt
- wget https://raw.githubusercontent.com/knadh/jqdialog/master/jqdialog.js -P html_app/js/
- cp node_modules/closure-templates/soyutils.js html_app/js/
- python html_app/build.py
- "./manage.py collectstatic --noinput"
install:
- pip install -r requirements.dev.txt
- npm install --prefix html_app
- npm install
script:
- "./manage.py test --liveserver=localhost:8100-8200 --verbosity=2"
addons:
Expand Down
1 change: 1 addition & 0 deletions html_app/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
videos/
# Downloaded on install by Ansible to meet TLO's requirements
js/jqdialog.js
js/soyutils.js
2 changes: 1 addition & 1 deletion html_app/package.json → package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "StarCellBio",
"dependencies": {
"clean-css": "~3.1.5",
"gulp-soy": "^1.0.1",
"closure-templates": "20130416.0.0",
"uglify-js": "~2.4.16"
},
"repository": {
Expand Down
7 changes: 6 additions & 1 deletion provision/ansible-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,12 @@
pip: requirements='/vagrant/requirements.dev.txt' virtualenv={{ venv_path }}

- name: Install node packages
npm: path=/vagrant/html_app
npm: path=/vagrant

- name: Install soyutils
shell: >
executable=/bin/bash
cp /vagrant/node_modules/closure-templates/soyutils.js /vagrant/html_app/js/
- name: Install jqDialog
get_url:
Expand Down
2 changes: 1 addition & 1 deletion static_assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ javascripts:
- js/jquery-1.7.2.min.js
- js/jquery.tinymce.min.js
- js/tinymce.min.js
- node_modules/gulp-soy/node_modules/closure-templates/soyutils.js
- js/soyutils.js
- starcellbio.app.js
- ../scb/get_user.js
- js/plugins/fullscreen/plugin.min.js
Expand Down

0 comments on commit 343b74c

Please sign in to comment.