Skip to content

Commit a46c04b

Browse files
author
erwan-joly
committed
add ci
1 parent 8d38c41 commit a46c04b

File tree

9 files changed

+148
-709
lines changed

9 files changed

+148
-709
lines changed

.github/FUNDING.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# These are supported funding model platforms
2+
3+
github: 0Lucifer0
4+
patreon: NosCore
5+
ko_fi: noscoreio
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
5+
---
6+
7+
**Describe the bug**
8+
A clear and concise description of what the bug is.
9+
10+
**To Reproduce**
11+
Steps to reproduce the behavior:
12+
1. Go to '...'
13+
2. Click on '....'
14+
3. Scroll down to '....'
15+
4. See error
16+
17+
**Expected behavior**
18+
A clear and concise description of what you expected to happen.
19+
20+
**Screenshots**
21+
If applicable, add screenshots to help explain your problem.
22+
23+
**Additional context**
24+
Add any other context about the problem here.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
5+
---
6+
7+
**Is your feature request related to a problem? Please describe.**
8+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
9+
10+
**Describe the solution you'd like**
11+
A clear and concise description of what you want to happen.
12+
13+
**Describe alternatives you've considered**
14+
A clear and concise description of any alternative solutions or features you've considered.
15+
16+
**Additional context**
17+
Add any other context or screenshots about the feature request here.

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,4 @@ fabric.properties
495495
### VisualStudio Patch ###
496496
# By default, sensitive information, such as encrypted password
497497
# should be stored in the .pubxml.user file.
498-
/build/*.nupkg
499498
/build/netstandard2.*
500-
/build/netstandard3.*
501-
/build/netcoreapp3.*

.travis.yml

Lines changed: 50 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,56 @@
11
language: csharp
22
mono: none
3-
sudo: required
43
dist: xenial
4+
os: linux
55
addons:
6-
snaps:
7-
- name: dotnet-sdk
8-
classic: true
9-
channel: latest/beta
10-
sudo: required
11-
language: csharp
12-
mono: none
13-
script:
14-
- sudo snap alias dotnet-sdk.dotnet dotnet
15-
- dotnet --version
16-
- dotnet restore
17-
- dotnet build
18-
- dotnet test
19-
global:
6+
snaps:
7+
- name: dotnet-sdk
8+
confinement: classic
9+
channel: 3.1/stable
10+
install:
11+
- 'export PATH="$PATH:/home/travis/.dotnet/tools"'
12+
- 'export PATH="$PATH:$HOME/.local/bin"'
13+
- pip install --user awscli
14+
- sudo snap alias dotnet-sdk.dotnet dotnet
15+
- dotnet --version
16+
env:
17+
global:
2018
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
2119
- DOTNET_CLI_TELEMETRY_OPTOUT=1
20+
jobs:
21+
include:
22+
- stage: test_unit_testing
23+
name: Run tests on NosCore.Algorithm
24+
script:
25+
- dotnet restore
26+
- dotnet build
27+
- dotnet test test/NosCore.Algorithm.Tests -v m
28+
- stage: release_nuget_packages
29+
name: Build NosCore.Algorithm package (nuget)
30+
if: (tag =~ /^((\d+\.)+\d+)/)
31+
script:
32+
- dotnet restore
33+
- dotnet build -c Release
34+
- dotnet pack -c Release -o /tmp/nupkgs -v m -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg
35+
deploy:
36+
provider: script
37+
script: dotnet nuget push /tmp/nupkgs/NosCore.Algorithm.${TRAVIS_TAG}.nupkg -k ${NUGET_API_KEY} -s https://api.nuget.org/v3/index.json
38+
edge: true
39+
cleanup: false
40+
'on':
41+
tags: true
42+
- stage: release_github
43+
name: Publish Release on GitHub
44+
if: (tag =~ /^((\d+\.)+\d+)/)
45+
script:
46+
- dotnet restore
47+
- dotnet build -c Release
48+
- dotnet pack -c Release -o /tmp/nupkgs -v m
49+
deploy:
50+
provider: releases
51+
edge: true
52+
token: ${GITHUB_TOKEN}
53+
file: /tmp/nupkgs/NosCore.Algorithm.${TRAVIS_TAG}.nupkg
54+
cleanup: false
55+
'on':
56+
tags: true

0 commit comments

Comments
 (0)