This repository has been archived by the owner on Jan 30, 2024. It is now read-only.
forked from OpenSKOS/OpenSkos-API
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
53 lines (46 loc) · 1.5 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
sudo: true
language: php
php:
- 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 cp data/docker/fpm/symfony.env .env
# TODO: clone openskos-config
install:
# TODO: run data/deploy/deploy.sh -e travis
- composer install --dev --prefer-dist
- 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
# - vendor/bin/phing config
- cd integrationtestsettings
- bash install-test-env.sh
- sudo bash start-solr.sh &
- sudo bash start-fuseki.sh &
- bash openskos-init.sh
- cd ..
- netstat -lnp
script:
- ./vendor/bin/grumphp run