Skip to content

Commit 02c6cb5

Browse files
authored
Merge pull request #2 from yeutech-lab/dev
fix(ci): running npm run flow and allow failure
2 parents f6cc175 + 97127ac commit 02c6cb5

File tree

1 file changed

+1
-33
lines changed

1 file changed

+1
-33
lines changed

.travis.yml

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@ language: node_js
22
os: linux
33
dist: trusty
44

5-
# Blocklist
6-
branches:
7-
except:
8-
- gh-pages # will be deployed to, no need to build it
9-
105
cache:
116
directories:
127
- node_modules
@@ -29,7 +24,6 @@ stages:
2924
- build
3025
- test
3126
- release
32-
# - deploy
3327

3428
jobs:
3529
include:
@@ -38,22 +32,15 @@ jobs:
3832
- stage: build
3933
node_js:
4034
- 'lts/*'
41-
- '10'
42-
- '8'
4335
script:
4436
- npm run build
4537
# Job: Test
4638
- stage: test
4739
node_js:
4840
- 'lts/*'
49-
- '10'
50-
- '8'
51-
addons:
52-
sonarcloud:
53-
organization: $(echo $TRAVIS_REPO_SLUG | awk -F '/' '{print $1}')
5441
script:
5542
- npm run test -- --coverage --runInBand
56-
# - npm run flow (Disable reason: https://github.com/jamiebuilds/react-loadable/pull/216#issuecomment-566027008)
43+
- npm run flow || echo "Skipping npm run flow, see https://github.com/jamiebuilds/react-loadable/pull/216#issuecomment-566027008)"
5744

5845
# Job: Release
5946
- stage: release
@@ -62,22 +49,3 @@ jobs:
6249
- 'lts/*'
6350
script:
6451
- npx semantic-release
65-
66-
# # Job: Page
67-
# - stage: deploy
68-
# if: branch = master AND type = push AND fork = false
69-
# node_js:
70-
# - 'lts/*'
71-
# script:
72-
# - git fetch --tags
73-
# - git checkout refs/tags/$(git describe --tags `git rev-list --tags --max-count=1`)
74-
# - npm install
75-
# - chmod +x styleguide/prepare.sh
76-
# - styleguide/prepare.sh
77-
# - npm run styleguide:build
78-
# deploy:
79-
# - provider: pages
80-
# github_token: $GH_TOKEN # Set in the settings page of your repository, as a secure variable
81-
# keep_history: true
82-
# local_dir: public/
83-
#

0 commit comments

Comments
 (0)