-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyorWebClient.yml
56 lines (56 loc) · 1.71 KB
/
appveyorWebClient.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
version: '1.0.{build}'
image: Visual Studio 2017
configuration: Release
branches:
only:
- master
- Develop
only_commits:
message: /buildclient:|build:/
init:
# Good practise, because Windows line endings are different from Unix/Linux ones
- cmd: git config --global core.autocrlf true
- cmd: pwd
clone_depth: 10
# environment variables
environment:
nodejs_version: '8'
ASPNETCORE_ENVIRONMENT: 'Production'
matrix:
fast_finish: true
install:
- choco install googlechrome -y --ignore-checksums
- ps: Install-Product node $Env:nodejs_version
#- npm i -g npm@latest
#- npm i -g webpack@latest
#- npm rebuild node-sass
before_build:
# Display .NET Core version
- cmd: dotnet --version
# Display minimal restore text
- cmd: dotnet restore ./WebClient/hfa.WebClient.csproj --verbosity m
build_script:
- cmd: cd ./WebClient/
#- cmd: npm i --force && npm run configure
#- cmd: npm i
- cmd: dotnet publish -c %CONFIGURATION% -r linux-x64 --verbosity m -o artifactsWebClient
artifacts:
- path: .\WebClient\artifactsWebClient
name: WebClient
type: WebDeployPackage
test_script:
# restore packages for our unit tests
- cmd: dotnet restore ../hfa.tvhLibrary.test/hfa.tvhLibrary.test.csproj --verbosity m
- cmd: dotnet restore ../hfa.synker.batch.test/hfa.synker.batch.test.csproj --verbosity m
# run the unit tests (requires changing into the test directory)
- cmd: cd ../hfa.tvhLibrary.test/
- cmd: dotnet xunit -appveyor -notrait "Category=Integration"
- cmd: cd ../hfa.synker.batch.test/
- cmd: dotnet xunit -appveyor -notrait "Category=Integration"
- cmd: cd ../WebClient && npm run test:ci
#deploy:
# - provider: Environment
# name: Synker WebClient Prod
# on:
# branch: Develop
#