Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Several updates to build #924

Merged
merged 13 commits into from
Jul 24, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Build: Update Travis to install latest mono beta and .NET Core SDK 1.0.4
  • Loading branch information
DustinCampbell committed Jul 23, 2017
commit 51683c898e60c1a8c64ffb88ae0aac5edf7e0bb7
43 changes: 2 additions & 41 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,52 +4,13 @@ dist: trusty
env:
global:
secure: m2PtYwYOhaK0uFMZ19ZxApZwWZeAIq1dS//jx/5I3txpIWD+TfycQMAWYxycFJ/GJkeVF29P4Zz1uyS2XKKjPJpp2Pds98FNQyDv3OftpLAVa0drsjfhurVlBmSdrV7GH6ncKfvhd+h7KVK5vbZc+NeR4dH7eNvN/jraS//AMJg=
mono:
- 4.8.0
mono: beta
dotnet: 1.0.4
os:
- linux
- osx
osx_image: xcode7.3

# Ensure MSBuild is installed
before_install:
- |
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
sudo apt-get -qq update
sudo apt-get install msbuild
fi

- |
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
brew update
brew install jq
brew install openssl
ln -s /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/
ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/
brew list
fi

- |
# This is a temporary fix to workaround a problem where Travis picks up a build of Mono on OSX that
# includes a broken version of MSBuild.
#
# See https://github.com/mono/msbuild/commit/cff4013ba3a69f82dc0ae96b3e15af700d8f74ef
# for the fix this is replicating.
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
MSBUILD_BIN=/Library/Frameworks/Mono.framework/Versions/4.8.0/lib/mono/msbuild/15.0/bin

if [ ! -d $MSBUILD_BIN ] || [ -f $MSBUILD_BIN/System.Reflection.Metadata.dll ]; then
echo "WORKAROUND: Time to remove System.Reflection.Metadata.dll workaround"
else
echo "WORKAROUND: Copying System.Reflection.Metadata.dll to Mono MSBuild"
sudo cp $MSBUILD_BIN/Roslyn/System.Reflection.Metadata.dll $MSBUILD_BIN/System.Reflection.Metadata.dll
fi
fi

- msbuild /version

script:
- travis_retry ./build.sh --target TravisTestAll
- ./build.sh --target Travis --archive
Expand Down