Kenneth Hsu
c6c0c88422
Consolidate Linux and macOS unit test steps.
2021-02-07 15:40:31 -08:00
Kenneth Hsu
50e6855fbc
Merge branch 'fix_test_issues' into github_actions
2021-02-07 15:35:20 -08:00
Kenneth Hsu
16ba9468b7
Revert "Disable AppVeyor and Travis builds."
...
This reverts commit f18b1699a9 .
2021-02-07 14:09:16 -08:00
Kenneth Hsu
1e8752a0cd
Increase tolerance for last write time tests on macOS.
...
There are occasionally times where the difference is greater than 100ms.
2021-02-07 13:59:34 -08:00
Kenneth Hsu
6ec037acc0
Use helper method to determine platform.
...
We should eventually make this method use
RuntimeInformation.IsOSPlatform.
2021-02-07 11:59:20 -08:00
Kenneth Hsu
97c33a0e13
Fix comment style.
2021-02-07 11:58:37 -08:00
Thomas Suckow and Kenneth Hsu
06850697bd
Relax unit test file time checking on osx
2021-02-07 11:58:02 -08:00
Kenneth Hsu
64410b4284
Dispose HttpWebResponse after use.
...
This seems to help avoid "System.Net.WebException : The operation has
timed out." issues when downloading test data.
2021-02-07 11:12:39 -08:00
Kenneth Hsu
2a4f934027
Revert "Run all tests."
...
This reverts commit df20aab8ed .
2021-02-07 09:48:35 -08:00
Kenneth Hsu
df20aab8ed
Run all tests.
2021-02-06 18:42:44 -08:00
Kenneth Hsu
c47ab50892
Revert "Test deliberate test failure."
...
This reverts commit aca2f18634 .
2021-02-06 18:38:48 -08:00
Kenneth Hsu
2cb7268e8a
Rename workflow file.
...
This workflow now contains a job that runs the UI tests as well.
2021-02-06 18:34:54 -08:00
Kenneth Hsu
ea6c89a964
Run tests on macOS.
2021-02-06 18:34:54 -08:00
Kenneth Hsu
a334dcc14f
Add OS to step name.
2021-02-06 17:58:06 -08:00
Kenneth Hsu
701fde0d54
Add job to run selenium UI tests.
2021-02-06 16:47:28 -08:00
Kenneth Hsu
15996ec4ae
Remove unit test result reporter job.
...
Although this displays the test failures more clearly, it doesn't handle
matrix builds that well. The failures aren't really differentiated per
job (Linux vs. Windows), and this also adds a test result reporter job
(successful), as well as a Tests Results job, which fails if a test
fails. This makes the list of jobs that appear next to a commit a bit
messy.
2021-02-06 15:32:34 -08:00
Kenneth Hsu
39ea8f04ab
Define separate job to collect test results from all environments.
2021-02-06 15:06:54 -08:00
Kenneth Hsu
2a8e58ed5e
Use separate steps for unit tests on Linux and Windows.
...
These differ by using mono.
2021-02-06 14:36:57 -08:00
Kenneth Hsu
f911417f1a
Try to consolidate test steps.
2021-02-06 14:26:56 -08:00
Kenneth Hsu
fd54fce809
Save test results in test result folder.
2021-02-06 14:13:04 -08:00
Kenneth Hsu
96cf095818
Use single test result reporter step.
2021-02-06 14:08:08 -08:00
Kenneth Hsu
fbf92f2cd9
Define step to restore NuGet packages.
...
This action will add nuget to your $PATH on all operating systems,
including macOS and linux, without having to prefix it with mono.
2021-02-06 13:56:55 -08:00
Kenneth Hsu
fca76f1b66
Use separate steps for reporting Linux and Windows test results.
2021-02-06 13:39:53 -08:00
Kenneth Hsu
8a96472bf8
Define different steps for Linux and Windows tests.
2021-02-06 13:30:10 -08:00
Kenneth Hsu
1be235a245
Remove ENABLE_GTK compilation symbol.
...
This is only needed for the UI and not needed for command-line tests.
2021-02-06 13:21:46 -08:00
Kenneth Hsu
fb28b14f37
Run tests on Linux and Windows.
2021-02-06 13:15:09 -08:00
Kenneth Hsu
b9e16cb136
Fix step name.
...
Apparently, the name cannot reference environment variables.
2021-02-06 13:12:22 -08:00
Kenneth Hsu
1af3dea72a
Change step name.
2021-02-06 12:59:25 -08:00
Kenneth Hsu
4c3e6079fd
Add report title to test result reporter.
2021-02-06 12:59:02 -08:00
Kenneth Hsu
5fe8354c78
Use latest nunit test reporter.
2021-02-06 12:57:26 -08:00
Kenneth Hsu
8aa08fbc6a
Remove unnecessary build steps.
...
These are not needed to run the tests.
2021-02-06 12:44:09 -08:00
Kenneth Hsu
a352b34ab5
Revert "Try different test result reporter."
...
This reverts commit 7aa4890cfd .
Although this is advertised to support NUnit, it doesn't appear to
support NUnit format XML test result files.
2021-02-06 12:36:47 -08:00
Kenneth Hsu
7aa4890cfd
Try different test result reporter.
2021-02-06 12:26:01 -08:00
Kenneth Hsu
aca2f18634
Test deliberate test failure.
2021-02-06 11:51:30 -08:00
Kenneth Hsu
3eb8e54a21
Add step to publish unit test results.
2021-02-06 11:44:02 -08:00
Kenneth Hsu
e4ea017a8c
Add workflow name.
2021-02-06 11:26:07 -08:00
Kenneth Hsu
4bec3dc381
Add step to run Utility unit tests.
2021-02-06 11:19:33 -08:00
Kenneth Hsu
1608154514
Skip build of DependencyFinder.
...
This fails with the following error:
Program.cs(42,36): error CS1503: Argument 1: cannot convert from 'string' to 'Mono.Cecil.AssemblyNameReference' [/home/runner/work/duplicati/duplicati/BuildTools/DependencyFinder/DependencyFinder.csproj]
2021-02-06 11:07:36 -08:00
Kenneth Hsu
fc249b9df3
Add steps to build projects and solutions.
2021-02-06 11:05:26 -08:00
Kenneth Hsu
f18b1699a9
Disable AppVeyor and Travis builds.
2021-02-06 10:54:25 -08:00
Kenneth Hsu
fcb3290afa
Add step to restore NuGet packages.
2021-02-06 10:53:41 -08:00
Kenneth Hsu
24d1794f28
Add step to checkout code.
2021-02-06 10:44:06 -08:00
Kenneth Hsu
dde093a332
Fix spelling.
2021-02-06 10:40:13 -08:00
Kenneth Hsu
027cccb817
Run apt-get as root.
2021-02-06 10:38:16 -08:00
Kenneth Hsu
cde257cc4e
Add initial unit test workflow definition.
...
This simply attempts to install mono on ubuntu-latest.
2021-02-06 10:30:45 -08:00
Kenneth Hsu
88f6b1e55e
Update SSH.NET to version 2020.0.1.
...
From the release notes:
Even though RFC 4253 requires that an identification string MUST be
terminated by a carriage return and line feed, this fix restores support
for banners and identification strings that are only terminated by a
line feed.
This is a workaround for an issue in version 7.4 of OpenSSH which was
fixed in version 7.5.
2021-01-24 10:14:02 -08:00
Kenneth Skovhede
c47a356d6f
Change python to python2 for tools.
...
Fixes issues #4316
2021-01-23 09:32:28 +01:00
Sergio Cambra and GitHub
f0d0350cbe
Update login.js
...
Fix login with revese proxy with base uri
I have duplicati on hostname/duplicati/, ./login.cgi requests to auth were working, sent to /duplicati/login.cgi which proxies to duplicati docker instance, however it was redirected to hostname/ instead of hostname/duplicati/. Changing / to ./ fixes it
2021-01-22 12:27:58 +01:00
Kenneth Skovhede
321fc31efd
Updated changelog in RPM source build script
2021-01-21 12:30:03 +01:00
Kenneth Skovhede
4ec1cf83d5
Updated the RPM source build to have fewer warnings and use msbuild.
2021-01-21 12:26:49 +01:00