simple-icons/.travis.yml
Eric Cornelissen 16f3bcea12 Fix deploy failure due to missing node_modules
The deploy script failed in the last build[1] due to a missing 
dependency. Skipping cleanup prevents the node_modules from being 
deleted and the build script form failing.

I encountered this exact problem with simple-icons-font[2][3][4] and 
this fixed it.

For now I manually releaesd v1.12.0[5].

---

1. https://travis-ci.com/simple-icons/simple-icons/jobs/218315055#L547
2. https://github.com/simple-icons/simple-icons-font/pull/15
3. https://github.com/simple-icons/simple-icons-font/pull/17
4. https://github.com/simple-icons/simple-icons-font/pull/18
5. https://github.com/simple-icons/simple-icons/pull/1549
2019-07-23 07:01:11 +01:00

42 lines
795 B
YAML

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: "NPM Package"
language: node_js
node_js: 8
if: branch = master
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