Skip to content
This repository was archived by the owner on May 21, 2021. It is now read-only.

Commit 3441bf5

Browse files
committed
Update travis
1 parent 3fcc9bb commit 3441bf5

File tree

2 files changed

+23
-5
lines changed

2 files changed

+23
-5
lines changed

.env.travis

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
APP_NAME=Crawler
2+
APP_ENV=testing
3+
APP_KEY=abcdefghijklmnopqrstuvwxyz
4+
APP_URL=http://localhost
5+
6+
DB_CONNECTION=mysql
7+
DB_HOST=127.0.0.1
8+
DB_PORT=3306
9+
DB_DATABASE=crawler
10+
DB_USERNAME=root
11+
DB_PASSWORD=

.travis.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
language: php
22
php:
33
- 7.2
4-
sudo: false
5-
before-script:
6-
- travis_retry composer self-update
7-
install:
8-
- composer create-project hedii/php-crawler . --no-interaction
4+
before_script:
5+
- cp .env.travis .env
6+
- composer self-update
7+
- composer install --no-interaction
8+
- php artisan key:generate
9+
- php artisan crawler:build
10+
before_install:
11+
- mysql -e 'CREATE DATABASE crawler;'
12+
script:
13+
- vendor/bin/phpunit
14+
services:
15+
- mysql

0 commit comments

Comments
 (0)