-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbitbucket-pipelines.yml
45 lines (39 loc) · 1.04 KB
/
bitbucket-pipelines.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
image: dbones/monocore:1.1-2.0-sdk
pipelines:
default:
- step:
name: build
script:
- cd src
- dotnet restore
- msbuild /target:Build /p:Configuration=Release /p:BuildNumber=$BITBUCKET_BUILD_NUMBER
artifacts: # defining the artifacts to be passed to each future step.
- src/**
- parallel:
- step:
name: test
script:
- pwd
- cd src
- dotnet test --no-build --configuration Release
services:
- document
- step:
name: package
script:
- pwd
- cd src
- dotnet pack --no-build --configuration Release --output ../nupkgs
- step:
deployment: production
name: Deploy to test
trigger: manual
script:
- echo "Deploying to test environment"
- pwd
- cd src -k $
- dotnet nuget push $NUGET
definitions:
services:
document:
image: couchdb