Skip to content
This repository was archived by the owner on Sep 27, 2022. It is now read-only.

Commit a217266

Browse files
author
Sandeesh
committed
Added Travis CI.
1 parent f219b1e commit a217266

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.env.travis

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
APP_ENV=testing
2+
APP_KEY=randomkeyreplacethis
3+
4+
DB_CONNECTION=mysql
5+
DB_HOST=127.0.0.1
6+
DB_PORT=3306
7+
DB_DATABASE=realworld_test
8+
DB_USERNAME=root
9+
DB_PASSWORD=

.travis.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
language: php
2+
3+
php:
4+
- 7.0
5+
- 7.1
6+
7+
before_script:
8+
- cp .env.travis .env
9+
- composer self-update
10+
- composer install --prefer-source --no-interaction --dev
11+
- php artisan key:generate
12+
- php artisan jwt:generate
13+
- php artisan migrate
14+
15+
before_install:
16+
- mysql -e 'CREATE DATABASE realworld_test;'
17+
18+
script:
19+
- phpunit
20+
21+
services:
22+
- mysql
23+
24+
notifications:
25+
email: false

0 commit comments

Comments
 (0)