forked from optimizely/php-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
49 lines (46 loc) · 1.3 KB
/
.travis.yml
File metadata and controls
49 lines (46 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
language: php
dist: trusty
php:
- '7.2'
- '7.3'
install: "composer install"
script:
- mkdir -p build/logs
- ./vendor/bin/phpunit --coverage-clover build/logs/clover.xml
after_script: "vendor/bin/php-coveralls -v"
# Linting and integration tests need to run first to reset the PR build status to pending
stages:
- 'Source Clear'
- 'Linting'
- 'Integration tests'
- 'Test'
jobs:
include:
- stage: 'Linting'
language: php
php: '7.2'
install: 'composer require "squizlabs/php_codesniffer=*"'
script: 'composer lint'
after_script: skip
after_success: travis_terminate 0
- stage: 'Integration tests'
merge_mode: replace
env: SDK=php SDK_BRANCH=$TRAVIS_PULL_REQUEST_BRANCH
cache: false
language: minimal
install: skip
before_script:
- mkdir $HOME/travisci-tools && pushd $HOME/travisci-tools && git init && git pull https://$CI_USER_TOKEN@github.com/optimizely/travisci-tools.git && popd
script:
- $HOME/travisci-tools/trigger-script-with-status-update.sh
after_success: travis_terminate 0
- stage: 'Source Clear'
if: type = cron
addons:
srcclr: true
before_install: skip
install: skip
before_script: skip
script: skip
after_script: skip
after_success: skip