Commit graph

35 commits

Author SHA1 Message Date
Andrew Schwartzmeyer
27530c403c Use direct download URLs instead of API
GitHub's API is throttled to 60 requests per hour per IP address when
for non-authenticated calls, which was causing severe CI flakiness.
While this adds another set of URLs to update for each release, the
alternative was adding an OAuth token and maintaining its ownership.
Moreover, this code is simpler than the previous API parsing.
2016-09-02 17:17:20 -07:00
Andrew Schwartzmeyer
363657717c Handle package download failure 2016-09-02 17:17:20 -07:00
Andrew Schwartzmeyer
e337d93720 Install OpenSSL via Homebrew on macOS
Since it is required. Note that we do *not* unsafely link the OpenSSL
libraries into the system folders, as we instead patch .NET Core's
libraries to find OpenSSL in the installed location.
2016-09-02 17:17:20 -07:00
Andrew Schwartzmeyer
6b582851d6 Don't download package silently
Otherwise users think it's slow or hung.
2016-09-02 17:17:20 -07:00
Andrew Schwartzmeyer
25eab9a2e5 Quote all $variables
For paranoia.
2016-09-02 17:17:20 -07:00
Andrew Schwartzmeyer
e3cf257a7d Use hash to check for curl
Our shebang is Bash.
2016-09-02 17:17:20 -07:00
Travis Plunk
0d5ae4692b Add support for running all tests on scheduled builds
Only produce nuget packages if tests pass
2016-08-31 13:02:35 -07:00
Travis Plunk
6f1d1877de Address comments
Made AppVeyor and TravisCI use similar code
2016-08-30 11:47:40 -07:00
Travis Plunk
b7c373280c Fix issues identified in Pull Request comments 2016-08-29 14:52:50 -07:00
Travis Plunk
67ef752efb Add description of the functions in appveyor.psm1 2016-08-29 14:21:48 -07:00
Travis Plunk
f8520e06b3 Handle error and retry test results push. 2016-08-29 13:57:20 -07:00
Travis Plunk
6b994dbb2d Move the PowerShell code in appVeyor.yml to a module 2016-08-29 13:18:14 -07:00
Eris Belew
6a2911faa2 Remove wget installation; Move curl installation after version check 2016-08-21 11:27:49 -07:00
Eris Belew
bbe0dafb93 download.sh: Trap interrupt; Add sudo prompt info; Remove wget requirement
Add interrupt handler so entire script exits if user hits ctrl-c on sub-command
 Add info before prompting for password using sudo
 Remove wget requirement since OSX does not have wget in default system
 Add `-C -` to curl package download to continue or skip existing packages
2016-08-20 12:28:53 -07:00
Andrew Schwartzmeyer
72a1ebdcbb Fix error handling in download.sh
This script should be deleted now that we can wget releases.
2016-08-19 11:18:00 -07:00
Raghu Shantha [MSFT]
3913d8bea2 Update Sign-Package.ps1 to reflect prerequisites, remove the phrase 'Open' (#1816)
* Update Sign-Package.ps1

* Updated based on CR comments
2016-08-18 15:42:42 -07:00
Andrew Schwartzmeyer
552bf9b50a Fix asset download in download.sh 2016-08-18 08:30:14 -07:00
Andy Schwartzmeyer
c1faf1e6e1 Merge pull request #1864 from andschwa/public-repo
Fix scripts for public repo
2016-08-18 08:19:28 -07:00
Andrew Schwartzmeyer
f2275f9a0a Fix download.sh for public repo 2016-08-18 00:05:08 -07:00
Raghu Shantha [MSFT]
4f47b64d85 Fix docs/installation/windows.md
Also consolidate install.sh with download.sh;
remove unnecessary files;
create README.md in install.

Ran dos2unix tool to cleanup extra carriage returns at the end of lines
2016-08-17 16:18:26 -07:00
Andrew Schwartzmeyer
a9e809c18a Fix naming of Unix packages
- .NET Core RID suffixes removed
- `el7.centos` suffix added to RPM
- `1ubuntu1.14.04.1` iteration used for DEB packages

`~` cannot be used after `ubuntu1` because GitHub release renames it to
a `.`; additionally, no packages lack the final suffix `.1`. While my
machine is `.5` I could find no packages that went past `.3`, so let's
use this to indicate that it works for `14.04.1` and forward.

We are *not* recreating the alpha.9 packages, but will we rename them
accordingly. This means that the filenames will be "correct" but the
meta-data will be out-of-date.
2016-08-16 16:07:54 -07:00
Alex Jordan
b5f4e595cd Fix download script for Ubuntu 16.04 (#1826)
Kept 14.04 for CI and because 14.04 is LTS
2016-08-15 18:35:40 -07:00
Andrew Schwartzmeyer
5f396629f7 Use Ruby 2.2.1 explicitly on Travis CI OS X 2016-08-04 13:52:31 -07:00
Andrew Schwartzmeyer
120cc61a07 Downgrade to Xcode 7.3 2016-08-04 13:52:26 -07:00
Francisco Gamino
c16209e39d Enable crossgen on CI 2016-08-03 13:12:51 -07:00
Sergei Vorobev
1d8a181f60 Move GITHUB_TOKEN in tools/download.sh 2016-07-21 10:51:59 -07:00
Andrew Schwartzmeyer
af9c4cb673 Don't build packages for pull requests
Since we don't want to build packages for pull requests (as they cannot
get archived as artifacts), we need a slightly different build command,
and moving it to a script was cleaner.
2016-07-18 12:44:28 -07:00
Andrew Schwartzmeyer
0f7748a70b Add CentOS support 2016-07-18 10:59:23 -07:00
Andrew Schwartzmeyer
11d2c2c6e7 Update Start-PSBootstrap to use .NET CLI's scripts
Linux and OS X no longer install packages, instead they download the
1.0.0 uninstall and install scripts provided by .NET CLI, uninstall all
existing `dotnet` packages, and "install" the latest 1.0.0 preview2
version of `dotnet` to `~/.dotnet`, which `Start-PSBuild` automatically
picks up.

Additionally, `Start-PSBootstrap` only attempts to install dependencies
when it detects that it is on Ubuntu 14.04, otherwise it warns that
dependencies must be installed manually, and still installs `dotnet` via
their obtain script. This makes `Start-PSBootstrap` safe to run on
Debian, and usable on CentOS.
2016-06-10 16:12:01 -07:00
Andrew Schwartzmeyer
112945657c Update debug.sh script for new layout 2016-06-06 12:15:49 -07:00
Andrew Schwartzmeyer
90be3585e1 Move debug.sh 2016-06-06 12:15:49 -07:00
Andrew Schwartzmeyer
0b0b141ea5 Move download.sh script to tools tree 2016-06-06 12:15:49 -07:00
Raghu Shantha [MSFT]
6c3b64f3f2 Utility to generate a self-signed certificate and sign a given package such as OpenPowerShell.zip/appx/msi 2016-06-06 09:54:25 -07:00
Andrew Schwartzmeyer
165dbecc66 Remove nuget.exe and packages.config
Since DNX takes care of packages for us.
2015-11-23 17:53:56 -08:00
Andrew Schwartzmeyer
16a2ae2fa8 Start build refactor with top-level Makefile
- Recursively calls make in monad-linux and monad-build
- Eventually will deprecate scripts dir
- Makes monad-docker.sh shareable
2015-10-25 20:37:36 -07:00