Skip to content

adding travis integration #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Apr 23, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
language: node_js

node_js:
- "7"

env:
- CXX=g++-4.8

addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8

branches:
only:
- master

before_script:
- npm install -g firebase-tools

script:
- cd functions && npm install && cd ../

after_success:
- firebase deploy --token $FIREBASE_TOKEN

notifications:
email:
on_failure: change
on_success: change
4 changes: 2 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function compile(watch) {
var opts = conf();
var bundler = watchify(browserify(opts).transform([babel,es2015]));
function rebundle() {
bundler.bundle()
return bundler.bundle()
.on('error', function(err) {
console.error(err);
this.emit('end');
Expand All @@ -49,7 +49,7 @@ function compile(watch) {
console.log('done bundling.');
});
}
rebundle();
return rebundle();
}

function watch() {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
"description": "practice javascript",
"main": "index.js",
"scripts": {
"test": "xo && ava",
"test": "",
"build": "./node_modules/.bin/gulp build",
"watch": "./node_modules/.bin/gulp watch",
"precommit": "lint-staged"
},
"author": "Jakob Anderson",
"license": "UNLICENSED",
"lint-staged": {
"src/**/*.js": [
"src/*": [
"prettier --single-quote true --trailing-comma es5 --useTabs false --parser babylon --tabWidth 2 --bracketSpacing true --write",
"git add"
]
Expand Down
2 changes: 1 addition & 1 deletion public/dist/js/bundle.min.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@
config.shuffle = config.shuffle === true ? false : true;
shuffleProblemsButtonEl.classList.toggle('active');
updateLocalstore(config);

}

function loadProblem(problemObj) {
Expand Down