2020-02-07 11:51:57 +03:00
|
|
|
os: linux
|
|
|
|
|
2018-08-27 18:39:13 +03:00
|
|
|
jobs:
|
2018-08-01 14:02:56 +03:00
|
|
|
include:
|
2018-08-27 18:39:13 +03:00
|
|
|
- stage: "Test"
|
|
|
|
name: "Lint"
|
|
|
|
language: node_js
|
2020-11-19 23:49:49 +03:00
|
|
|
node_js: 12
|
2020-11-12 23:58:20 +03:00
|
|
|
git:
|
|
|
|
depth: 1
|
2018-08-01 14:02:56 +03:00
|
|
|
script:
|
|
|
|
- npm run jsonlint
|
2018-08-16 12:33:32 +03:00
|
|
|
- npm run svglint
|
2019-04-17 12:59:44 +03:00
|
|
|
- npm run wslint
|
2020-01-16 13:40:46 +03:00
|
|
|
- npm run our-lint
|
2018-08-27 18:39:13 +03:00
|
|
|
- name: "Build website"
|
|
|
|
language: ruby
|
2020-11-12 23:58:20 +03:00
|
|
|
rvm: 2.5.3
|
|
|
|
git:
|
|
|
|
depth: 1
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- /home/travis/.rvm/
|
2018-08-27 18:39:13 +03:00
|
|
|
install:
|
|
|
|
- gem install jekyll
|
|
|
|
script:
|
|
|
|
- jekyll build
|
2018-09-09 22:58:53 +03:00
|
|
|
- name: "Test package"
|
|
|
|
language: node_js
|
2020-11-19 23:49:49 +03:00
|
|
|
node_js: 12
|
2020-11-12 23:58:20 +03:00
|
|
|
git:
|
|
|
|
depth: 1
|
2018-09-09 22:58:53 +03:00
|
|
|
script:
|
|
|
|
- npm run test
|
2017-09-11 22:56:40 +03:00
|
|
|
|
2020-11-12 23:58:20 +03:00
|
|
|
- stage: "Deploy"
|
2019-08-15 14:16:28 +03:00
|
|
|
name: "Git tag"
|
2020-02-07 11:51:57 +03:00
|
|
|
language: shell
|
2020-11-12 23:58:20 +03:00
|
|
|
git:
|
|
|
|
depth: 1
|
2019-08-15 14:16:28 +03: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
|
2020-02-07 11:51:57 +03:00
|
|
|
token: "$GITHUB_TOKEN"
|
2020-11-12 23:58:20 +03:00
|
|
|
cleanup: false
|
2019-08-15 14:16:28 +03:00
|
|
|
- name: "NPM Package"
|
2018-08-27 18:39:13 +03:00
|
|
|
language: node_js
|
2020-11-19 23:49:49 +03:00
|
|
|
node_js: 12
|
2020-11-12 23:58:20 +03:00
|
|
|
git:
|
|
|
|
depth: 1
|
2018-08-27 18:39:13 +03:00
|
|
|
if: branch = master
|
2017-09-19 16:09:16 +03:00
|
|
|
|
2018-08-01 14:02:56 +03:00
|
|
|
deploy:
|
2020-02-07 11:51:57 +03:00
|
|
|
edge: true
|
2018-08-01 14:02:56 +03:00
|
|
|
provider: npm
|
2020-02-06 13:36:09 +03:00
|
|
|
email: "$NPM_EMAIL"
|
2020-02-07 11:51:57 +03:00
|
|
|
api_token: "$NPM_KEY"
|
2020-11-12 23:58:20 +03:00
|
|
|
cleanup: false
|
2018-08-01 14:02:56 +03:00
|
|
|
on:
|
|
|
|
branch: master
|
|
|
|
|
2018-08-27 18:39:13 +03:00
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
on_success: never
|
|
|
|
on_failure: change
|