File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,9 @@ install:
10
10
- nuget install ./OptimizelySDK.Tests/packages.config -OutputDirectory ./packages
11
11
- nuget install NUnit.Runners -Version 2.6.4 -OutputDirectory ./testrunner
12
12
script :
13
- - xbuild /p:Configuration=Release ./OptimizelySDK.Travis.sln
13
+ - xbuild /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=$TRAVIS_BUILD_DIR/keypair.snk /p: Configuration=Release ./OptimizelySDK.Travis.sln
14
14
- mono ./testrunner/NUnit.Runners.2.6.4/tools/nunit-console.exe ./OptimizelySDK.Tests/bin/Release/OptimizelySDK.Tests.dll
15
+ - find . -path './OptimizelySDK*bin/Release/OptimizelySDK*.dll' -not -regex '.*Tests.*' -print0 | while IFS= read -r -d '' file; do sn -R $file ./keypair.snk; done
15
16
after_success :
16
17
- pip install --user awscli
17
18
- find . -path './OptimizelySDK*bin/Release/OptimizelySDK*.dll' -not -regex '.*Tests.*' -print0 | while IFS= read -r -d '' file; do (AWS_ACCESS_KEY_ID=$OFTA_KEY AWS_SECRET_ACCESS_KEY=$OFTA_SECRET AWS_DEFAULT_REGION=$OFTA_REGION aws s3 cp $file s3://optly-fs-travisci-artifacts/${TRAVIS_REPO_SLUG}/${TRAVIS_BUILD_NUMBER}/${TRAVIS_JOB_NUMBER}/$(basename $file)-unsigned); done
44
45
install :
45
46
- dotnet restore OptimizelySDK.NetStandard16/OptimizelySDK.NetStandard16.csproj
46
47
script :
47
- - dotnet build OptimizelySDK.NetStandard16/OptimizelySDK.NetStandard16.csproj
48
+ - dotnet build OptimizelySDK.NetStandard16/OptimizelySDK.NetStandard16.csproj -c dotnet.config
49
+ - sn -R ./OptimizelySDK.NetStandard16/bin/dotnet.config/netstandard1.6/OptimizelySDK.NetStandard16.dll ./keypair.snk
48
50
# TODO: no dotnet test yet for NetStandard16
49
51
after_success :
50
52
- pip install --user awscli
51
- - (AWS_ACCESS_KEY_ID=$OFTA_KEY AWS_SECRET_ACCESS_KEY=$OFTA_SECRET AWS_DEFAULT_REGION=$OFTA_REGION aws s3 cp ./OptimizelySDK.NetStandard16/bin/Debug /netstandard1.6/OptimizelySDK.NetStandard16.dll s3://optly-fs-travisci-artifacts/${TRAVIS_REPO_SLUG}/${TRAVIS_BUILD_NUMBER}/${TRAVIS_JOB_NUMBER}/OptimizelySDK.NetStandard16.dll-unsigned)
53
+ - (AWS_ACCESS_KEY_ID=$OFTA_KEY AWS_SECRET_ACCESS_KEY=$OFTA_SECRET AWS_DEFAULT_REGION=$OFTA_REGION aws s3 cp ./OptimizelySDK.NetStandard16/bin/dotnet.config /netstandard1.6/OptimizelySDK.NetStandard16.dll s3://optly-fs-travisci-artifacts/${TRAVIS_REPO_SLUG}/${TRAVIS_BUILD_NUMBER}/${TRAVIS_JOB_NUMBER}/OptimizelySDK.NetStandard16.dll-unsigned)
Original file line number Diff line number Diff line change
1
+ {
2
+ "buildOptions": {
3
+ "keyFile": "keypair.snk"
4
+ }
5
+ }
You can’t perform that action at this time.
0 commit comments