-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
55 lines (51 loc) · 1.55 KB
/
.travis.yml
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
50
51
52
53
54
language: php
# required for "git tag" presence for MonorepoBuilder split and ChangelogLinker git tags resolver
# see https://github.com/travis-ci/travis-ci/issues/7422
git:
depth: false
jobs:
include:
- stage: standards
name: Checking standards
php: 7.1
script:
- composer install
- php vendor/bin/phpcs --standard=PSR1 ./packages --ignore=*/spec/*
- php vendor/bin/phpcs --standard=PSR2 ./packages --ignore=*/spec/*
- php vendor/bin/phpstan analyse ./packages --level max
- &test-stage
stage: test
name: PHP 7.1
php: 7.1
script:
- composer install
- cd $TRAVIS_BUILD_DIR/packages/TimiTao/MonoA
- php $TRAVIS_BUILD_DIR/vendor/bin/phpspec run
- cd $TRAVIS_BUILD_DIR/packages/TimiTao/MonoB
- php $TRAVIS_BUILD_DIR/vendor/bin/phpspec run
- <<: *test-stage
name: PHP 7.2
php: 7.2
- <<: *test-stage
name: PHP 7.3
php: 7.3
- stage: split
name: Split for repositories
php: 7.1
script: |
composer install
if [[ $TRAVIS_EVENT_TYPE == "push" ]]; then
vendor/bin/monorepo-builder split -v
fi
- stage: examples
name: Validate examples
script: |
curl -LO --retry 3 https://raw.githubusercontent.com/timiTao/monorepo/master/packages/TimiTao/Deployment/bin/trigger-travis.sh
sh trigger-travis.sh timitao mono-example $TRAVIS_ACCESS_TOKEN
stages:
- standards
- test
- name: split
if: branch = master
- name: examples
if: branch = master