Skip to content

Commit 2d5fd71

Browse files
committed
Have AppVeyor start the AzureStorageEmulator before running Tests
1 parent a2cb4cf commit 2d5fd71

File tree

2 files changed

+62
-54
lines changed

2 files changed

+62
-54
lines changed

appveyor.yml

Lines changed: 56 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,56 @@
1-
os: Visual Studio 2015
2-
3-
# Version format
4-
version: 0.5.0.{build}
5-
6-
cache:
7-
- src\packages -> **\packages.config # preserve "packages" directory in the root of build folder but will reset it if packages.config is modified
8-
9-
# UMBRACO_PACKAGE_PRERELEASE_SUFFIX if a rtm release build this should be blank, otherwise if empty will default to alpha
10-
# example UMBRACO_PACKAGE_PRERELEASE_SUFFIX=beta
11-
init:
12-
- set UMBRACO_PACKAGE_PRERELEASE_SUFFIX=
13-
14-
build_script:
15-
- build-appveyor.cmd
16-
17-
# Turn tests off just now
18-
test: off
19-
20-
artifacts:
21-
- path: artifacts\*.nupkg
22-
- path: artifacts\*.zip
23-
24-
deploy:
25-
# MyGet Deployment for builds & releases
26-
- provider: NuGet
27-
server: https://www.myget.org/F/umbracofilesystemproviders-azure/api/v2/package
28-
symbol_server: https://nuget.symbolsource.org/MyGet/umbracofilesystemproviders-azure
29-
api_key:
30-
secure: fz0rUrt3B1HczUC1ZehwVsrFSWX9WZGDQoueDztLte9/+yQG+BBU7UrO+coE8lUf
31-
artifact: /.*\.nupkg/
32-
on:
33-
branch: develop
34-
35-
# GitHub Deployment for releases
36-
- provider: GitHub
37-
auth_token:
38-
secure: fjqBa6SK926I+Zf/gRUAAMlMKGuxYS6VVUKvFS6ClY9EbAKcAJw7Ia/a1tW5ELmD
39-
artifact: /.*\.zip/ # upload all Zip packages to release assets
40-
draft: false
41-
prerelease: false
42-
on:
43-
branch: master
44-
appveyor_repo_tag: true # deploy on tag push only
45-
46-
# NuGet Deployment for releases
47-
- provider: NuGet
48-
server:
49-
api_key:
50-
secure: kHataLiMb9nmJEdwBE4BTXvA4nOpoD3Fw14zVeDP6Vs0ZXpL7c8qeegMv/jMZECP
51-
artifact: /.*\.nupkg/
52-
on:
53-
branch: master
54-
appveyor_repo_tag: true
1+
os: Visual Studio 2015
2+
3+
# Version format
4+
version: 0.5.0.{build}
5+
6+
cache:
7+
- src\packages -> **\packages.config # preserve "packages" directory in the root of build folder but will reset it if packages.config is modified
8+
9+
# UMBRACO_PACKAGE_PRERELEASE_SUFFIX if a rtm release build this should be blank, otherwise if empty will default to alpha
10+
# example UMBRACO_PACKAGE_PRERELEASE_SUFFIX=beta
11+
init:
12+
- set UMBRACO_PACKAGE_PRERELEASE_SUFFIX=
13+
14+
build_script:
15+
- build-appveyor.cmd
16+
17+
before_test:
18+
- cmd: '"%programfiles(x86)%\Microsoft SDKs\Azure\Storage Emulator\AzureStorageEmulator.exe" start'
19+
# Turn tests off just now
20+
test: on
21+
22+
artifacts:
23+
- path: artifacts\*.nupkg
24+
- path: artifacts\*.zip
25+
26+
deploy:
27+
# MyGet Deployment for builds & releases
28+
- provider: NuGet
29+
server: https://www.myget.org/F/umbracofilesystemproviders-azure/api/v2/package
30+
symbol_server: https://nuget.symbolsource.org/MyGet/umbracofilesystemproviders-azure
31+
api_key:
32+
secure: fz0rUrt3B1HczUC1ZehwVsrFSWX9WZGDQoueDztLte9/+yQG+BBU7UrO+coE8lUf
33+
artifact: /.*\.nupkg/
34+
on:
35+
branch: develop
36+
37+
# GitHub Deployment for releases
38+
- provider: GitHub
39+
auth_token:
40+
secure: fjqBa6SK926I+Zf/gRUAAMlMKGuxYS6VVUKvFS6ClY9EbAKcAJw7Ia/a1tW5ELmD
41+
artifact: /.*\.zip/ # upload all Zip packages to release assets
42+
draft: false
43+
prerelease: false
44+
on:
45+
branch: master
46+
appveyor_repo_tag: true # deploy on tag push only
47+
48+
# NuGet Deployment for releases
49+
- provider: NuGet
50+
server:
51+
api_key:
52+
secure: kHataLiMb9nmJEdwBE4BTXvA4nOpoD3Fw14zVeDP6Vs0ZXpL7c8qeegMv/jMZECP
53+
artifact: /.*\.nupkg/
54+
on:
55+
branch: master
56+
appveyor_repo_tag: true

src/UmbracoFileSystemProviders.Azure.Tests/app.config

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,10 @@
2020
</dependentAssembly>
2121
</assemblyBinding>
2222
</runtime>
23+
<appSettings>
24+
<!--
25+
Enables the development mode for testing. Addition changes to the FileSystemProviders.config are also required
26+
-->
27+
<add key="AzureBlobFileSystem.UseStorageEmulator" value="true" />
28+
</appSettings>
2329
</configuration>

0 commit comments

Comments
 (0)