forked from Rebolon/php-sf-flex-webpack-encore-vuejs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
65 lines (57 loc) · 2.13 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
53
54
55
56
57
58
59
60
61
62
63
64
65
dist: trusty
sudo: required
addons:
# chrome: stable
firefox: latest
apt:
sources:
- google-chrome
packages:
- google-chrome-stable fluxbox
#sourceclear addons, take care it requires fees
#srcclr: true
# apt:
# packages:
# - nginx
# - php-fpm
env:
global:
- SERVER_HOST_WEB="localhost:80"
language: php
php:
- 7.1
before_install:
- sudo add-apt-repository -y ppa:ondrej/php
- sudo add-apt-repository -y ppa:ondrej/nginx-mainline
- sudo apt-get update
- sudo apt-get install nginx
# - sudo apt-get install php7.1-fpm
- sudo cp ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf.default ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf
- sudo cp ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.d/www.conf.default ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.d/www.conf
- echo "cgi.fix_pathinfo = 1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- ~/.phpenv/versions/$(phpenv version-name)/sbin/php-fpm
- sudo cp var/travis/nginx.conf /etc/nginx/sites-available/$SERVER_HOST_WEB.conf
- sudo ln -s /etc/nginx/sites-available/$SERVER_HOST_WEB /etc/nginx/sites-enabled/
- nvm install 8.9.0
- nvm use 8.9.0
# see http://devexpress.github.io/testcafe/documentation/recipes/integrating-testcafe-with-ci-systems/travis.html
- stty cols 80
install:
- npm run init-project
- npm run jwt-generation-test
before_script:
# - curl -H "Accept: application/json" https://security.sensiolabs.org/check_lock -F lock=@composer.lock
# - sudo service php7.1-fpm restart
- sudo service nginx restart
# see http://devexpress.github.io/testcafe/documentation/recipes/integrating-testcafe-with-ci-systems/travis.html
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3
- fluxbox >/dev/null 2>&1 &
script:
# until this issue is open i disable npm test and use test-php and test-karma in place (issue:https://github.com/DevExpress/testcafe/issues/2195, original post: https://testcafe-discuss.devexpress.com/t/role-sometime-it-doesnt-seem-to-be-played/875/9)
# - npm test
- npm run test-php
- npm run test-karma
notifications:
email: false