forked from pkp/immersion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
46 lines (39 loc) · 1.22 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
# @file
# .travis.yml - PKP Plugins Integration
dist: bionic
os: linux
language: php
addons:
chrome: beta
postgresql: "9.5"
apt:
update: true
packages:
- libvulkan1
- libu2f-udev
sudo: required
php:
- 8.2.0
- 8.1.0
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/immersion
# Install OJS & prep data environment
- $(npm bin)/cypress run --spec "cypress/tests/data/10-ApplicationSetup/*.cy.js,cypress/tests/data/60-content/VkarbasizaedSubmission.cy.js"
script:
- $(npm bin)/cypress run --config specPattern=plugins/themes/immersion/cypress/tests/functional
after_failure:
- cat error.log
- sudo apt-get install sharutils
- tar cz cypress/screenshots | uuencode /dev/stdout