Skip to content

Commit

Permalink
Weblate additional tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dragosv committed Mar 28, 2020
1 parent b34eb86 commit 86b9cf9
Show file tree
Hide file tree
Showing 10 changed files with 64 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Serge/Sync/Plugin/TranslationService/weblate.pm
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use Scalar::Util qw(reftype);
use File::Path qw(make_path);
use File::Basename;

our $VERSION = qv('0.900.2');
our $VERSION = qv('0.900.3');

sub name {
return 'Weblate translation software (https://weblate.org/) synchronization plugin';
Expand Down
3 changes: 3 additions & 0 deletions t/data/plugins/weblate/02/files/.weblate
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[weblate]
url = http://localhost/api/
key = 1234567890123456789012345678901234567890
4 changes: 4 additions & 0 deletions t/data/plugins/weblate/02/files/resources/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore
14 changes: 14 additions & 0 deletions t/data/plugins/weblate/02/translate.serge
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
sync
{
ts
{
plugin weblate

data
{
root_directory ./files/resources
project test
languages fr-fr es
}
}
}
3 changes: 3 additions & 0 deletions t/data/plugins/weblate/03/files/.weblate
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[weblate]
url = http://localhost/api/
key = 1234567890123456789012345678901234567890
4 changes: 4 additions & 0 deletions t/data/plugins/weblate/03/files/resources/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore
14 changes: 14 additions & 0 deletions t/data/plugins/weblate/03/translate.serge
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
sync
{
ts
{
plugin weblate

data
{
root_directory ./files/resources
config_file ./files/.weblate
languages fr-fr es
}
}
}
3 changes: 3 additions & 0 deletions t/data/plugins/weblate/04/files/.weblate
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[weblate]
url = http://localhost/api/
key = 1234567890123456789012345678901234567890
4 changes: 4 additions & 0 deletions t/data/plugins/weblate/04/files/resources/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore
14 changes: 14 additions & 0 deletions t/data/plugins/weblate/04/translate.serge
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
sync
{
ts
{
plugin weblate

data
{
root_directory ./files/resources
config_file ./files/.weblate
project test
}
}
}

0 comments on commit 86b9cf9

Please sign in to comment.