Skip to content

Commit

Permalink
fix(travis): update travis config
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasmenker committed Dec 9, 2019
1 parent 288a14a commit 5828936
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 8 deletions.
22 changes: 16 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
language: node_js

# Blocklist
branches:
except:
- gh-pages # will be deployed to, no need to build it

before_install:
- npm install -g npm
- npm --version || echo npm not installed
Expand All @@ -14,8 +9,8 @@ before_install:
stages:
- build
- test
- pages
- release
- deploy

jobs:
include:
Expand All @@ -27,6 +22,21 @@ jobs:
- '8'
script:
- npm run build

# Job: Storybooks
- stage: pages
before_script:
- travis_retry npm install
node_js:
- 'lts/*'
- '10'
- '8'
deploy:
provider: script
skip_cleanup: true
script:
- npm run build-storybook

# Job: Test
- stage: test
node_js:
Expand Down
18 changes: 16 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"build:development": "npm run clean-build && webpack --mode development",
"build:icons": "node scripts/buildIconConfig.js",
"build": "npm run build:icons && npm run clean-build && webpack --mode production",
"build-storybook": "build-storybook -c src/.storybook",
"build-storybook": "build-storybook -c src/.storybook -o docs",
"storybook": "npm run build:icons && start-storybook -p 9999 -c src/.storybook --docs",
"prettier": "prettier --write 'src/{,**/{,*.}}*.js'",
"eslint": "eslint . --ext .js,.jsx --ignore-path .gitignore",
Expand All @@ -27,7 +27,21 @@
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/npm",
"@semantic-release/github",
[
"@semantic-release/github",
{
"assets": [
{
"path": "dist/main.css",
"label": "CSS distribution"
},
{
"path": "dist/main.bundle.js",
"label": "JS distribution"
}
]
}
],
"@semantic-release/changelog",
[
"@semantic-release/git",
Expand Down

0 comments on commit 5828936

Please sign in to comment.