Skip to content

Commit

Permalink
#1133 run litus tests on travis
Browse files Browse the repository at this point in the history
  • Loading branch information
picman committed Feb 2, 2021
1 parent 7b7b5a2 commit 6897a61
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'";
Expand Down Expand Up @@ -65,3 +68,5 @@ services:

addons:
mariadb: '10.4'
apt:
update: true
6 changes: 6 additions & 0 deletions test/ci/projects.xml
Original file line number Diff line number Diff line change
@@ -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>
8 changes: 8 additions & 0 deletions test/ci/redmine_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 6897a61

Please sign in to comment.