mirror of
https://github.com/Mibew/simple-icons.git
synced 2024-11-18 11:24:17 +03:00
9cee719fcb
* Check outlying precision while running linter * Prevent reduce error on empty array * Rebase on branch develop * Add svgpath dep * Improve decimal precision verification * Check outlying precision while running linter * Prevent reduce error on empty array * Fix ignored file * Fix reverted dep version * Check decimal according to review proposal * Pin svgpath version * Use te maximum precision only * Run linter again * Fix uglify-js version * Add supported engines to package.json * Improve message * Revert engines and use version check in linter * Move function * Update node version to 12 in Travis * Add skip ignored
72 lines
1.5 KiB
YAML
72 lines
1.5 KiB
YAML
os: linux
|
|
|
|
jobs:
|
|
include:
|
|
- stage: "Test"
|
|
name: "Lint"
|
|
language: node_js
|
|
node_js: 12
|
|
git:
|
|
depth: 1
|
|
script:
|
|
- npm run jsonlint
|
|
- npm run svglint
|
|
- npm run wslint
|
|
- npm run our-lint
|
|
- name: "Build website"
|
|
language: ruby
|
|
rvm: 2.5.3
|
|
git:
|
|
depth: 1
|
|
cache:
|
|
directories:
|
|
- /home/travis/.rvm/
|
|
install:
|
|
- gem install jekyll
|
|
script:
|
|
- jekyll build
|
|
- name: "Test package"
|
|
language: node_js
|
|
node_js: 12
|
|
git:
|
|
depth: 1
|
|
script:
|
|
- npm run test
|
|
|
|
- stage: "Deploy"
|
|
name: "Git tag"
|
|
language: shell
|
|
git:
|
|
depth: 1
|
|
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
|
|
token: "$GITHUB_TOKEN"
|
|
cleanup: false
|
|
- name: "NPM Package"
|
|
language: node_js
|
|
node_js: 12
|
|
git:
|
|
depth: 1
|
|
if: branch = master
|
|
|
|
deploy:
|
|
edge: true
|
|
provider: npm
|
|
email: "$NPM_EMAIL"
|
|
api_token: "$NPM_KEY"
|
|
cleanup: false
|
|
on:
|
|
branch: master
|
|
|
|
notifications:
|
|
email:
|
|
on_success: never
|
|
on_failure: change
|