Skip to content

Commit

Permalink
Merge pull request #915 from DustinCampbell/net46-only
Browse files Browse the repository at this point in the history
Move OmniSharp to target net46 only
  • Loading branch information
DustinCampbell authored Aug 7, 2017
2 parents c208129 + 663a8e3 commit f3e1d4e
Show file tree
Hide file tree
Showing 40 changed files with 416 additions and 587 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ buildlog
/omnisharp*.tar.gz
scripts/Omnisharp*
.msbuild-*/
.msbuild/

# NuGet
*.nuget.targets
Expand All @@ -39,6 +40,7 @@ scripts/Omnisharp*
.dotnet/
.dotnet-legacy/
.dotnet-future/
.mono/
tools/*
!tools/packages.config

Expand Down
14 changes: 13 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ os:
osx_image: xcode7.3

script:
- ./build.sh --target All --archive
- ./build.sh --target All --publish-all --archive

addons:
apt:
Expand All @@ -33,6 +33,18 @@ notifications:
on_failure: always
on_pull_requests: false

before_deploy:
- |
# Only deploy OSX-specific OmniSharp from the OSX.
# All other builds should be deployed by Linux CI.
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
rm artifacts/package/omnisharp-osx.tar.gz
elif [ "$TRAVIS_OS_NAME" == "osx" ]; then
rm artifacts/package/mono.tar.gz
rm artifacts/package/omnisharp-linux-x86.tar.gz
rm artifacts/package/omnisharp-linux-x64.tar.gz
fi
deploy:
provider: releases
api_key:
Expand Down
17 changes: 8 additions & 9 deletions BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ All build related activites should be encapsulated in this file for cross-platfo

# Arguments

Note: The arguments below should prefixed with a single hyphen on Windows (PowerShell-style) and a double-hyphen on OSX/Linux.

`-target TargetName`: The name of the build task/target to execute (see below for listing and details).
Defaults to `Default`.

Expand All @@ -38,21 +40,19 @@ All build related activites should be encapsulated in this file for cross-platfo
Defaults to `Debug`.

`-install-path Path`: Path used for the **Install** target.
Defaults to `(%USERPROFILE%|$HOME)/.omnisharp/local`
Defaults to `(%USERPROFILE%|$HOME)/.omnisharp`

`-all-publish`: Publishes all platforms for the current OS. On Windows, specifying this argument would produce win7-x86 and win7-x64 builds. On OSX/Linux, this argument causes osx, linux-x86, and linux-x64 builds to be published.

`-archive`: Enable the generation of publishable archives after a build.

Note: On macOS/Linux, be sure to pass the arguments above with double slashes! (e.g. `--target TargetName`).

# Targets

**Default**: Alias for Local.

**Local**: Full build including testing for the machine-local runtime.
**Default**: Alias for All.

**All**: Same as local, but targeting all runtimes selected by `PopulateRuntimes` in `build.cake`.
Currently configured to also build for a 32-bit Windows runtime on Windows machines.
No additional runtimes are currently selected on non-Windows machines.
**All**: Full build including testing.

**Quick**: Local build which skips all testing.

Expand All @@ -76,10 +76,9 @@ A number of build-related options, including folder names for different entities

# Artifacts generated

* Binaries of OmniSharp and its libraries built for the local machine in `artifacts/publish/OmniSharp/default/{framework}/`
* OmniSharp binaries for specified runtimes `artifacts/publish/OmniSharp/{platform}/`
* Scripts to run OmniSharp at `scripts/OmniSharp(.Core)(.cmd)`
* These scripts are updated for every build and every install.
* The scripts point to the installed binary after and install, otherwise just the build folder (reset if a new build occurs without an install).
* Binaries of OmniSharp and its libraries cross-compiled for other runtimes (if selected in **PopulateRuntimes**) `artifacts/publish/OmniSharp/{runtime}/{framework}/`
* Test logs in `artifacts/logs`
* Archived binaries in `artifacts/package` (only if `-archive` used on command line)
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ init:
- git config --global core.autocrlf true
test: off # this turns of AppVeyor automatic searching for test-assemblies, not the actual testing
build_script:
- ps: .\build.ps1 All -archive
- ps: .\build.ps1 All -publish-all -archive
artifacts:
- path: artifacts/package/*.zip
deploy:
Expand Down
Loading

0 comments on commit f3e1d4e

Please sign in to comment.