Skip to content
This repository was archived by the owner on Dec 6, 2019. It is now read-only.

Commit feb7573

Browse files
committed
Add automatic tests
1 parent 813b71e commit feb7573

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.travis.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Automatic tests for pull requests and commits
2+
# which runs independent from the client system
3+
language: php
4+
5+
# Our server is 7.0
6+
php: [7.0]
7+
8+
# Commands to be run in order to setup the environment.
9+
install:
10+
# According to the travis site the composer build be very old, so update it to prevent bugs
11+
- composer self-update
12+
- composer install --prefer-source --no-interaction --dev
13+
# Setup the database with sample data
14+
- php artisan migrate --seed
15+
# Install elixir and gulp
16+
- npm install
17+
# Syntax checker for php files
18+
- composer require --dev jakub-onderka/php-parallel-lint
19+
# Travis supports color output so make use of it
20+
- composer require --dev jakub-onderka/php-console-highlighter
21+
22+
script:
23+
# Run php unit tests
24+
- vendor/bin/phpunit --verbose
25+
# Test compile and deploy the assets in order to detect for example syntax errors in sass
26+
- gulp
27+
# Include the path explicity in order to ignore the single ide-helper file which cannot be ignored by the
28+
# exclude paramater but could could most likely contain error we do not care about
29+
- vendor/jakub-onderka/php-parallel-lint/parallel-lint --exclude vendor server.php public resources database config bootstrap app
30+
# todo add blade syntax checker
31+
32+
# Get a summary of the output
33+
after_script:
34+
- ls -laR app/storage
35+
- cat app/storage/logs/*

0 commit comments

Comments
 (0)