Skip to content

Commit 06f0b06

Browse files
authored
ci: fix problems in Travis CI configuration (#47)
1 parent cf2d4a3 commit 06f0b06

1 file changed

Lines changed: 35 additions & 30 deletions

File tree

.travis.yml

Lines changed: 35 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,50 @@
1+
# TravisCI configuration for felixfbecker/php-advanced-json-rpc
2+
3+
branches:
4+
except:
5+
- /^v\d+\.\d+\.\d+$/
6+
17
language: php
8+
os:
9+
- "linux"
10+
dist: "xenial"
11+
12+
php:
13+
- "7.1"
14+
- "7.2"
15+
- "7.3"
16+
- "7.4"
17+
- "8.0"
18+
- nightly
219

3-
matrix:
20+
stages:
21+
- name: test
22+
- name: release
23+
if: branch = master AND type = push AND fork = false
24+
25+
jobs:
26+
fast_finish: true
427
include:
5-
- php: 7.1
6-
- php: 7.2
7-
- php: 7.3
8-
- php: 7.4
9-
- php: 8.0
10-
- php: nightly
28+
- stage: release
29+
language: node_js
30+
node_js: "8"
31+
install:
32+
- npm ci
33+
script:
34+
- npm run semantic-release
35+
after_success: skip
1136
allow_failures:
12-
- php: nightly
13-
fast_finish: true
37+
- stage: test
38+
php: nightly
1439

1540
env:
1641
global:
1742
- FORCE_COLOR=1
1843

1944
cache:
45+
npm: true
2046
directories:
2147
- $HOME/.composer/cache
22-
- $HOME/.npm
2348

2449
install:
2550
- composer install --prefer-dist
@@ -29,23 +54,3 @@ script:
2954

3055
after_success:
3156
- bash <(curl -s https://codecov.io/bash)
32-
33-
jobs:
34-
include:
35-
- stage: release
36-
language: node_js
37-
node_js: '8'
38-
install:
39-
- npm ci
40-
script:
41-
- npm run semantic-release
42-
after_success: false
43-
44-
stages:
45-
- test
46-
- name: release
47-
if: branch = master AND type = push AND fork = false
48-
49-
branches:
50-
except:
51-
- /^v\d+\.\d+\.\d+$/

0 commit comments

Comments
 (0)