This repository has been archived by the owner on Jan 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix mapping of the spreadsheet tables * Added travis YAML * Added coveralls and icon to readme file * Added dependencies for coveralls * Install ruby on travis * Install sass on travis machine * Install latest ruby version for sass * Try to fix coveralls integration * Added coverage badge to readme * Fix review with jscs * Set deployment process on successful build
- Loading branch information
Showing
12 changed files
with
151 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
{ | ||
"preset": "google", | ||
"excludeFiles": ["app/public/**/*", "app/client//scripts/modernizr.min.js"] | ||
"excludeFiles": [ | ||
"app/public/**/*", | ||
"app/client//scripts/modernizr.min.js", | ||
"app/client/scripts/jquery.mmenu.all.min.js" | ||
], | ||
"requireCamelCaseOrUpperCaseIdentifiers": { | ||
"ignoreProperties": true | ||
}, | ||
"requireMultipleVarDecl": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
sudo: false | ||
language: node_js | ||
node_js: | ||
- '5' | ||
|
||
addons: | ||
ssh_known_hosts: | ||
- heroku.com | ||
|
||
before_install: | ||
- rvm install 2.3.1 | ||
- gem update --system | ||
- gem install sass | ||
- gem install compass | ||
|
||
install: | ||
- mkdir -p coverage | ||
- npm install | ||
|
||
#before_script: | ||
# - echo -e "Host heroku.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config | ||
# - echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config | ||
|
||
script: | ||
- npm run build | ||
- npm run review | ||
- npm run test | ||
|
||
after_script: | ||
- "node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- tests --recursive --reporter=xunit-file && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage" | ||
|
||
#after_success: | ||
# - rm app/public/.gitignore | ||
# - git add . && git commit -a -m 'added public' | ||
# - git push -f [email protected]:opentrials-ebola-tracker.git master | ||
|
||
before_deploy: | ||
- rm app/public/.gitignore | ||
|
||
deploy: | ||
provider: heroku | ||
app: opentrials-ebola-tracker | ||
api_key: 54632a2c-2498-4655-88af-19a0f233c4c7 | ||
skip_cleanup: true | ||
on: master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,47 @@ | ||
;(function($, undefined) { | ||
|
||
// scroll to achors | ||
$(function() { | ||
smoothScroll.init({ | ||
updateURL: false | ||
}); | ||
}); | ||
|
||
|
||
// mobile menu | ||
$(function() { | ||
var $menu = $('nav#menu'), | ||
$html = $('html, body'); | ||
|
||
$menu.mmenu({ | ||
extensions : [ "pageshadow" ], | ||
offCanvas : { | ||
position : "right", | ||
zposition : "front" | ||
} | ||
}); | ||
|
||
var API = $menu.data( "mmenu" ); | ||
API.setSelected( $menu.find( "li" ).first() ); | ||
|
||
var closer = null; | ||
var $menu = $('nav#menu'); | ||
var $html = $('html, body'); | ||
var closer = null; | ||
|
||
$menu.mmenu({ | ||
extensions: ['pageshadow'], offCanvas: { | ||
position: 'right', zposition: 'front' | ||
} | ||
}); | ||
|
||
$menu.find( 'a' ).on( 'click', function() { | ||
closer = $(this).attr( "href" ); | ||
}); | ||
// var API = $menu.data( "mmenu" ); | ||
// API.setSelected( $menu.find( "li" ).first() ); | ||
|
||
API.bind( "closed", function() { | ||
if ( closer ) { | ||
setTimeout( function() { | ||
$html.animate({ | ||
scrollTop: $(closer).offset().top | ||
}); | ||
closer = null; | ||
}, 25 ); | ||
} | ||
}); | ||
}); | ||
$menu.find('a').on('click', function() { | ||
closer = $(this).attr('href'); | ||
}); | ||
|
||
// API.bind( "closed", function() { | ||
// if ( closer ) { | ||
// setTimeout( function() { | ||
// $html.animate({ | ||
// scrollTop: $(closer).offset().top | ||
// }); | ||
// closer = null; | ||
// }, 25 ); | ||
// } | ||
// }); | ||
}); | ||
|
||
// cookie bar | ||
window.cookieconsent_options = {"message":"This site uses cookies. For more information, see our ","dismiss":"OK, Got it","learnMore":"Cookie policy.","link":"https://okfn.org/cookie-policy/"}; | ||
|
||
window.cookieconsent_options = { | ||
message: 'This site uses cookies. For more information, see our ', | ||
dismiss: 'OK, Got it', | ||
learnMore: 'Cookie policy.', | ||
link: 'https://okfn.org/cookie-policy/' | ||
}; | ||
})(jQuery); |
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.