mirror of
https://github.com/Mibew/simple-icons.git
synced 2025-01-18 08:01:08 +03:00
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/
This commit is contained in:
parent
57e66ef99a
commit
e414adecc9
44
.travis.yml
44
.travis.yml
@ -1,17 +1,25 @@
|
|||||||
matrix:
|
jobs:
|
||||||
include:
|
include:
|
||||||
- language: node_js
|
- stage: "Test"
|
||||||
node_js:
|
name: "Lint"
|
||||||
- "8"
|
language: node_js
|
||||||
|
node_js: 8
|
||||||
script:
|
script:
|
||||||
- npm run jsonlint
|
- npm run jsonlint
|
||||||
- npm run svglint
|
- npm run svglint
|
||||||
|
- name: "Build website"
|
||||||
|
language: ruby
|
||||||
|
rvm: 2.4.1
|
||||||
|
install:
|
||||||
|
- gem install jekyll
|
||||||
|
script:
|
||||||
|
- jekyll build
|
||||||
|
|
||||||
notifications:
|
- stage: deploy
|
||||||
email:
|
name: "NPM Package"
|
||||||
on_success: never
|
language: node_js
|
||||||
on_failure: change
|
node_js: 8
|
||||||
|
if: branch = master
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
provider: npm
|
provider: npm
|
||||||
@ -20,17 +28,7 @@ matrix:
|
|||||||
on:
|
on:
|
||||||
branch: master
|
branch: master
|
||||||
|
|
||||||
- language: ruby
|
notifications:
|
||||||
rvm:
|
email:
|
||||||
- 2.4.1
|
on_success: never
|
||||||
|
on_failure: change
|
||||||
install:
|
|
||||||
- gem install jekyll
|
|
||||||
|
|
||||||
script:
|
|
||||||
- jekyll build
|
|
||||||
|
|
||||||
notifications:
|
|
||||||
email:
|
|
||||||
on_success: never
|
|
||||||
on_failure: change
|
|
||||||
|
Loading…
Reference in New Issue
Block a user