Skip to content
This repository has been archived by the owner on May 25, 2020. It is now read-only.

Feature 788 unittests #824

Merged
merged 15 commits into from
Dec 6, 2018
19 changes: 10 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
matrix:
include:
# FIXME: skipped for now since we use a different php version on the live server
# - language: php
# php: 7.0
# cache:
# directories: src/vendor
# before_script:
# - composer install --dev --prefer-dist
# script:
# - sh bin/build.sh
- language: php
php:
- 7.1
cache:
directories: src/vendor
before_script:
- composer install --dev --prefer-dist
script:
- sh bin/build.sh
- ./src/vendor/bin/phpunit
- language: node_js
node_js: 10
cache: yarn
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [Unreleased]

### Added

- Add unit tests based on PHPUnit ([#824](https://github.com/serlo-org/athene2/pull/824))
- Add yarn script `unit` that executes `./src/vendor/bin/phpunit`

## [Build 5] - 2018-12-01

### Added
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ Open _package.json_ and make sure the values you got from running the two comman
Most of these are outdated:

- [Knowledge base](https://github.com/serlo-org/athene2/wiki/Knowledge-base)
- [Testing](https://github.com/serlo-org/athene2/wiki/Testing)
- [Development workflow (outdated)](https://github.com/serlo-org/athene2/wiki/Development-workflow)
- [Installation (totally outdated, do not look at this)](https://github.com/serlo-org/athene2/wiki/Installation)
- [Athene2 Guide (somewhat outdated)](https://serlo-org.github.io/athene2-guide/)
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,8 @@
},
"config": {
"vendor-dir": "src/vendor"
},
"require-dev": {
"phpunit/phpunit": "^5"
}
}
Loading