Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

Commit

Permalink
FEATURE: Add travis ci (#1)
Browse files Browse the repository at this point in the history
* To automate tests and display results in pull requests.
  • Loading branch information
DanielSiepmann authored Dec 9, 2016
1 parent 224f945 commit d89e616
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
language: php

php:
- 5.6
- 7.0

env:
matrix:
- TYPO3_VERSION="~6.2"
- TYPO3_VERSION="~7.6"
- TYPO3_VERSION="dev-master"

matrix:
fast_finish: true
allow_failures:
- env: TYPO3_VERSION="~6.2"
php: 7.0
- env: TYPO3_VERSION="dev-master"
php: 7.0
exclude:
# TYPO3 no longer supports 5.6
- env: TYPO3_VERSION="dev-master"
php: 5.6

before_install:
- composer self-update
- composer --version

install:
- make install

script:
- make Tests

cache:
directories:
- $HOME/.composer/cache
20 changes: 20 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
current_dir := $(dir $(mkfile_path))

TYPO3_WEB_DIR := $(current_dir).Build/Web
# Allow different versions on travis
TYPO3_VERSION ?= ~6.2

.PHONY: install
install:
rm -rf .Build

composer require --dev --prefer-source typo3/cms="$(TYPO3_VERSION)"
composer update -vv

git checkout composer.json
mkdir -p $(TYPO3_WEB_DIR)/uploads $(TYPO3_WEB_DIR)/typo3temp

.PHONY: Tests
Tests:
TYPO3_PATH_WEB=$(TYPO3_WEB_DIR) .Build/bin/phpunit --colors --debug -v -c Tests/Unit/UnitTests.xml

0 comments on commit d89e616

Please sign in to comment.