This repository has been archived by the owner on Jan 30, 2024. It is now read-only.
forked from OpenSKOS/OpenSKOS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (49 loc) · 1.63 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
sudo: true
language: php
php:
- 7.1
- 7.3
matrix:
allow_failures:
- php: hhvm
services:
- mysql
before_install:
- sudo apt-get update
- sudo apt-get install apache2 libapache2-mod-fastcgi -y
- sudo cp ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf.default ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf
- sudo a2enmod rewrite actions fastcgi alias
- echo "cgi.fix_pathinfo = 1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- ~/.phpenv/versions/$(phpenv version-name)/sbin/php-fpm
- sudo find /etc/apache2 -print
- sudo cp $TRAVIS_BUILD_DIR/integrationtestsettings/openskos.conf /etc/apache2/sites-available/
- sudo a2dissite 000-default
- sudo a2ensite openskos
- sudo service apache2 restart
- sudo ps aux | egrep '(apache|httpd)'
# - sudo env PATH="$PATH" data/docker/scripts/ext/memcache.sh
- phpenv config-add data/travis/php$(php -v | head -1 | tr '.' ' ' | awk '{print $2}').ini
- php -m
install:
- composer install --dev --prefer-dist --ignore-platform-reqs
- sudo rm -rf /var/www/html
- sudo ln -s $TRAVIS_BUILD_DIR /var/www/html
- sudo usermod -a -G travis www-data
- sudo groups www-data
- find $TRAVIS_BUILD_DIR -type d -exec chmod ugo+x {} \;
- chmod -R ugo+rwx cache
- chmod -R ugo+rwx data
- chmod -R ugo+rwx public/data
- sudo service apache2 restart
- cd integrationtestsettings
- chmod +x install-test-env.sh
- ./install-test-env.sh
- ./start-solr.sh &
- ./start-fuseki.sh &
- mysql < openskos-create.sql
- ./openskos-init.sh
- cd ..
- ls
script:
- ./vendor/bin/phpcs --standard=PSR2 library/OpenSkos2/
- ./vendor/bin/phpunit