forked from pkp/quickSubmit
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
43 lines (36 loc) · 1.37 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
# @file
# .travis.yml - PKP Plugins Integration
dist: bionic
os: linux
language: php
addons:
postgresql: "9.5"
apt:
update: true
sudo: required
php:
- 8.0
- 8.1.0
env:
- APPLICATION=ojs BRANCH=main TEST=mysql
- APPLICATION=ojs BRANCH=main 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
- ln -s ${TRAVIS_BUILD_DIR} ~/${APPLICATION}/plugins/importexport/quickSubmit
script:
# 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,cypress/tests/data/40-CreateUsers.spec.js,cypress/tests/data/50-CreateIssues.spec.js,cypress/tests/data/50-CreateSections.spec.js"
- $(npm bin)/cypress run --config integrationFolder=plugins/importexport/quickSubmit/cypress/tests
after_failure:
- cat error.log
- sudo apt-get install sharutils
- tar cz cypress/screenshots | uuencode /dev/stdout