#1133 run litus tests on travis

This commit is contained in:
karel.picman@lbcfree.net 2021-02-02 12:17:35 +01:00
parent 7b7b5a27d4
commit 6897a618f6
3 changed files with 19 additions and 0 deletions

View File

@ -28,6 +28,9 @@ dist: bionic
rvm:
- 2.6
before_install:
- sudo apt-get -y install litmus curl
before_script:
- sudo mysql -e 'CREATE DATABASE IF NOT EXISTS test CHARACTER SET utf8mb4;'
- sudo mysql -e "CREATE USER 'dmsf'@'localhost' IDENTIFIED BY 'eGCq9ueVpUH3'";
@ -65,3 +68,5 @@ services:
addons:
mariadb: '10.4'
apt:
update: true

6
test/ci/projects.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<project>
<name>c1</name>
<identifier>c1</identifier>
<enabled_module_names>dmsf</enabled_module_names>
</project>

View File

@ -47,6 +47,14 @@ test()
bundle exec rake redmine:plugins:test:units NAME=redmine_dmsf RAILS_ENV=test
bundle exec rake redmine:plugins:test:functionals NAME=redmine_dmsf RAILS_ENV=test
bundle exec rake redmine:plugins:test:integration NAME=redmine_dmsf RAILS_ENV=test
# Litmus
# Run Webrick server
bundle exec rails server webrick -e test
# Create a test project with DMS enabled via REST API
curl -v -H "Content-Type: application/xml" -X POST --data "@projects.xml" -u admin:admin http://localhost:3000/create.xml
# Run Litmus tests
litmus http://localhost:3000/dmsf/webdav/c1 admin admin
}
uninstall()