1
0
mirror of https://github.com/simple-icons/simple-icons.git synced 2024-11-16 00:59:07 +02:00
simple-icons/.travis.yml

55 lines
1.2 KiB
YAML
Raw Normal View History

jobs:
include:
- stage: "Test"
name: "Lint"
language: node_js
node_js: 8
script:
- npm run jsonlint
- npm run svglint
- npm run wslint
- name: "Build website"
language: ruby
rvm: 2.4.1
install:
- gem install jekyll
script:
- jekyll build
- name: "Test package"
language: node_js
node_js: 8
script:
- npm run test
- stage: deploy
name: "Git tag"
2019-08-25 22:06:08 +02:00
language: minimal
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"
language: node_js
node_js: 8
if: branch = master
2017-09-19 15:09:16 +02:00
deploy:
provider: npm
skip_cleanup: true
email: "johanringmann@gmail.com"
api_key: "$NPM_KEY"
on:
branch: master
notifications:
email:
on_success: never
on_failure: change