File tree Expand file tree Collapse file tree 3 files changed +26
-3
lines changed Expand file tree Collapse file tree 3 files changed +26
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,20 @@ sudo: false
4
4
solution : FluentMigrator.sln
5
5
mono : latest
6
6
dotnet : 2.1.300-preview2-008533
7
+ git :
8
+ depth : false
9
+ env :
10
+ global :
11
+ - secure : LBwjIieB3lGAb21LFO75eW42F3gm4Af+Wd/y37gbAJC9WXLO6i4aLOIDjaheq9wZEWAjsjLrG9aDf2YgCoiboGLhIVVS2CUEcLL8v9A8fdwG0MMdNbJ+HiwOCro97lZywT32yQ6dDzTf2xcUWufQ2YhQXBE52Ym6hMjkm5iaWnY=
12
+ - secure : SB15HtRpZMuVKKzQ1jGyFqAFb+Dvd1JfB2s7yTp5hd95XSKJ3kS/yTB3edlEpCLi9KZlllBnf7OqoOhUz5QlAjpIRV8VuUUy1YZmMG8V6gTgU0xdWkDUnw83fuDyHlyfQwg+J5UrsDYKq5S+zisqxn4+L792mqAvqJMo25x8rlM=
13
+ before_script :
14
+ - nuget install GitVersion.CommandLine -Version 4.0.0-beta0012 -Prerelease
15
+ - export VERSION_SUFFIX=$(mono GitVersion.CommandLine.4.0.0-beta0012/tools/GitVersion.exe /showvariable PreReleaseTag)
16
+ - echo Using VersionSuffix=$VERSION_SUFFIX
17
+ - chmod a+x ./*.sh
7
18
script :
8
- - dotnet build ./FluentMigrator.sln
9
- - dotnet test ./test/FluentMigrator.Tests/FluentMigrator.Tests.csproj
10
- --filter 'TestCategory!=NotWorkingOnMono&(TestCategory!=Integration|(TestCategory=Integration&(TestCategory=SQLite)))'
19
+ - dotnet pack ./FluentMigrator.sln --version-suffix "$(VERSION_SUFFIX)" -c "Release" -o "$TRAVIS_BUILD_DIR/output"
20
+ - dotnet test ./test/FluentMigrator.Tests/FluentMigrator.Tests.csproj --filter 'TestCategory!=NotWorkingOnMono&(TestCategory!=Integration|(TestCategory=Integration&(TestCategory=SQLite)))'
21
+ after_success :
22
+ - ' [[ "$TRAVIS_PULL_REQUEST" == "false" && "$TRAVIS_BRANCH" == release/* ]] && ./myget-upload.sh'
23
+ # - '[[ "$TRAVIS_PULL_REQUEST" == "false" && "$TRAVIS_TAG" != "" ]] && ./nuget-upload.sh'
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ for pkg in output/* ; do
3
+ [ -e " $pkg " ] || continue
4
+ nuget push " $pkg " " $MYGET_API_KEY " -Source " https://www.myget.org/F/fluent-migrator/api/v2/package"
5
+ done
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ for pkg in output/* ; do
3
+ [ -e " $pkg " ] || continue
4
+ nuget push " $pkg " " $NUGET_API_KEY " -Source " https://api.nuget.org/v3/index.json"
5
+ done
You can’t perform that action at this time.
0 commit comments