forked from markhuot/craftql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
27 lines (27 loc) · 1.18 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
language: php
php:
- '7.1'
services:
- mysql
env:
- ENVIRONMENT="dev" SECURITY_KEY="12345" DB_DRIVER="mysql" DB_SERVER="localhost" DB_USER="root" DB_PASSWORD="" DB_DATABASE="craftql"
cache:
directories:
# - /home/travis/build/vendor_cache
before_install:
- mysql -e 'CREATE DATABASE IF NOT EXISTS craftql;'
- composer create-project craftcms/craft /home/travis/build/craftcms/craft
# - mv /home/travis/build/vendor_cache /home/travis/build/craftcms/craft/vendor 2>/dev/null
install:
- cd /home/travis/build/craftcms/craft
- composer config repositories.craftql path /home/travis/build/markhuot/craftql
- composer config minimum-stability dev
- composer require markhuot/craftql:dev-master phpunit/phpunit
- ./craft install [email protected] --username=admin --password=foobar --siteName="Test Site" --siteUrl="http://localhost" --language=en
- ./craft install/plugin craftql
- ./craft craftql/tools/seed
script:
- vendor/bin/phpunit --bootstrap vendor/craftcms/cms/bootstrap/web.php vendor/markhuot/craftql/tests/
# before_cache:
# - mv /home/travis/build/craftcms/craft/vendor /home/travis/build/vendor_cache
# - rm -rf /home/travis/build/vendor_cache/markhuot