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
Eric Cornelissen e6485072d2 Test the NPM package (#972)
* Implement basic test for the NPM package

Just an initial test suite that checks if all promised imports actually 
exist. The testing framework Jest was chosen because of it ease of setup 
and use.

* Implement exhaustive tests of properties for each icon
2018-09-09 21:58:53 +02:00

44 lines
847 B
YAML

jobs:
include:
- stage: "Test"
name: "Lint"
language: node_js
node_js: 8
script:
- npm run jsonlint
- npm run svglint
- 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
before_script:
- npm run prepublishOnly
script:
- npm run test
after_script:
- npm run postpublish
- stage: deploy
name: "NPM Package"
language: node_js
node_js: 8
if: branch = master
deploy:
provider: npm
email: "johanringmann@gmail.com"
api_key: "$NPM_KEY"
on:
branch: master
notifications:
email:
on_success: never
on_failure: change