From 9cbc3316683aa125d36a663851b8afeab6e61126 Mon Sep 17 00:00:00 2001 From: Levi Olson Date: Mon, 30 Apr 2018 12:45:33 -0500 Subject: [PATCH] code cov --- .gitlab-ci.yml | 6 ----- README.html | 61 ++++++++++++++++++++++++++++++++++++++++++++ README.md | 3 +++ coverage/app.js.html | 2 +- coverage/index.html | 2 +- 5 files changed, 66 insertions(+), 8 deletions(-) create mode 100644 README.html diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ef28b3e..198ff1c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,12 +7,6 @@ cache: paths: - node_modules/ -test_async: - script: - - npm install - - npm install --global mocha - - npm run test - test_coverage: script: - npm install diff --git a/README.html b/README.html new file mode 100644 index 0000000..a7a4898 --- /dev/null +++ b/README.html @@ -0,0 +1,61 @@ + + + + + + + + + + + +

pipeline status +coverage report

+

How does this work

+

This file is intended to help you remember the thing you made way back then...

+

Instructions

+
    +
  1. +

    Create your html file and put it in /posts

    +
  2. +
  3. +

    Then create the meta file for it of the same name but using the ext .json. This file should look like:

    +
     {
    +     "title": "Something Decent - Levi Olson",
    +     "permalink": "/posts/something-decent",
    +     "created_at": "2018-04-27T17:05:19-06:00",
    +     "created_at_short": "2018-04-27",
    +     "post_title": "the start of something... decent",
    +     "active": "posts",
    +     "content_file": "something-decent.html",
    +     "categories" : ["misc", "programming", "js", "etc..."]
    + }
    +
    +
  4. +
  5. +

    Commit, Push and Pull.

    +
  6. +
+

Pull from Digital Ocean

+
    +
  1. SSH into server ssh root@45.55.44.195
  2. +
  3. Enter correct dir cd /home/forge/leviolson-website
  4. +
  5. Pull in changes git pull && npm i
  6. +
  7. Restart the service pm2 restart LeviOlson.com
  8. +
  9. Verify it restarted correctly pm2 logs LeviOlson.com
  10. +
+ + + \ No newline at end of file diff --git a/README.md b/README.md index 3675fe2..b0e28c2 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ +[![pipeline status](https://gitlab.com/olson.levi/website/badges/master/pipeline.svg)](https://gitlab.com/olson.levi/website/commits/master) +[![coverage report](https://gitlab.com/olson.levi/website/badges/master/coverage.svg)](https://gitlab.com/olson.levi/website/commits/master) + # How does this work _This file is intended to help you remember the thing you made way back then..._ diff --git a/coverage/app.js.html b/coverage/app.js.html index c4bd15a..7e7743d 100644 --- a/coverage/app.js.html +++ b/coverage/app.js.html @@ -304,7 +304,7 @@ module.exports = app diff --git a/coverage/index.html b/coverage/index.html index f4efc76..dcfd1b0 100644 --- a/coverage/index.html +++ b/coverage/index.html @@ -80,7 +80,7 @@