forked from pkp/healthSciences
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (28 loc) · 1007 Bytes
/
.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
# @file
# .travis.yml - PKP Plugins Integration
language: php
addons:
apt:
update: true
sudo: required
php:
- 7.3
- 7.4
env:
- APPLICATION=ojs BRANCH=main TEST=mysql
- APPLICATION=ojs BRANCH=main TEST=pgsql
install:
# Prepare OJS 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/prepare-webserver.sh
# Build/install dependencies
- lib/pkp/tools/travis/install-composer-dependencies.sh
- npm i g -npm && npm install && npm run build
- ln -s ${TRAVIS_BUILD_DIR} ~/${APPLICATION}/plugins/themes/healthSciences
# Install OJS & prep data environment
- $(npm bin)/cypress run --spec "cypress/tests/data/*.spec.js,cypress/tests/data/60-content/VkarbasizaedSubmission.spec.js"
script:
- $(npm bin)/cypress run --config integrationFolder=plugins/themes/healthSciences/cypress/tests/functional