-
Notifications
You must be signed in to change notification settings - Fork 2
/
appveyor.yml
106 lines (84 loc) · 3.28 KB
/
appveyor.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
version: 0.0.{build}
image: Visual Studio 2017
nuget:
disable_publish_on_pr: true
# docker only windows container, but required linuz containers
# environment:
# DOCKER_USER: roured
# DOCKER_PASS:
# secure: vlKzMvasdBb78FvDbvLRwA==
install:
- ps: echo "-------------------------------------------------"
- ps: echo "APPVEYOR_REPO_COMMIT $env:APPVEYOR_REPO_COMMIT "
- ps: echo "APPVEYOR_REPO_COMMIT_TIMESTAMP $env:APPVEYOR_REPO_COMMIT_TIMESTAMP "
- ps: echo "APPVEYOR_BUILD_VERSION $env:APPVEYOR_BUILD_VERSION"
- ps: echo "-------------------------------------------------"
- docker version
- choco install "msbuild-sonarqube-runner" -y
- choco install "graphviz" -y
- ps: Install-Product node $env:nodejs_version
- npm install -g npm
- ps: $env:path = $env:appdata + "\npm;" + $env:path
- cd ./src/ngApp
- npm install
- node --version && npm --version
for:
# configuration for "master" branch
# build in Release mode and deploy to Azure
-
branches:
only:
- master
configuration: Release
build_script:
- MSBuild.SonarQube.Runner.exe begin /k:"exampletdtb-master" /d:sonar.organization="rour-github" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.login="cbdf162317a340f70ceee07b9c6a21ec79dab3e1"
# - dotnet clean
# - dotnet restore
# - dotnet build -c Release
- ps: .\build.ps1 AllCustom -configuration release
# - ps: .\build.ps1 compile -configuration release
- MSBuild.SonarQube.Runner.exe end /d:sonar.login="cbdf162317a340f70ceee07b9c6a21ec79dab3e1"
- ls -lha
- ps: echo "$env:DOCKER_USER"
- echo " *master* "
# - dotnet publish -c Release
# - ps: docker build -t tdtb-web -f docker/Dockerfile-Web .
# - ps: docker login -u="$env:DOCKER_USER" -p="$env:DOCKER_PASS"
# - ps: docker tag tdtb-web roured/tdtb-web:$env:APPVEYOR_BUILD_VERSION
# - ps: docker tag tdtb-web roured/tdtb-web:latest
# - ps: docker push roured/tdtb-web:$env:APPVEYOR_BUILD_VERSION
# - ps: docker push roured/tdtb-web:latest
# - ps: docker logout
cache:
- '%USERPROFILE%\.nuget\packages'
# configuration for all branches starting from "dev-"
# build in Debug mode and deploy locally for testing
-
branches:
only:
- dev
configuration: Debug
build_script:
- MSBuild.SonarQube.Runner.exe begin /k:"exampletdtb-dev" /d:sonar.organization="rour-github" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.login="cbdf162317a340f70ceee07b9c6a21ec79dab3e1"
# - dotnet clean
# - dotnet restore
# - dotnet build -c Debug
- ps: .\build.ps1 AllCustom -configuration debug
# - ps: .\build.ps1 compile -configuration debug
# yes, build in Debug, publish in Release, check DockerFile - path to Release folder
# - dotnet publish -c Release
- MSBuild.SonarQube.Runner.exe end /d:sonar.login="cbdf162317a340f70ceee07b9c6a21ec79dab3e1"
- ls -lha
- echo " *dev* "
# - ps: docker build -t tdtb-web -f docker/Dockerfile-Web .
# - ps: docker login -u="$env:DOCKER_USER" -p="$env:DOCKER_PASS"
# - ps: docker tag tdtb-web roured/tdtb-web:staging
# - ps: docker push roured/tdtb-web:staging
# - ps: docker logout
cache:
- '%USERPROFILE%\.nuget\packages'
# "fall back" configuration for all other branches
# no "branches" section defined
# do not deploy at all
-
configuration: Debug