-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
36 lines (30 loc) · 948 Bytes
/
.gitlab-ci.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
image: mcr.microsoft.com/dotnet/core-nightly/sdk:3.1-alpine
stages:
- build
- test
variables:
GIT_SUBMODULE_STRATEGY: recursive
before_script:
- "dotnet restore"
build:
stage: build
before_script:
- "apk add --update npm" # install npm
- "dotnet tool install ElectronNET.CLI -g" # install ElectronNET.CLI
- "export PATH=\"$PATH:/root/.dotnet/tools\"" # add dotnet tools to PATH
script:
- "cd ./src/PoECommerce.Client"
- "dotnet publish -r win-x64 -c Release --output \"./obj/desktop/win/bin\"" # electronize build does it, remove this line once it starts to work
# - "electronize build /target win" not working on linux at the moment
only:
- merge_requests
- master
- develop
test:
stage: test
script:
- "dotnet test"
only:
- merge_requests
- master
- develop