-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
45 lines (40 loc) · 1.43 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
# @file
# .travis.yml - PKP Plugins Integration
os: linux
dist: xenial
language: php
branches:
only:
- master
- stable-3_2_1
addons:
apt:
update: true
php:
- 7.3
- 7.4
- 8.0
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
- APPLICATION=ops BRANCH=master TEST=mysql
- APPLICATION=ops 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/prepare-webserver.sh
# Build/install dependencies
- lib/pkp/tools/travis/install-composer-dependencies.sh
- npm i g -npm && npm install && npm run build
# Make sure we're using the current checkout of this repo rather than the built-in OJS/OMP version
- rm -rf ~/${APPLICATION}/plugins/blocks/twitterBlock
- ln -s ${TRAVIS_BUILD_DIR} ~/${APPLICATION}/plugins/blocks/twitterBlock
# Install OJS/OMP & prep data environment
- $(npm bin)/cypress run --spec "cypress/tests/data/10-Installation.spec.js,cypress/tests/data/20-CreateContext.spec.js"
script:
- $(npm bin)/cypress run --config integrationFolder=plugins/blocks/twitterBlock/cypress/tests