Commit Graph

75 Commits

Author SHA1 Message Date
Travis Plunk
e4dc938732 Get macOS working and fix misc issue 2017-07-25 17:55:42 -07:00
Travis Plunk
67266f6aa0 Move Bootstrap to 'install' phase for Travis-CI (#4250) 2017-07-13 21:21:32 -07:00
Dongbo Wang
7a55bf98b2 Move powershell to .NET Core 2.0 (#3556)
This change moves powershell to .NET Core 2.0. Major changes are:
1. PowerShell assemblies are now targeting `netcoreapp2.0`. We are using `microsoft.netcore.app-2.0.0-preview1-001913-00`, which is from dotnet-core build 4/4/17. We cannot target `netstandard2.0` because the packages `System.Reflection.Emit` and `System.Reflection.Emit.Lightweight`, which are needed for powershell class, cannot be referenced when targeting `netstandard2.0`.
2. Refactor code to remove most CLR stub types and extension types.
3. Update build scripts to enable CI builds. The `-cache` section is specified to depend on `appveyor.yml`, so the cache will be invalidated if `appveyor.yml` is changed.
4. Ship `netcoreapp` reference assemblies with powershell to fix the issues in `Add-Type` (#2764). By default `Add-Type` will reference all those reference assemblies when compiling C# code. If `-ReferenceAssembly` is specified, then we search reference assemblies first, then the framework runtime assemblies, and lastly the loaded assemblies (possibly a third-party one that was already loaded).
5. `dotnet publish` generates executable on Unix platforms, but doesn't set "x" permission and thus it cannot execute. Currently, the "x" permission is set in the build script, `dotnet/cli` issue [#6286](https://github.com/dotnet/cli/issues/6286) is tracking this.
6. Replace the use of some APIs with the ones that take `SecureString`.
7. osx.10.12 is required to update to `netcoreapp2.0` because `dotnet-cli` 2.0.0-preview only works on osx.10.12.
8. Add dependency to `System.ValueTuple` to work around a ambiguous type identity issue in coreclr. The issue is tracked by `dotnet/corefx` [#17797](https://github.com/dotnet/corefx/issues/17797). When moving to newer version of `netcoreapp2.0`, we need to verify if this dependency is still needed.
2017-04-17 11:52:38 -07:00
Andrew Schwartzmeyer
8185fd9350 Add AppImage to CI 2017-02-17 11:09:36 -08:00
Sergei Vorobev
39c44b4ffc Don't allow_failures on osx (#3123) 2017-02-09 14:01:54 -08:00
Sergei Vorobev
367b04d909 Use ruby 2.3.1 for fpm on OSX (#3120) 2017-02-09 09:35:34 -08:00
James Truher [MSFT]
848948597f upload pester-tests.xml log file as an artifact (#3003) 2017-01-17 13:43:48 -08:00
Sergei Vorobev
961a76197b Replace travis.sh by travis.ps1
Fix problem with running Start-PSPester from the wrong directory
2016-11-18 17:45:57 -08:00
Andy Li
0f6d8bf077 move markdown-spellcheck installation to the install section 2016-10-31 18:02:26 -07:00
Andy Li
7147b82e9b add newline as requested 2016-10-31 18:02:26 -07:00
Andy Li
44f7951313 automatic spellchecking .md files in TravisCI (#838) 2016-10-31 18:02:26 -07:00
Andrew Schwartzmeyer
f4b565161e Remove bundler v1.13.1
The new version of bundler is buggy and causing installation of fpm to
fail, which causes builds to fail.
2016-09-26 14:51:54 -07:00
Andrew Schwartzmeyer
663e2429bc Ignore macOS failures on Travis CI (#2345)
Since the Travis CI OS X infrastructure is incredibly unstable,
we need to let the builds run on a best effort basis,
but not report failure and not hang a result until its finished.

With this setup, the Linux build dictates the success,
completely ignoring OS X.
2016-09-22 15:09:26 -07:00
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
fc2e4e0e23 Revert "Temporarily disable OS X on Travis CI"
This reverts commit bbf64d17ad.
2016-09-02 17:17:20 -07:00
Travis Plunk
3bd6a3ec99 Removed travis-ci branch restriction now that we are using forks 2016-08-29 19:50:44 -07:00
Andrew Schwartzmeyer
1a8b4e94e8 Clone 1000 commits on Travis CI (#2124)
The previous failure we saw was because the most recent annotated tag
did not exist in the previous 50 commits. In my experience we've gone
about ~300 commits between tags, so I believe 1000 to be safe, but know
100 will not be.
2016-08-29 19:26:15 -07:00
Andy Schwartzmeyer
bbf64d17ad Temporarily disable OS X on Travis CI
download.sh script is failing, working to resolve.
2016-08-18 08:49:41 -07:00
Travis Plunk
d3d3103454 Remove AWS regison from travis-ci.yml 2016-08-18 08:26:53 -07:00
Andrew Schwartzmeyer
654425059f Fix Travis CI for public repo 2016-08-18 00:05:34 -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
Andrew Schwartzmeyer
e936a7cd04 Remove Travis CI cache
It is unbearably slow on OS X.
2016-08-04 11:39:15 -07:00
Andrew Schwartzmeyer
5800b86a23 Revert "Temporarily disable OS X builds on Travis CI"
This reverts commit fef3871be2.
2016-08-04 11:03:54 -07:00
Andrew Schwartzmeyer
fef3871be2 Temporarily disable OS X builds on Travis CI
OS X is failing due to home brew's OpenSSL package changes. Until we've
resolved .NET Core's use of the libraries, we need to disable the build.
2016-08-04 10:09:44 -07:00
Andrew Schwartzmeyer
6513830e8c Whitelist master and test branches for Travis CI
Only pull requests, merges to master, and branches starting with the
prefix "test" will trigger Travis CI builds.
2016-07-24 15:30:20 -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
ea930d3346 Remove Slack CI notifications 2016-07-18 12:23:05 -07:00
Andrew Schwartzmeyer
49bd13b642 Use os instead of matrix
Travis is being picky about how this is specified.
2016-07-18 11:40:10 -07:00
Andrew Schwartzmeyer
8ef8f9fada Add GitHub token as insecure environment variable
This should enable building via PR from forks.

This token has read-only access to download the installer packages, but
should nonetheless be revoked and replaced with a wget download when the
repository goes public.
2016-07-18 10:00:46 -07:00
Andrew Schwartzmeyer
dd2f97c0aa Enable caching of dotnet and NuGet packages on CI 2016-07-13 13:56:25 -07:00
Andrew Schwartzmeyer
70ffa798a0 Switch to Xcode 8beta image
The 7.3 image is failing.
2016-07-08 13:09:35 -07:00
Andrew Schwartzmeyer
970641e691 Upload Travis CI packages to AWS
We need to cd into tools so that the downloaded PowerShell package isn't
subsequently uploaded to AWS.
2016-07-05 12:45:37 -07:00
Andrew Schwartzmeyer
985564416d Package PowerShell on Travis CI 2016-07-05 11:37:42 -07:00
Sergei Vorobev
4af2815740 don't call specific submodules init in CI: get them all 2016-07-01 13:16:52 -07:00
Andrew Schwartzmeyer
fec2cb8b74 Use publish instead of build on Travis
AppVeyor also does this, and it's the scenario our packages ship, so
it's what we should test.
2016-06-29 09:52:32 -07:00
Sergei Vorobev
963ce9c1ab Remove src/windows-build from CI builds 2016-06-20 14:40:29 -07:00
Sergei Vorobev
333a809fe8 Revert "Temporarily disable xUnit tests"
This reverts commit 3d18f454f6.
2016-06-10 07:16:33 +00:00
Andrew Schwartzmeyer
0b0b141ea5 Move download.sh script to tools tree 2016-06-06 12:15:49 -07:00
Andrew Schwartzmeyer
3d18f454f6 Temporarily disable xUnit tests 2016-05-18 20:03:57 -07:00
Andrew Schwartzmeyer
feded5d979 Import build.psm1 on Travis
`ag` ignored the `.travis.yml` when this change was made.
2016-05-18 19:48:28 -07:00
Andrew Schwartzmeyer
800fa4ca18 Remove env key from OS X build
`Start-PSBootstrap` takes care of this.
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
5c7fcbb462 Enable xUnit tests on Linux
We have to pretend they pass on OS X for now.
2016-04-14 18:07:33 -07:00
Andrew Schwartzmeyer
745fd43ede Increase ulimit on OS X 2016-04-14 09:45:18 -07:00
Andrew Schwartzmeyer
6851fe374c Enable OS X on Travis
Remove unsupported osx.10.10-x64 moniker. Use `osx_image: xcode7.3` to
get an OS X 10.11 image on Travis.
2016-04-14 09:45:18 -07:00
Andrew Schwartzmeyer
b2bc4183fe Disable Travis CI OS X support
Unfortunately, Travis CI's OS X machines are 10.9.5, per
https://docs.travis-ci.com/user/osx-ci-environment/#CI-environment-OS.
While NuGet supports the RID, .NET Core does not yet publish 10.9
packages, resulting in a build failure we can't do anything about.

I've asked for best-effort support by providing runtime packages for
10.9 in dotnet/corefx#7731.

Revert "Add OS X 10.9 runtime"

This reverts commit 19ab0de84c.
2016-04-13 19:24:12 -07:00
Andrew Schwartzmeyer
beccce54a8 Use matrix.include and fix OS X PATH 2016-04-13 19:24:12 -07:00
Andrew Schwartzmeyer
aa1af214bc Add OS X to Travis CI matrix 2016-04-13 19:24:12 -07:00
Andrew Schwartzmeyer
995eaf4c0f Update Travis to use Start-PSBootstrap 2016-04-13 19:24:11 -07:00