forked from mkrypka/dotnet-caching
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.coffee
35 lines (24 loc) · 976 Bytes
/
gulpfile.coffee
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
gulp = require 'gulp'
args = require('yargs').argv
dotnet = require 'gulp-dotnet-utils'
pkg = require './package.json'
configuration = if args.debug then 'Debug' else 'Release'
gulp.task 'default', ['check-await', 'test']
gulp.task 'build', ['restore'], ->
dotnet.build configuration, ['Clean', 'Build'], toolsVersion: 14.0
gulp.task 'clean', -> dotnet.build configuration, ['Clean'], toolsVersion: 14.0
gulp.task 'test', -> dotnet.test [
"tests/Caching.Tests/bin/#{configuration}/Vtex.Caching.Tests.dll"
], if args.redis then {} else exclude: ['Redis']
gulp.task 'restore', -> dotnet.exec 'nuget restore'
gulp.task 'check-await', ->
dotnet.checkAwait 'src/**/*.cs'
gulp.task 'pack', ->
specs = ['src/Caching/Caching.nuspec']
dotnet.nuget.pack specs, './', pkg.version
gulp.task 'pack', ->
dotnet.nuget.pack 'src/Caching/Caching.csproj', pkg.version,
symbols: true
configuration: configuration
gulp.task 'bump', ->
dotnet.bump pkg.version