forked from crunchbutton/crunchbutton
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
52 lines (43 loc) · 1.33 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
sudo: false
language:
- php
php:
- 7.0
- 7.1
env:
global:
- TRAVIS=1 GITHUB_OAUTH_TOKEN=_KEY_ DATABASE_URL=mysql://root:@localhost:3306/crunchbutton_travis
# - TRAVIS=1 TRAVISPOSTGRES=1
cache:
apt: true
bundler: true
directories:
- node_modules
- vendor
- $HOME/.composer/cache
# install:
before_install:
- git config --global github.accesstoken $GITHUB_OAUTH_TOKEN
#- echo 'America/Los_Angeles' | sudo tee /etc/timezone
#- sudo dpkg-reconfigure --frontend noninteractive tzdata
- export TZ=UTC
- date
#- cat /etc/timezone
#- sudo service mysql restart
before_script:
#- composer self-update
- mkdir build
- composer install -n --ignore-platform-reqs
- mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -uroot mysql
- mysql -e "SET GLOBAL time_zone = 'UTC';" -uroot;
- mysql -e "create database IF NOT EXISTS crunchbutton_travis;" -uroot;
- mysql -uroot crunchbutton_travis < db/dump.sql;
- phpenv config-add travis/php.ini
- php travis/dbmigrate.php
#- php travis/phpunit.setup.php
- cd www && nohup php -S localhost:8000 -c ../travis/php.ini index.php > /dev/null 2>&1 &
script:
- phpunit --configuration travis/phpunit.basic.xml
#- phantomjs --web-security=false --ignore-ssl-errors=yes --ssl-protocol=tlsv1 travis/phantom/run.js
#after_script:
# - php vendor/bin/coveralls -v