Index: trunk/appveyor.yml
===================================================================
--- trunk/appveyor.yml	(revision 14167)
+++ trunk/appveyor.yml	(revision 14168)
@@ -1,6 +1,3 @@
 version: '{build}'
-branches:
-  only:
-    - mirror
 image: Visual Studio 2017
 install:
@@ -8,8 +5,8 @@
   - refreshenv
 build_script:
-  - ant compile javadoc dist distmac checkstyle pmd spotbugs
+  - ant compile dist distmac checkstyle pmd spotbugs
 test_script:
-  - ant test
-after_test:
+  - ant test-unit-hardfail
+on_finish:
   - ps: |
         $wc = New-Object 'System.Net.WebClient'
Index: trunk/test/unit/org/openstreetmap/josm/gui/MainApplicationTest.java
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/gui/MainApplicationTest.java	(revision 14167)
+++ trunk/test/unit/org/openstreetmap/josm/gui/MainApplicationTest.java	(revision 14168)
@@ -7,4 +7,5 @@
 import static org.junit.Assert.assertNull;
 import static org.junit.Assert.assertTrue;
+import static org.junit.Assume.assumeFalse;
 
 import java.awt.BorderLayout;
@@ -195,4 +196,5 @@
     @Test
     public void testSetupUIManager() {
+        assumeFalse(PlatformManager.isPlatformWindows() && "True".equals(System.getenv("APPVEYOR")));
         MainApplication.setupUIManager();
         assertEquals(Config.getPref().get("laf", PlatformManager.getPlatform().getDefaultStyle()),
Index: trunk/test/unit/org/openstreetmap/josm/io/remotecontrol/RemoteControlTest.java
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/io/remotecontrol/RemoteControlTest.java	(revision 14167)
+++ trunk/test/unit/org/openstreetmap/josm/io/remotecontrol/RemoteControlTest.java	(revision 14168)
@@ -14,4 +14,5 @@
 import java.nio.file.Paths;
 import java.security.GeneralSecurityException;
+import java.security.KeyStore.TrustedCertificateEntry;
 import java.security.SecureRandom;
 import java.security.cert.X509Certificate;
@@ -27,8 +28,13 @@
 import org.junit.Test;
 import org.openstreetmap.josm.JOSMFixture;
+import org.openstreetmap.josm.TestUtils;
 import org.openstreetmap.josm.spi.preferences.Config;
 import org.openstreetmap.josm.tools.Logging;
+import org.openstreetmap.josm.tools.PlatformHookWindows;
+import org.openstreetmap.josm.tools.PlatformManager;
 
 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
+import mockit.Mock;
+import mockit.MockUp;
 
 /**
@@ -49,4 +55,15 @@
         RemoteControl.PROP_REMOTECONTROL_HTTPS_ENABLED.put(true);
         deleteKeystore();
+
+        if (PlatformManager.isPlatformWindows() && "True".equals(System.getenv("APPVEYOR"))) {
+            // appveyor doesn't like us tinkering with the root keystore, so mock this out
+            TestUtils.assumeWorkingJMockit();
+            new MockUp<PlatformHookWindows>() {
+                @Mock
+                public boolean setupHttpsCertificate(String entryAlias, TrustedCertificateEntry trustedCert) {
+                    return true;
+                }
+            };
+        }
 
         RemoteControl.start();
Index: trunk/test/unit/org/openstreetmap/josm/tools/PlatformHookWindowsTest.java
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/tools/PlatformHookWindowsTest.java	(revision 14167)
+++ trunk/test/unit/org/openstreetmap/josm/tools/PlatformHookWindowsTest.java	(revision 14168)
@@ -7,4 +7,5 @@
 import static org.junit.Assert.assertNull;
 import static org.junit.Assert.assertTrue;
+import static org.junit.Assume.assumeFalse;
 import static org.junit.Assert.fail;
 
@@ -89,4 +90,7 @@
     @Test
     public void testSetupHttpsCertificate() throws Exception {
+        // appveyor doesn't like us tinkering with the root keystore
+        assumeFalse(PlatformManager.isPlatformWindows() && "True".equals(System.getenv("APPVEYOR")));
+
         RemoteControlTest.deleteKeystore();
         KeyStore ks = RemoteControlHttpsServer.loadJosmKeystore();
