11language : php
22
3+ branches :
4+ only :
5+ - master
6+ - /^[0-9]+\.[0-9]+\.[0-9]+$/
7+
38matrix :
9+ allow_failures :
10+ - env : TYPO3_VERSION=dev-master
411 include :
512 - php : 5.3
6- env : TYPO3_BRANCH=TYPO3_6- 2
13+ env : TYPO3_VERSION=^6. 2
714 - php : 5.4
8- env : TYPO3_BRANCH=TYPO3_6- 2
15+ env : TYPO3_VERSION=^6. 2
916 - php : 5.5
10- env : TYPO3_BRANCH=TYPO3_6- 2
17+ env : TYPO3_VERSION=^6. 2
1118 - php : 5.6
12- env : TYPO3_BRANCH=TYPO3_6- 2
19+ env : TYPO3_VERSION=^6. 2
1320 - php : 5.5
14- env : TYPO3_BRANCH=TYPO3_7- 6
21+ env : TYPO3_VERSION=^7. 6
1522 - php : 5.6
16- env : TYPO3_BRANCH=TYPO3_7- 6
23+ env : TYPO3_VERSION=^7. 6
1724 - php : 7.0
18- env : TYPO3_BRANCH=TYPO3_7- 6
25+ env : TYPO3_VERSION=^7. 6
1926 - php : 7.0
20- env : TYPO3_BRANCH= master
27+ env : TYPO3_VERSION=dev- master
2128
2229notifications :
2330 email :
24- - helmut@ typo3.org
31+ - typo3@helhum.io
2532
2633sudo : false
2734cache :
@@ -37,34 +44,41 @@ before_install:
3744 - phpenv config-rm xdebug.ini
3845 - composer self-update
3946 - composer --version
40- - if [ "$GITHUB_COMPOSER_AUTH" ]; then composer config -g github-oauth.github.com $GITHUB_COMPOSER_AUTH; fi
4147
4248before_script :
43- - cd ..
44- - git clone --single-branch --branch $TYPO3_BRANCH --depth 1 https://github.com/TYPO3/TYPO3.CMS.git typo3_core
45- - mv typo3_core/* .
46- - composer install
47- - mkdir -p typo3conf/ext
48- - mv typoscript_rendering typo3conf/ext/
49+ - composer require typo3/cms=$TYPO3_VERSION
50+ - export TYPO3_PATH_WEB="$PWD/.Build/Web"
4951
5052script :
5153 - >
5254 echo;
5355 echo "Running unit tests";
54- ./bin/phpunit --colors -c typo3/sysext/core/Build/UnitTests.xml typo3conf/ext/typoscript_rendering/Tests/Unit/
56+ .Build/bin/phpunit -c .Build/vendor/typo3/cms/typo3/sysext/core/Build/UnitTests.xml Tests/Unit/
57+
5558 - >
5659 echo;
5760 echo "Running php lint";
58- /bin/bash -c "
59- if ! find typo3conf/ext/typoscript_rendering -name \*.php | parallel --gnu 'php -l {}' > /tmp/errors 2>&1; then
60- grep -v \"No syntax errors detected in\" /tmp/errors;
61- exit 99;
62- fi
63- "
61+ find . -name \*.php ! -path "./.Build/*" | parallel --gnu php -d display_errors=stderr -l {} > /dev/null \;
62+
6463 - >
6564 echo;
6665 export typo3DatabaseName="typo3";
6766 export typo3DatabaseHost="localhost";
6867 export typo3DatabaseUsername="root";
6968 export typo3DatabasePassword="";
70- find 'typo3conf/ext/typoscript_rendering/Tests/Functional' -wholename '*Test.php' | parallel --gnu 'echo; echo "Running functional test suite {}"; ./bin/phpunit --colors -c typo3/sysext/core/Build/FunctionalTests.xml {}'
69+ find 'Tests/Functional' -wholename '*Test.php' | parallel --gnu 'echo; echo "Running functional test suite {}"; .Build/bin/phpunit -c .Build/vendor/typo3/cms/typo3/sysext/core/Build/FunctionalTests.xml {}'
70+
71+ after_script :
72+ - >
73+ if [ -n "$TRAVIS_TAG" ] && [ -n "$TYPO3_ORG_USERNAME" ] && [ -n "$TYPO3_ORG_PASSWORD" ]; then
74+ echo -e "Preparing upload of release ${TRAVIS_TAG} to TER\n"
75+ curl -sSL https://raw.githubusercontent.com/alrra/travis-after-all/1.4.4/lib/travis-after-all.js | node
76+ if [ $? -eq 0 ]; then
77+ # Cleanup before we upload
78+ git reset --hard HEAD && git clean -fx
79+
80+ TAG_MESSAGE=`git tag -n10 -l $TRAVIS_TAG | sed 's/^[0-9.]*[ ]*//g'`
81+ echo "Uploading release ${TRAVIS_TAG} to TER"
82+ .Build/bin/upload . "$TYPO3_ORG_USERNAME" "$TYPO3_ORG_PASSWORD" "$TAG_MESSAGE"
83+ fi;
84+ fi;
0 commit comments