Skip to content

Commit ed35c19

Browse files
committed
chore: update travis config
1 parent 00fc870 commit ed35c19

File tree

1 file changed

+29
-24
lines changed

1 file changed

+29
-24
lines changed

.travis.yml

+29-24
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,40 @@
11
language: node_js
2-
addons:
3-
chrome: stable
2+
node_js: 10
3+
44
cache:
55
yarn: true
66
sudo: required
77
dist: trusty
8+
9+
stages:
10+
- Tests
11+
- name: Release
12+
if: type = push and (branch = v2 or branch = master)
13+
814
jobs:
915
fail_fast: true
1016
include:
11-
- stage: CommitLint
12-
name: Conventional Commits
13-
node_js: 10
14-
script:
15-
- commitlint-travis
16-
- stage: Tests
17-
node_js: 10
18-
- node_js: 8
19-
- node_js: stable
17+
- stage: Tests
18+
name: Conventional Commits
19+
node_js: 10
20+
script:
21+
- commitlint-travis
22+
- name: Fixed Dependencies
23+
- name: Floating Dependencies
24+
install: yarn install --no-lockfile --non-interactive
25+
- node_js: 8
26+
- node_js: stable
27+
28+
- stage: Release
29+
name: Github Release
30+
script: yarn semantic-release
31+
2032
before_install:
21-
- curl -o- -L https://yarnpkg.com/install.sh | bash
22-
- export PATH=$HOME/.yarn/bin:$PATH
33+
- curl -o- -L https://yarnpkg.com/install.sh | bash
34+
- export PATH=$HOME/.yarn/bin:$PATH
35+
2336
install:
24-
- yarn install --no-lockfile --non-interactive
25-
before_script:
26-
- sudo chmod 4755 /opt/google/chrome/chrome-sandbox
27-
- sudo chown root /opt/google/chrome/chrome-sandbox
37+
- yarn install --non-interactive
38+
2839
script:
29-
- yarn test:ci && yarn travis-deploy-once "yarn semantic-release"
30-
branches:
31-
except:
32-
- "/^v\\d+\\.\\d+\\.\\d+$/"
33-
env:
34-
global:
35-
secure: 15Q6i0W/+YqcQ8+l0rVZuPhNdOcO6GPSewKrzVT1LzkEtrtoDRgqUaTleE9eHN1P/7KBxqKUQIyrvnsJiolUuin8a9xoJjLGW0e90W0OE9SElQ3HlhawimSM1VxJPYz+laUYJ2GAfMFPQg7WvQ9v/mQmEwZAnf5qZV76FtZc+XmfDySN25l+7nE/vJ3QWkcx6ey1OHfgZR0c2pjiPd2krNfTpgg3gK/KOUtcxpYdCK/gTzp9DOHzyxKxbK5bxA72iw7Wz2b27NVg5ENRVaShDuT6hzg+JCwNlpLisMEBCCjkgrAnKHSho/AuA2bJaVGeBLMZwpl1S02vbetOSWsxy0qoA26sYHJshcq4No9wE34L5yaGlgzHuEYQzX+P8frBlkKwk3PwhlR9K+L7f0D+6pN/EbHLo/OplTkxjbnRtuOEkGnaS5oyc5EnIczZsLClC1OafolnUi7mjfpdX2TqDh/dQLs+RtoV3aU2cn18fVqwrhBGkFFDuKuekasyhup2TCel8EacLpYAzf0iQukA6gGm8bI2ubgBunTBl2/G7rFYmHfdTF8+JLcNqTeBLMYkCfSFs6M65IAbsx0PYDmtUocCGGiYPkYHofTq3FOaV530MPWahE82e8qHWNssK5dxizh28jyYUrP1IrUQLVikxp4404NcSX9D2x5bNSrp20A=
40+
- yarn test:ci

0 commit comments

Comments
 (0)