Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 7a04834

Browse files
add travis-ci configuration
1 parent 536d36d commit 7a04834

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed

.travis.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
language: php
2+
3+
sudo: false
4+
5+
php:
6+
- 5.3
7+
- 5.4
8+
- 5.6
9+
- 7.0
10+
- 7.1
11+
- 7.2
12+
- nightly
13+
14+
cache:
15+
directories:
16+
- $HOME/.composer/cache
17+
18+
before_script:
19+
- composer install
20+
21+
script: composer test

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,10 @@ Now, run PHPUnit Tests.
6666

6767
```bash
6868
vendor/bin/phpunit
69+
```
70+
71+
Or use composer.
72+
73+
```bash
74+
composer test
6975
```

composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,10 @@
2525
"psr-4": {
2626
"BabyMarkt\\DeepL\\": "tests/"
2727
}
28+
},
29+
"scripts": {
30+
"test": [
31+
"vendor/bin/phpunit"
32+
]
2833
}
2934
}

0 commit comments

Comments
 (0)