-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
50 lines (41 loc) · 1.35 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
language: php
env:
- TYPO3_EXTENSION_KEY=cacheopt
cache:
directories:
- $HOME/.composer/cache
- $HOME/.cache/composer
sudo: true
stages:
- test
- name: deploy
if: tag
before_script:
- if [ "$GITHUB_COMPOSER_AUTH" ]; then composer config -g github-oauth.github.com $GITHUB_COMPOSER_AUTH; fi
# We can not use the t3_run_tests.sh script here because it is loaded via Composer ;)
- composer install
jobs:
include:
- stage: test
name: "Composer validate"
php: "7.3"
script: bash .Build/bin/t3_run_tests.sh -s composerValidate -p $TRAVIS_PHP_VERSION
- name: "PHP code sniffer"
php: "7.3"
script: bash .Build/bin/t3_check_codestyle.sh PSRCacheopt
- name: "Functional tests on MySQL PHP 7.2"
php: "7.2"
script: bash .Build/bin/t3_run_tests.sh -s functional -p $TRAVIS_PHP_VERSION
- name: "Functional tests on MySQL PHP 7.3"
php: "7.3"
script: bash .Build/bin/t3_run_tests.sh -s functional -p $TRAVIS_PHP_VERSION
- name: "PHP linting PHP 7.2"
php: "7.2"
script: bash .Build/bin/t3_run_tests.sh -s lint -p $TRAVIS_PHP_VERSION
- name: "PHP linting PHP 7.3"
php: "7.3"
script: bash .Build/bin/t3_run_tests.sh -s lint -p $TRAVIS_PHP_VERSION
- stage: deploy
name: "Deploy to TER"
php: "7.3"
script: bash .Build/bin/t3_deploy_to_ter.sh