Skip to content

Commit cae2b51

Browse files
committed
fix: issue with lib folder not being published due to travis CI not
running compile task beforehand
1 parent 6f91e24 commit cae2b51

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

.travis.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,22 @@ notifications:
55
on_success: change
66
on_failure: always
77
before_script:
8-
- npm prune
9-
script:
10-
- npm run build:prod
11-
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then npm run test; fi
8+
- npm prune
129
jobs:
1310
include:
1411
- stage: build
1512
script:
16-
- npm run build:prod
17-
- stage: test
18-
script:
19-
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then npm run test; fi
13+
- if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then npm run lint; npm run compile; npm run build:prod; npm run test:unit; fi
14+
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then npm run lint; npm run test; fi
2015
- stage: deploy
16+
script: skip # skip re-running tests
2117
deploy:
2218
on:
2319
branch: master
2420
provider: script
2521
skip_cleanup: true
2622
script:
27-
npx semantic-release
28-
branches:
29-
except:
30-
- "/^v\\d+\\.\\d+\\.\\d+$/"
23+
if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then npm run build:prod; npm run compile; npx semantic-release; fi
3124
addons:
3225
browserstack:
3326
username:

0 commit comments

Comments
 (0)