simple-icons/.travis.yml
Eric Cornelissen e414adecc9 Update the travis build to work in stages (#948)
* Update the travis build to work in stages

* Intentional "Build website" error

* Intentional "Lint" error

* Restore CI test errors

* Conditional deplay stage, only on master

So PRs targetting develop don't run an empty stage.

Related Travis Documentation:
https://docs.travis-ci.com/user/conditional-builds-stages-jobs/
2018-08-27 17:39:13 +02:00

35 lines
638 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
- 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