Commit 0b82ff51 authored by Nick Freear's avatar Nick Freear

Bug #10, extend `gitlab-ci` YAML; add badge to README [iet:8994834]

parent 97fb46d7
Pipeline #21307512 failed with stages
in 3 minutes and 26 seconds
# .gitlab-ci.yml
# SEE: https://gitlab.com/gitlab-examples/nodejs/blob/master/.gitlab-ci.yml
# SEE: https://gitlab.com/nfreear/gaad-widget/-/ci/lint
# https://gitlab.com/gitlab-examples/nodejs/blob/master/.gitlab-ci.yml
# https://gist.github.com/thornbill/b4f44ac81106fd539d5f493a269bf25b
# https://gitlab.com/nfreear/gaad-widget/settings/ci_cd
# https://hub.docker.com/r/library/node/tags/
image: node:6
variables:
GIT_DEPTH: 8
cache:
paths:
- node_modules/
stages:
- install
- build
- test
- pa11y-ci
- release
install 1:
before_script:
- node -v
- npm -v
stage: install
script: npm install
build 1:
stage: build
script: npm run build
job 1:
test 1:
stage: test
script:
- node -v
- npm -v
- npm install
- npm run build
- npm test
script: npm test
accessibility test 1:
stage: pa11y-ci
script: npm run serve-ci & sleep 5; npm run pa11y-ci
after_script:
- nvm --version
# tags:
# - docker
- npm run ps
- npm run kill-server
- nvm --version
release 1:
stage: release
script: echo Hello!
artifacts:
untracked: true
paths:
- dist/*
- data/*
# only:
# - tags
# End.
{
"//": "Automated accessibility testing ~ https://github.com/pa11y/pa11y-ci",
"#": "Automated accessibility testing ~ https://github.com/pa11y/pa11y-ci",
"defaults": {
"screenCapture": "pa11y-screen-capture.png",
"screenCapture": "./_pa11y-screen-capture.png",
"standard": "WCAG2AAA",
"timeout": 5000,
"wait": 2000,
......
......@@ -20,6 +20,7 @@
* Initial Spanish translation, #4;
* Automated accessibility testing, via [pa11y-ci][] and `live-server`, #9;
* Adopt `lessc` to build a LESS stylesheet;
* Added [GitLab CI][] integration;
* Google Analytics via `node-analytics-ga`, can be disabled (see [README][]).
## Version 3.1.0 (Beta)
......@@ -79,6 +80,7 @@
[@srinivasu..]: http://srinivasu.org/
[arrow]: http://xahlee.info/comp/unicode_arrows.html#!-U-2913
"U+2913: DOWNWARDS ARROW TO BAR — ⤓"
[gitlab ci]: https://gitlab.com/nfreear/gaad-widget/pipelines "GitLab CI"
[travis]: https://travis-ci.org/nfreear/gaad-widget
[travis-icon]: https://api.travis-ci.org/nfreear/gaad-widget.svg
......
[![Build status — Travis-CI][travis-icon]][travis]
[![GitLab pipeline status][gitlab-icon]][gitlab]
[![js-semistandard-style][semi-icon]][semi]
[![GAAD-widget on Npmjs][npm-icon]][npm]
[![License][license-icon]][mit]
......@@ -47,7 +48,7 @@ Via [unpkg][] - [browse][] - production CDN:
```html
<div id="id-gaad-widget"></div>
<script src="https://unpkg.com/gaad-widget@3.2.0#._.js"></script>
<script src="https://unpkg.com/gaad-widget@^3#"></script>
```
Via [RawGit][] - production CDN:
......@@ -170,6 +171,9 @@ _See the related [isad-widget][]._
"Automated accessibility testing - via 'pa11y-ci'"
[pa11y-icon]: https://img.shields.io/badge/accessibility-pa11y--ci-blue.svg
[wcag-icon]: https://img.shields.io/badge/accessibility-WCAG_2.0_AAA-green.svg
[gitlab-icon]: https://gitlab.com/nfreear/gaad-widget/badges/3.x/pipeline.svg
[gitlab-co]: https://gitlab.com/nfreear/gaad-widget/commits/3.x
[gitlab]: https://gitlab.com/nfreear/gaad-widget/pipelines "GitLab pipeline status"
[isad-widget]: https://github.com/nfreear/isad-widget
"banner-link for International Stuttering Awareness Day (ISAD)"
......
......@@ -9,6 +9,7 @@
"main": "index.js",
"author": "Nick Freear {@nfreear}",
"repository": "https://github.com/nfreear/gaad-widget.git",
"x-repository-alt": "https://gitlab.com/nfreear/gaad-widget",
"bugs": "https://github.com/nfreear/gaad-widget/issues",
"homepage": "https://nick.freear.org.uk/2017/05/14/gaad-widget.html?utm_source=npm",
"dependencies": {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment