Skip to content

Commit

Permalink
ci: fix problems in Travis CI configuration (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor authored Jan 10, 2021
1 parent cf2d4a3 commit 06f0b06
Showing 1 changed file with 35 additions and 30 deletions.
65 changes: 35 additions & 30 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,50 @@
# TravisCI configuration for felixfbecker/php-advanced-json-rpc

branches:
except:
- /^v\d+\.\d+\.\d+$/

language: php
os:
- "linux"
dist: "xenial"

php:
- "7.1"
- "7.2"
- "7.3"
- "7.4"
- "8.0"
- nightly

matrix:
stages:
- name: test
- name: release
if: branch = master AND type = push AND fork = false

jobs:
fast_finish: true
include:
- php: 7.1
- php: 7.2
- php: 7.3
- php: 7.4
- php: 8.0
- php: nightly
- stage: release
language: node_js
node_js: "8"
install:
- npm ci
script:
- npm run semantic-release
after_success: skip
allow_failures:
- php: nightly
fast_finish: true
- stage: test
php: nightly

env:
global:
- FORCE_COLOR=1

cache:
npm: true
directories:
- $HOME/.composer/cache
- $HOME/.npm

install:
- composer install --prefer-dist
Expand All @@ -29,23 +54,3 @@ script:

after_success:
- bash <(curl -s https://codecov.io/bash)

jobs:
include:
- stage: release
language: node_js
node_js: '8'
install:
- npm ci
script:
- npm run semantic-release
after_success: false

stages:
- test
- name: release
if: branch = master AND type = push AND fork = false

branches:
except:
- /^v\d+\.\d+\.\d+$/

0 comments on commit 06f0b06

Please sign in to comment.