2018-08-27 15:39:13 +00:00
|
|
|
jobs:
|
2018-08-01 11:02:56 +00:00
|
|
|
include:
|
2018-08-27 15:39:13 +00:00
|
|
|
- stage: "Test"
|
|
|
|
name: "Lint"
|
|
|
|
language: node_js
|
|
|
|
node_js: 8
|
2018-08-01 11:02:56 +00:00
|
|
|
script:
|
|
|
|
- npm run jsonlint
|
2018-08-16 09:33:32 +00:00
|
|
|
- npm run svglint
|
2019-04-17 09:59:44 +00:00
|
|
|
- npm run wslint
|
2018-08-27 15:39:13 +00:00
|
|
|
- name: "Build website"
|
|
|
|
language: ruby
|
|
|
|
rvm: 2.4.1
|
|
|
|
install:
|
|
|
|
- gem install jekyll
|
|
|
|
script:
|
|
|
|
- jekyll build
|
2018-09-09 19:58:53 +00:00
|
|
|
- name: "Test package"
|
|
|
|
language: node_js
|
|
|
|
node_js: 8
|
|
|
|
script:
|
|
|
|
- npm run test
|
2017-09-11 19:56:40 +00:00
|
|
|
|
2018-08-27 15:39:13 +00:00
|
|
|
- stage: deploy
|
2019-08-15 11:16:28 +00:00
|
|
|
name: "Git tag"
|
2019-08-25 20:06:08 +00:00
|
|
|
language: minimal
|
2019-08-15 11:16:28 +00:00
|
|
|
if: branch = master
|
|
|
|
|
|
|
|
before_deploy:
|
|
|
|
- git config --local user.name "$GITHUB_USERNAME"
|
|
|
|
- git config --local user.email "$GITHUB_EMAIL"
|
|
|
|
- export PACKAGE_VERSION=$(cat package.json | grep 'version' | sed 's/[ \",:]//g' | sed 's/version//')
|
|
|
|
- git tag $PACKAGE_VERSION
|
|
|
|
deploy:
|
|
|
|
provider: releases
|
|
|
|
api_key: "$GITHUB_TOKEN"
|
|
|
|
skip_cleanup: true
|
|
|
|
- name: "NPM Package"
|
2018-08-27 15:39:13 +00:00
|
|
|
language: node_js
|
|
|
|
node_js: 8
|
|
|
|
if: branch = master
|
2017-09-19 13:09:16 +00:00
|
|
|
|
2018-08-01 11:02:56 +00:00
|
|
|
deploy:
|
|
|
|
provider: npm
|
2019-07-23 06:01:11 +00:00
|
|
|
skip_cleanup: true
|
2018-08-01 11:02:56 +00:00
|
|
|
email: "johanringmann@gmail.com"
|
|
|
|
api_key: "$NPM_KEY"
|
|
|
|
on:
|
|
|
|
branch: master
|
|
|
|
|
2018-08-27 15:39:13 +00:00
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
on_success: never
|
|
|
|
on_failure: change
|