2018-08-27 17:39:13 +02:00
|
|
|
jobs:
|
2018-08-01 13:02:56 +02:00
|
|
|
include:
|
2018-08-27 17:39:13 +02:00
|
|
|
- stage: "Test"
|
|
|
|
name: "Lint"
|
|
|
|
language: node_js
|
2018-12-13 19:50:43 +02:00
|
|
|
before_install:
|
|
|
|
- sudo apt-get install -y xmlstarlet
|
2018-08-27 17:39:13 +02:00
|
|
|
node_js: 8
|
2018-08-01 13:02:56 +02:00
|
|
|
script:
|
2018-12-13 19:50:43 +02:00
|
|
|
- xmlstarlet validate --well-formed icons/*.svg
|
2018-08-01 13:02:56 +02:00
|
|
|
- npm run jsonlint
|
2018-08-16 11:33:32 +02:00
|
|
|
- npm run svglint
|
2018-08-27 17:39:13 +02:00
|
|
|
- name: "Build website"
|
|
|
|
language: ruby
|
|
|
|
rvm: 2.4.1
|
|
|
|
install:
|
|
|
|
- gem install jekyll
|
|
|
|
script:
|
|
|
|
- jekyll build
|
2018-09-09 21:58:53 +02:00
|
|
|
- name: "Test package"
|
|
|
|
language: node_js
|
|
|
|
node_js: 8
|
|
|
|
script:
|
|
|
|
- npm run test
|
2017-09-11 21:56:40 +02:00
|
|
|
|
2018-08-27 17:39:13 +02:00
|
|
|
- stage: deploy
|
|
|
|
name: "NPM Package"
|
|
|
|
language: node_js
|
|
|
|
node_js: 8
|
|
|
|
if: branch = master
|
2017-09-19 15:09:16 +02:00
|
|
|
|
2018-08-01 13:02:56 +02:00
|
|
|
deploy:
|
|
|
|
provider: npm
|
|
|
|
email: "johanringmann@gmail.com"
|
|
|
|
api_key: "$NPM_KEY"
|
|
|
|
on:
|
|
|
|
branch: master
|
|
|
|
|
2018-08-27 17:39:13 +02:00
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
on_success: never
|
|
|
|
on_failure: change
|