Skip to content

Commit 69e11b8

Browse files
committed
Try again building/publishing with Linux
1 parent 671ed74 commit 69e11b8

File tree

3 files changed

+26
-3
lines changed

3 files changed

+26
-3
lines changed

.travis.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,20 @@ sudo: false
44
solution: FluentMigrator.sln
55
mono: latest
66
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
718
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'

myget-upload.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
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

nuget-upload.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
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

0 commit comments

Comments
 (0)