问题标签 [appveyor]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
204 浏览

powershell - 重新启动使用 Appveyor 部署的 Azure Web 应用程序 (aspnet5 rc1-final)

我正在使用 Appveyor 将我的 aspnet5 (rc1-final) 站点部署到使用 Web 部署的 Azure Web 应用程序(站点)。部署步骤工作正常,但我需要使用 Azure 门户手动重新启动站点,这很烦人。

我读到的是网络应用程序不会自动重启?

我曾尝试使用 powershell 重新启动站点,但它似乎不起作用,或者我做错了什么?

这是我使用 atm 的 powershell 脚本。

我尝试使用 just- ps: Restart-AzureWebsite -Name "sitename"但 Azure 抱怨订阅名称,所以我添加了它。我正在将 Visual Studio Premium 与 MSDN 一起使用,很明显它不能用作订阅名称?

是否可以使用 powershell 重新启动站点,或者这是一个死胡同?

0 投票
1 回答
1037 浏览

nuget - How to publish beta nuget packages out of AppVeyor

Here is the behavior I'm trying to achieve in AppVeyor

  1. Build the code (stamp AssemblyInfo with 1.2.3.{build})
  2. Test the code
  3. Create the nuget package if the tests passed
  4. Publish the beta package if the package created successfully (1.2.3-beta-{build})
  5. Also make the package available in artifacts.

Ideally when publishing a nuget package it would be published as prerelease. In NuGet, this is done by adding alpha characters to the end of the package version. It is also considered bad practice to overwrite an existing package (indeed, many nuget implementations do not allow this).

AppVeyor does a good job of building and testing software out of github, but I don't seem to be able to control the nuget package version.

Given: A package with the next semantic version of 1.2.3 I would expect the AppVeyor {version} variable to equate to 1.2.3.{build} I would expect the nuget package version to equate to 1.2.3-beta-{build}

The first thing I tried was using variables in the {version} box. Apparently this is not allowed. AppVeyor seems to only do variable substitution for {branch} and {build} as part of the {version}. This means I'll have to maintain a separate variable for the semantic version.

The next challenge I ran into is that there's no way to set the nuget package version through the UI. It wants to default to be the same as the AppVeyor build version.

I decided to try creating the package using Powershell after the tests run. This works, but the Nuget Publish step wants to run before the package is created and there doesn't seem to be a way to control the execution order.

I think I'm on the wrong track. I need a conceptual reset.

Here is my appveyor.yml in its current (incorrect) state:

How do I fix this? Can I get the behavior I want?

0 投票
1 回答
552 浏览

visual-studio - 在同一个解决方案中分别部署两个 ASP.NET web api 项目

我在同一个解决方案中有两个 ASP.NET web api .csproject 项目。如何在 Appveyor 中配置构建/部署步骤,以便将它们部署到我服务器上的两个单独的 IIS 网站?

如果这意味着我必须在 Appveyor 中创建两个项目,我可以接受。

0 投票
0 回答
397 浏览

qt - 使用 C++ 11 的简单 Qt 应用程序不能使用 MinGW32 编译

我正在尝试在Appveyor上传递我的构建,但我遇到了编译问题。

给定以下简单的Qt项目:

和源代码:

我有以下错误:

如果我从ConsoleTest.pro中删除以下行,错误就会消失:

我正在使用Qt 5.4MinGW 4.9.1 32 bit

任何想法?

0 投票
1 回答
2493 浏览

powershell - 重定向到“NUL”失败:FileStream 不会打开 Win32 设备

我正在尝试从choco installAppVeyor 中的命令中删除一些冗长的内容。这是我一直在尝试的(如建议here):

但是它失败了:

所以我的问题是有没有办法choco install在 AppVeyor 的 PowerShell 中抑制命令的冗长?

0 投票
1 回答
47 浏览

node.js - 如何将持续集成与 Microsoft Azure 集成

我正在开发一个 Node.js 应用程序,但我手动将此应用程序部署在 Azure 虚拟机 (Ubuntu) 中。我想将它从特定的 GitHub 分支(主)部署到虚拟机中,我可以使用 Appveyor 吗?

0 投票
2 回答
379 浏览

appveyor - 使用最新的 ASP.NET 5 在 Appveyor 上构建错误

我正在尝试构建一个 ASP.NET 5 web api 并在 Appveyor 上构建它。我收到此错误:

构建开始 git clone -q --branch=master https://github.com/nikolaschou/TodolistService01.git C:\projects\todolistservice01 git checkout -qf 3c97bb95ecf54662069b6ae8fa25a60f598a564d msbuild "TodolistService.sln" /verbosity:minimal /logger:"C :\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" Microsoft (R) Build Engine 版本 14.0.24720.0 版权所有 (C) Microsoft Corporation。版权所有。

在以下文件夹中找不到 DNX 运行时 dnx-clr-win-x86.1.0.0-rc1-update1:​​C:\Users\appveyor.dnx\runtimes C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14。 0\DNX\Microsoft.DNX.targets(126,5):错误:需要安装 Dnx 运行时包。有关更多详细信息,请参见输出窗口。[C:\projects\todolistservice01\src\TodolistService\TodolistService.xproj] 命令以代码 1 退出

本项目基于 .NET framework 4.6.1 和 ASP.NET 5,参考 DNX 4.5.1 和 DNX Core 5.0。

随意通过构建这个公共存储库来重现错误: https ://github.com/nikolaschou/TodolistService01

谁能解释它为什么失败?Appveyor 还没有为这些新版本做好准备吗?

0 投票
2 回答
965 浏览

api - 从 appveyor 向私人频道发送 Slack 通知时出错

我尝试使用以下配置为Appveyor的私人频道设置 Slash 通知( xxxxxx是我在此处加密的令牌):

我的Appveyor 构建显示以下错误:

使用以下 URL 测试 Slash api 时,它可以工作:https ://slack.com/api/chat.postMessage?token=xxxxxx&channel=dev&text=hello&pretty=1 (其中xxxxxx是我的未加密令牌)。

如果频道不是私有的,它也可以工作。

0 投票
1 回答
5015 浏览

c# - 确定 DNX 项目的当前路径

目标

对于集成测试,我想加载自定义 XML 配置。此 XML 位于我的集成测试项目中的一个文件夹中。

对于进一步的目标,我想使用新的 DNX 项目。我知道它们仍在预览中。

本地测试工作正常。现在的问题是,我不能使用相对路径,因为测试系统当前目录信息不是我项目的项目文件夹。AppVeyor 也有同样的问题。

构建代理在另一个文件夹中启动,因此相对路径信息错误并失败。这里没有惊喜。

我试图用这个片段来解决这个问题:

问题

这里的问题是:由于新的 DNX 运行时,它返回的不是我的项目和/或程序集的位置,而是返回运行时文件夹:

如果我要求 CodeBase 或 Executing/CallingAssembly,则行为相同。

使用“旧”的简单 C# 项目和 MsTest,我得到了预期的路径。

Environment.CurrentDirectory不适用于 AppVeyor,因为进程未在项目文件夹中启动,然后此命令返回另一个路径(已启动项目的路径)。

问题

在这里使用相对路径的正确方法是什么?

环境

  • VS 2015 更新 1
  • DNX 项目模板
  • xUnit 配置
  • AppVeyor 构建系统
0 投票
1 回答
539 浏览

github - GitHub 组织的 AppVeyor 帐户

我是开发 FOSS 项目的 GitHub 组织的一员。我想使用 AppVeyor 在 Windows 上运行 CI 测试。目前,我看到了我自己的项目分支,以及一些其他在 GitHub 中将我命名为合作者的人的分支。不过,我没有看到项目的上游。显然,我作为 GitHub 组织的管理员不足以在 AppVeyor 中提供对它的访问。但无论如何,在我的帐户下设置它可能是错误的方法。可能这应该在组织的名称下。

为此,我想为该组织拥有一个 AppVeyor 帐户,并为其成员提供适当的权限。阅读http://www.appveyor.com/docs/team-setup听起来 AppVeyor 可以区分用户(具有唯一的电子邮件和密码)和帐户(项目所属),并且单个用户显然可以属于多个帐户,而一个帐户可以有多个具有不同角色的用户。从这个意义上说,我想创建一个新帐户而不为其创建用户。相反,我作为 GitHub 登录标识的现有用户,想成为这个新帐户的第一个管理员,并准备更改设置并添加更多用户。我该怎么做呢?