From 2c94e6914a47cb563519ac4c6dc7dac938fbf816 Mon Sep 17 00:00:00 2001 From: Boris Kubiak Date: Wed, 10 Jan 2018 20:10:33 +0100 Subject: [PATCH] Try Travis CI deployment --- .gitignore | 60 ++-------------------------------------------- .travis.yml | 12 ++++++++-- css/stylesheet.css | 1 - index.html | 2 +- js/bundle.js | 1 - package.json | 2 -- 6 files changed, 13 insertions(+), 65 deletions(-) delete mode 100644 css/stylesheet.css delete mode 100644 js/bundle.js diff --git a/.gitignore b/.gitignore index 00cbbdf..1f50abf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,59 +1,3 @@ -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* - -# Runtime data -pids -*.pid -*.seed -*.pid.lock - -# Directory for instrumented libs generated by jscoverage/JSCover -lib-cov - -# Coverage directory used by tools like istanbul -coverage - -# nyc test coverage -.nyc_output - -# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) -.grunt - -# Bower dependency directory (https://bower.io/) -bower_components - -# node-waf configuration -.lock-wscript - -# Compiled binary addons (http://nodejs.org/api/addons.html) -build/Release - -# Dependency directories node_modules/ -jspm_packages/ - -# Typescript v1 declaration files -typings/ - -# Optional npm cache directory -.npm - -# Optional eslint cache -.eslintcache - -# Optional REPL history -.node_repl_history - -# Output of 'npm pack' -*.tgz - -# Yarn Integrity file -.yarn-integrity - -# dotenv environment variables file -.env - +js/bundle.js +css/stylesheet.css \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 27f9ff4..7a111ff 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,5 +2,13 @@ language: node_js node_js: - "node" -before_script: - - npm install +install: npm i + +script: npm test + +after_success: npm run-script build + +deploy: + provider: pages + skip-cleanup: true + github-token: $TOKEN \ No newline at end of file diff --git a/css/stylesheet.css b/css/stylesheet.css deleted file mode 100644 index 8d6da1f..0000000 --- a/css/stylesheet.css +++ /dev/null @@ -1 +0,0 @@ -body{padding:0;font-family:Lato,sans-serif;background:#000;margin:8em 0}h1,h2,h3,h4,h5,h6,label,p{margin:0}[v-cloak]{display:none}.header{margin-bottom:8em;color:#fff;font-family:Montserrat,sans-serif}.header h1{font-size:3em;font-weight:700;border:4px solid #fff;width:33%;margin:0 auto;padding:10px}.header p{font-size:1.5em;letter-spacing:2px;font-weight:400;margin-top:1em}.panel{padding:1.5em 3em;background-color:#191919;margin-top:2em;color:#fff;font-weight:400}.panel.error{background-color:#ec4a41}.panel.error a,.panel.error a:hover,.panel.error a:visited{color:#fff;text-decoration:underline}.description p{margin:15px 0 20px;color:#888}.form input[type=text]{width:100%;color:#fff;background:#2d2c2c;outline:0;font-size:1.3em;padding:.5em;border:none;margin-bottom:10px;-webkit-appearance:none}.form input[type=button]{border:none;outline:0;color:#fff;padding:.6em;font-size:1.3em;font-weight:500;margin:1.3em 0 0 0;cursor:pointer;-webkit-appearance:none;background:#198a88;width:100%}.form input[type=button]:hover{background:#d78716}.form input[type=button]:disabled{background:#2d2c2c;cursor:auto}.form .error-text{display:none;font-size:.85em;color:#ec4a41}.form .error input[type=text]{border:1px solid #ec4a41}.form .error .error-text{display:block}.form .check{margin:.5em 0}.checkbox{margin-bottom:4px;padding-left:30px;line-height:27px;cursor:pointer;position:relative;font-size:1.2em;color:#fff;font-weight:400}.checkbox:last-child{margin-bottom:0}.checkbox i{position:absolute;bottom:4px;left:17.5em;display:block;width:19px;height:19px;outline:0;border:1px solid #97a2a8}.checkbox i.left{position:absolute;bottom:4px;left:0;display:block;width:19px;height:19px;outline:0;border:1px solid #97a2a8}.checkbox input{position:absolute;left:-9999px}.checkbox input+i:after{content:'';background:url(../images/tick-mark.png) no-repeat 1px 2px;top:4px;left:2px;width:15px;height:15px;font:normal 12px/16px FontAwesome;text-align:center;position:absolute;opacity:0}.checkbox input:checked+i:after{opacity:1}.threads{font-size:1.2em}.threads h4{display:inline}.threads input[type=button].square-btn{display:inline-block;width:24px;height:24px;margin:0 5px 0 0;padding:0;line-height:1em}.result>div:not(:last-child),.statistics>div:not(:last-child){margin-bottom:15px}.statistics{padding-bottom:3.2em}.statistics>div:not(.percentage){clear:both}.probability{width:85%;margin:5px 0;height:18px;background:#2d2c2c;float:left}.probability-bar{height:100%;width:0;display:block;background-color:#d78716}.percentage{float:right;width:15%;text-align:center;position:relative;top:-10px;left:15px}.percentage div{font-size:.75em}.percentage h5{color:#fff;font-weight:500}.output{font-family:monospace;font-size:1.2em;color:#888;margin-left:15px;word-break:break-all}@media screen and (max-width:1280px){.header h1{font-size:2.8em;width:35%}}@media screen and (max-width:1024px){.header h1{font-size:2.5em;border:3px solid #fff;width:34%}.header p{font-size:1.4em;margin-top:.8em}body{margin:7em 0 5em 0}.header{margin-bottom:4em}}@media screen and (max-width:768px){.header h1{width:43%}}@media screen and (max-width:640px){.header h1{width:46%;font-size:2.2em;padding:8px}.header p{font-size:1.3em;margin-top:.7em}body{margin:5em 0 4em 0}.header{margin-bottom:4em}}@media screen and (max-width:480px){.header h1{width:65%;font-size:2em;padding:7px;border:2px solid #fff}.header p{font-size:1.2em}}@media screen and (max-width:320px){.header h1{width:73%;font-size:1.6em;padding:6px}.header p{font-size:1em}} \ No newline at end of file diff --git a/index.html b/index.html index 1eaf59b..b4b6bb8 100644 --- a/index.html +++ b/index.html @@ -66,7 +66,7 @@ Your browser does not support multi-thread computation. Please use a different browser.