Skip to content

Commit

Permalink
New matrix for travis, to test against latest dotnet
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime Mangel authored and enricosada committed Feb 2, 2019
1 parent 1fa65e7 commit 2675817
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ dist: xenial # dotnet sdk 2.2 isn't installable on trusty due to https://travis-

sudo: false

# execute any number of scripts before the test run, custom env's are available as variables
before_script:
- ./travis.sh

script:
- ./build.sh All

Expand All @@ -28,7 +32,12 @@ matrix:
env:
- FSAC_TESTSUITE_CROSSGEN_NETFX=1 #works on 5.0
- FSAC_TESTSUITE_NETCORE_MODE_HTTP=0
- mono: latest
dotnet: latest
env:
- FORCE_DOTNET_VERSION=2.2.103

allow_failures:
- mono: latest
- mono: weekly
- dotnet: latest
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"sdk": {
"version": "2.1.500"
}
}
}
6 changes: 6 additions & 0 deletions travis.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

# If FORCE_DOTNET_VERSION has been setted, update global.json
if [[ ! -z $FORCE_DOTNET_VERSION ]]; then
sed -i '' -e 's,"version": ".*"$,"version": "'$FORCE_DOTNET_VERSION'",g' global.json;
fi

0 comments on commit 2675817

Please sign in to comment.