-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy path.travis.yml
26 lines (26 loc) · 824 Bytes
/
.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
language: php
php:
- "5.6"
- "7.0"
services:
- mysql
before_script:
- echo 'always_populate_raw_post_data = -1' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
# get the latest frontaccounting code
- git clone -b master https://github.com/FrontAccountingERP/FA.git _frontaccounting
# composer
- phpenv config-rm xdebug.ini
- composer install
# copy our modules source into the modules folder under _frontaccounting/modules
- rsync -a --exclude=_frontaccounting --exclude=node_modules . _frontaccounting/modules/api/
# install npm deps and gulp
- npm install -g gulp
- npm install
- php -S localhost:8000 -t _frontaccounting &
- sleep 1
# db setup
- mysql -e 'create database fa_test;'
# Should be good to do gulp from here on
- sleep 3
script:
- gulp test-travis