forked from neos/neos-development-collection
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
90 lines (90 loc) · 4.1 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
language: php
os: linux
dist: bionic
branches:
only:
- /(master|\d+\.\d+)/
jobs:
fast_finish: true
include:
- php: 7.2
env: DB=mysql
addons:
mariadb: '10.2'
- php: 7.2
env: DB=mysql BEHAT=true
addons:
mariadb: '10.2'
- php: 7.3
env: DB=mysql
addons:
mariadb: '10.2'
- php: 7.3
env: DB=mysql BEHAT=true
addons:
mariadb: '10.2'
- php: 7.4
env: DB=pgsql
addons:
postgresql: "9.5"
- php: 7.4
env: DB=pgsql BEHAT=true
addons:
postgresql: "9.5"
- php: 7.4
env: DB=mysql
addons:
mariadb: '10.2'
- php: 7.4
env: DB=mysql BEHAT=true
addons:
mariadb: '10.2'
cache:
directories:
- $HOME/.composer/cache
before_install:
- export NEOS_TARGET_REPOSITORY=neos/neos-development-collection
- export NEOS_TARGET_VERSION=master
- if [ "$DB" = "pgsql" ]; then sudo mount -o remount,size=25% /var/ramfs ; fi
- phpenv config-rm xdebug.ini || echo "xdebug not available"
- env
- sudo add-apt-repository ppa:git-core/ppa -y
- sudo apt-get update
- sudo apt-get install git -y
- git checkout -b travis
- cd ..
- git clone https://github.com/neos/neos-development-distribution.git -b ${NEOS_TARGET_VERSION}
- cd neos-development-distribution
install:
- composer self-update -q
- if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN}; fi;
- COMPOSER_MEMORY_LIMIT=-1 composer update --no-progress --no-interaction
- php Build/BuildEssentials/TravisCi/ComposerManifestUpdater.php .
- COMPOSER_MEMORY_LIMIT=-1 composer update --no-progress --no-interaction
before_script:
- echo 'date.timezone = "Africa/Tunis"' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- echo 'opcache.fast_shutdown = 0' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- echo 'opcache.enable_cli = 0' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- echo 'zend.enable_gc = 0' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- echo 'report_zend_debug = 0' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- echo 'report_memleaks = 0' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- echo 'bin/phpunit --colors -c Build/BuildEssentials/PhpUnit/UnitTests.xml && exit 0' > unittest.sh
- echo 'if [ $? -eq 139 ]; then exit 0 ; else exit $? ; fi' >> unittest.sh
- cp Configuration/Settings.yaml.example Configuration/Settings.yaml
- Build/BuildEssentials/TravisCi/SetupDatabase.sh
- cp Configuration/Settings.yaml Configuration/Testing/
- if [ "$BEHAT" = "true" ]; then FLOW_CONTEXT=Testing/Behat ./flow behat:setup ; fi
- if [ "$DB" = "mysql" ]; then echo "MariaDB version ${TRAVIS_MARIADB_VERSION}"; fi
script:
- if [ "$BEHAT" != "true" ]; then sh ./unittest.sh ; fi
- if [ "$BEHAT" != "true" ]; then bin/phpunit --colors --stop-on-failure -c Build/BuildEssentials/PhpUnit/FunctionalTests.xml --testsuite "Neos tests"; fi
- if [ "$BEHAT" = "true" ]; then bin/behat --stop-on-failure -f progress -c Packages/Neos/Neos.Neos/Tests/Behavior/behat.yml.dist --tags ~@browser; fi
- if [ "$BEHAT" = "true" ]; then bin/behat --stop-on-failure -f progress -c Packages/Neos/Neos.ContentRepository/Tests/Behavior/behat.yml.dist; fi
notifications:
email: false
slack:
rooms:
secure: SQCIQBP9+y1naRD+L6yHKBeB8V5jULF8jnwSKv2XcolMBIPu1UGTJYQPnQ33K0EB7MucE2FegKslJDjk0tsYQ85cKLOoyCGUGWm+L/gkiMuMF5g0hgQx6M1EFfxoCitsu4VjGJ9O9NFQ8qQVhR5q8LU164M6sIjqKMd4nAY8lT9jfClVpMzz5zqvEZ4akRJjeZsJiUUXwmZCqp7ksXX5+MTu+MW9FiKLt7LyHtZU4ork1czAr2kkYd98uknwHgXX7fVQcUTOwdbNDkRgRMu4fmaS2jkOkV2Hu+lYAFF0m84aT2EhR3QSd4doVU8KEXDYFt6A8NeQi/7/i20vJuwZzFkV89HOFEHIxJWb74P3sbDbmqNDe8AIIPYA9d9u2Zp+H+Nvmj//iZHqXKcpEUtN+mZKK8338x5NwBPH+ppG424qI3Y9+9OVL0U+YEYjMrYbim0lmkqt9NM0aC2MSOwHl7OQYfNXQha5DToPpx+XdVCPlD8EDCn0gzAv1M6KCi18fUIA17HyiLjT3fYZYUME6v6jadKtlQsP6LvHPa56T4wqk48ras6TGbzAg2RRd2Sr810d9jCqAqE5O6WOM06LSnOozl9zQvXlBw1mzJAPve/XtvzTqibw7Ik00LIuiIZ05PvWtVEUWBFHzM5tpp9X+hviHMRwAGp1wC69jx99dhA=
on_success: change
on_failure: change
on_pull_requests: false