forked from pkp/staticPages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (36 loc) · 1.57 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
# @file
# .travis.yml - PKP Plugins Integration
language: php
dist: trusty
addons:
apt:
update: true
sudo: required
php:
- 7.2
env:
- APPLICATION=ojs BRANCH=master TEST=mysql
- APPLICATION=ojs BRANCH=master TEST=pgsql
- APPLICATION=omp BRANCH=master TEST=mysql
- APPLICATION=omp BRANCH=master TEST=pgsql
install:
# Prepare OJS/OMP environment
- git clone -b ${BRANCH} https://github.com/pkp/${APPLICATION} ~/${APPLICATION}
- cd ~/${APPLICATION}
- git submodule update --init --recursive
- source lib/pkp/tools/travis/prepare-tests.sh
- lib/pkp/tools/travis/install-composer-dependencies.sh
- npm i g -npm && npm install && npm run build
# Prepare server environment
- source lib/pkp/tools/travis/start-xvfb.sh
- lib/pkp/tools/travis/start-selenium.sh
- lib/pkp/tools/travis/prepare-webserver.sh
# Make sure we're using the current checkout of this repo rather than the built-in OJS/OMP version
- rm -rf ~/${APPLICATION}/plugins/generic/staticPages
- ln -s ${TRAVIS_BUILD_DIR} ~/${APPLICATION}/plugins/generic/staticPages
# Install OJS/OMP & prep data environment
- lib/pkp/lib/vendor/phpunit/phpunit/phpunit --configuration lib/pkp/tests/phpunit-env1.xml tests/data/10-InstallationTest.php
- lib/pkp/lib/vendor/phpunit/phpunit/phpunit --configuration lib/pkp/tests/phpunit-env1.xml tests/data/20-CreateContextTest.php
- lib/pkp/tools/travis/dump-database.sh
script:
- lib/pkp/lib/vendor/phpunit/phpunit/phpunit --debug -v --configuration lib/pkp/tests/phpunit-env2.xml plugins/generic/staticPages/tests/functional/StaticPagesFunctionalTest.php