Commit Graph
100 Commits
Author SHA1 Message Date
Andrew Schwartzmeyer 5004839f63 Pin NuGet packages
Using new ASP.NET Release feed and pinned package versions.

Thanks Garret!
2015-12-01 10:56:56 -08:00
Andrew Schwartzmeyer 6f151ab2c4 Bump DNVM version in scripts 2015-12-01 10:47:10 -08:00
Andrew Schwartzmeyer f578b9dce1 Remove restore.sh because of global.json
`dnu restore` works appropriately with the global.json to restore all
the pacakges
2015-12-01 10:46:13 -08:00
Andrew Schwartzmeyer e93932565d Add more PowerShell runspace tests 2015-12-01 10:45:20 -08:00
Andrew Schwartzmeyer bb4b388c89 Move TypeCatalog code to System.Management.Automation
We're keeping it in the superproject for now, as it's the only build
system with a dependency on the file. However, we have to move it out of
the host because the unit tests also need to initialize the type catalog.
2015-11-30 13:14:23 -08:00
Andrew Schwartzmeyer ddd350afeb Update Makefile for common DNX targets
This Makefile should probably go away, but I gave it a quick update to
so that there's a familiar interface.
2015-11-24 15:18:24 -08:00
Andrew Schwartzmeyer 15d0bf2637 Add test script to run xUnit tests 2015-11-24 15:17:54 -08:00
Andrew Schwartzmeyer 08f7d2b3ca Add global.json for dnu restore from root 2015-11-24 15:07:55 -08:00
Andrew Schwartzmeyer d058a217d0 Track long type in TypeCatalog 2015-11-24 15:06:56 -08:00
Andrew Schwartzmeyer ccb7ba8d32 Use named resources for Commands.Utility 2015-11-24 15:06:19 -08:00
Andrew Schwartzmeyer 9627acca5a Copy ps1xml files to SMA package
These will sometimes need to be manually updated, but this is the best
we can do for now to enable `dnx build` and `dnx run` without
publishing.
2015-11-24 15:05:31 -08:00
Andrew Schwartzmeyer 57ba5eb627 Change package versions back to 3.0.0.0
And fix correctly using assembly-info.cs
2015-11-23 19:43:46 -08:00
Andrew Schwartzmeyer 8994aea430 Fix up dirty build scripts 2015-11-23 19:43:46 -08:00
Andrew Schwartzmeyer fc0506f6bc Clean up assembly infos 2015-11-23 19:29:12 -08:00
Andrew Schwartzmeyer 6ff0b44481 Change SMA assembly info for DNX xUnit runner 2015-11-23 17:54:31 -08:00
Andrew Schwartzmeyer 94d3bba2a2 Move xUnit tests for DNX xUnit runner 2015-11-23 17:54:31 -08:00
Andrew Schwartzmeyer 975b389e84 Update publish script for move to src subtree 2015-11-23 17:54:31 -08:00
Andrew Schwartzmeyer 3bb7c2a994 Change source file paths for move to src subtree 2015-11-23 17:54:30 -08:00
Andrew Schwartzmeyer d6416e64e2 Move DNX assemblies to src subtree 2015-11-23 17:54:30 -08:00
Andrew Schwartzmeyer 3f0fe51005 Name the PowerShell host "PSL" 2015-11-23 17:54:30 -08:00
Andrew Schwartzmeyer cc2bdee9ec Add runspace test without InitialSessionState 2015-11-23 17:54:30 -08:00
Andrew Schwartzmeyer c5d60889e2 Fix versions of generated assemblies
The "Snapins" were attempting to load version 1.0.0.0, but for some
reason we were building with version 3.0.0.0.
2015-11-23 17:54:30 -08:00
Andrew Schwartzmeyer cc96c4cd20 Define NOALC for AssemblyLoadContext replacement 2015-11-23 17:54:30 -08:00
Andrew Schwartzmeyer c547846fe5 Fix Commands.Management files
These was somehow accidentally the Commands.Utility files.
2015-11-23 17:54:30 -08:00
Andrew Schwartzmeyer 0ee8a0957b Use compileFiles and sort Commands.Utility sources 2015-11-23 17:54:30 -08:00
Andrew Schwartzmeyer 356ec80790 Use packInclude instead of content for *ps1xml
The latter doesn't actually place items in the NuGet package. The
former, while undocumented, exists in the schema and works as intended.
2015-11-23 17:54:30 -08:00
Andrew Schwartzmeyer abc989f8ac Use compile and compileFiles 2015-11-23 17:54:30 -08:00
Andrew Schwartzmeyer 08c228f32b Add System.Reflection dependency to Host 2015-11-23 17:54:30 -08:00
Andrew Schwartzmeyer 3cba5768b3 Bump coreclr version in publish script 2015-11-23 17:54:30 -08:00
Andrew Schwartzmeyer b9f069cb22 Guard TrackAssembly
Because it can fail sometimes
2015-11-23 17:54:30 -08:00
Andrew Schwartzmeyer 649629a18f Add Docker user to sudo group 2015-11-23 17:54:30 -08:00
Andrew Schwartzmeyer a86bc387b9 Fix NuGet feeds 2015-11-23 17:54:30 -08:00
Andrew Schwartzmeyer e3e481cac7 Switch packages to latest build 2015-11-23 17:54:30 -08:00
Andrew Schwartzmeyer 7b3694a82f Generate TypeCatalog in managed host
Refactor Main into own static class

So that the Listener doesn't get instantiated until after the
TypeCatalog has been generated.
2015-11-23 17:54:30 -08:00
Andrew Schwartzmeyer dad2ae89b3 Fix SMA's content section
I swear I already did this.
2015-11-23 17:54:30 -08:00
Andrew Schwartzmeyer 74112a8387 Mount to /opt/src in Docker
Because DNX is installed to /opt/dnx
2015-11-23 17:54:30 -08:00
Andrew Schwartzmeyer cc05381fe6 Add quickly written build scripts
These are from from correct.
2015-11-23 17:54:30 -08:00
Andrew Schwartzmeyer 7b8a323cb5 Make Main() public because a private main is bad
This was very, very, frustrating.
2015-11-23 17:54:30 -08:00
Andrew Schwartzmeyer 4e83bdf23c Fix SecureString package
For some reason the newer package was removed from the feeds.
2015-11-23 17:54:30 -08:00
Andrew Schwartzmeyer fed949af2e Build PowerShell using DNX 2015-11-23 17:54:30 -08:00
Andrew Schwartzmeyer 9adb30e698 Update gitignore for DNX 2015-11-23 17:54:30 -08: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 fcc4c4a6c0 Remove monad-ext submodule
In preparation for full DNX use
2015-11-23 17:53:56 -08:00
Andrew Schwartzmeyer d4f971e1c1 Add project.json for PowerShell DLLs 2015-11-23 12:25:05 -08:00
Andy Schwartzmeyer 419a3f5585 Merge pull request 297 from dev/alexjopester into develop
Merge dev/alexjopester to develop
2015-11-20 04:30:24 +00:00
Andy Schwartzmeyer adbdbc3414 Merge pull request 281 from dev/monad-osx into develop
Fix monad-impersonate for OS X
2015-11-13 16:31:01 +00:00
Andy Schwartzmeyer aca8fc438f Merge pull request 279 from dev/exit-pshostprocess into develop
Fix Exit-PSHostProcess cmdlet crash issue
2015-11-13 16:27:38 +00:00
Andy Schwartzmeyer e4d598d2d2 Merge pull request 278 from dev/geteventsubtest into develop
Merge dev/geteventsubtest to develop
2015-11-12 19:40:34 +00:00
Andy Schwartzmeyer c3be4cb072 Merge pull request 269 from develop into master
Merge develop to master
2015-11-09 21:59:45 +00:00
Andy Schwartzmeyer cf5f642dbf Merge pull request 268 from dev/repin-submodules into develop
Merge dev/repin-submodules to develop
2015-11-09 21:23:22 +00:00
Andrew Schwartzmeyer a9e6416cb4 Repin submodules to remote references
`git submodule update --remote` mostly just the extraneous VSO merge commits.
2015-11-09 13:11:44 -08:00
Andrew Schwartzmeyer 267dd41247 Remove ext-src/cppunit
Cruft fromn long ago, not necessary.
2015-11-09 13:11:24 -08:00
Andy Schwartzmeyer a491a57e1b Merge pull request 266 from dev/easy-shell into develop
Merge dev/easy-shell to develop
2015-11-09 20:12:51 +00:00
Andrew Schwartzmeyer 79950a0545 Fix monad-impersonate for OS X
Docker on OS X uses a Linux host for the containers, 99% of the time
it's the boot2docker image. The user and group within the image (and
their IDs) is different from that of the OS X user. However, the Linux
host machine also has the OS X host /Users folder mounted (using a
VirtualBox share). Given the permissions of the Linux user inside the
container, the OS X user's folders are writable.
2015-11-07 23:52:35 -08:00
Andrew Schwartzmeyer c09cce8d1c Fix xUnit test target
POWERSHELL_HOST is gone, only POWERSHELL remains!
2015-11-06 20:35:20 -08:00
Andrew Schwartzmeyer 51c7b9339c Fix third-party shebang test
Native powershell host can now be used as an interpreter for other
scripts through the hashbang/shebang directive.
2015-11-06 20:28:24 -08:00
Andrew Schwartzmeyer aea5af000f Remove deprecated POWERSHELL_HOST variable 2015-11-06 20:27:58 -08:00
Andrew Schwartzmeyer 390a9da072 Repin monad-native with coupled changes 2015-11-06 20:14:43 -08:00
Andrew Schwartzmeyer 0a3621b8ff Refactor host command-line parsing
Supports a syntax more similar to powershell.exe on Windows, with --file
and --command options, as well as the automatic execution of a script by
name, or a command via string. Prepares for reading of stdin.
2015-11-06 20:13:47 -08:00
Andrew Schwartzmeyer f1d1786ee3 Remove reference to deprecated scripts folder
And renumber list.
2015-11-06 14:02:35 -08:00
Andrew Schwartzmeyer a879b954ac Add note about make bootstrap 2015-11-06 11:56:55 -08:00
Andrew Schwartzmeyer cb93392de2 Update readme 2015-11-06 11:55:50 -08:00
Andrew Schwartzmeyer 87a8ea683e Document dependencies 2015-11-06 11:55:50 -08:00
Andy Schwartzmeyer 2569e481fb Merge pull request 255 from dev/fixtests into develop
Use HOME instead of HOSTNAME for environment tests
2015-11-05 18:18:29 +00:00
Andrew Schwartzmeyer 7cda20517e Use HOME instead of HOSTNAME for environment tests
Because HOSTNAME can be tricky, but HOME is always set.
2015-11-05 10:11:38 -08:00
Andy Schwartzmeyer 6b7262a0d8 Merge pull request 253 from dev/history into develop
Fix for history
2015-11-05 17:32:06 +00:00
Andy Schwartzmeyer 7a77539b50 Merge pull request 244 from dev/host into develop
Merge dev/host to develop
2015-11-05 17:16:11 +00:00
Andrew Schwartzmeyer 2557e8c278 Repin monad-native with fixes 2015-11-04 21:29:45 -08:00
Andrew Schwartzmeyer db338c2b9a Fix Pester tests
These fail with the improved console because $input is already defined.
2015-11-04 15:13:21 -08:00
Andrew Schwartzmeyer f411d056c2 Update monad and monad-build submodules 2015-11-04 15:09:29 -08:00
Andrew Schwartzmeyer 392f9b0cd1 Prepend existing LD_LIBRARY_PATH
Though it's rarely ever set.
2015-11-04 15:09:29 -08:00
Andrew Schwartzmeyer bf28474f32 Fix monad-run
Use a non-interactive tty with monad-run, add monad-attach to run
without a tty
2015-11-04 15:09:29 -08:00
Andrew Schwartzmeyer cbcf974e57 Execute *.ps1 arguments as scripts 2015-11-04 15:09:29 -08:00
Andrew Schwartzmeyer f8bd1243b6 Clean up 2015-11-04 15:09:29 -08:00
Andrew Schwartzmeyer 391371e753 Enable PowerShell profiles
Added default PSL_profile.ps1 script, with rule to copy to expected
location (which is the same location of the PowerShell libraries).

Copied from Host06 example the code which loads the profile.

Made HostUtilities available to powershell.exe.
2015-11-04 15:09:29 -08:00
Andrew Schwartzmeyer 751676e3a5 Small clean up 2015-11-04 15:09:29 -08:00
Andrew Schwartzmeyer 3812359153 Fix exception reporting 2015-11-04 15:09:29 -08:00
Andrew Schwartzmeyer c3b6ff1b4e Clean up main.cs 2015-11-04 15:09:29 -08:00
Andrew Schwartzmeyer 8dcb769bb7 Fix xUnit tests
Moved the xUnit tests build rules to their own Makefile, included by
monad-build/Makefile.

Temporarily introduced POWERSHELL_HOST to reenable running of
xunit.console.netcore.exe until this is built-in to the native
powershell host.
2015-11-04 15:09:29 -08:00
Andrew Schwartzmeyer eb816dd147 Rename ps_test to xunit-tests 2015-11-04 15:09:29 -08:00
Andrew Schwartzmeyer 043016e72d Update Makefile to use powershell.exe 2015-11-04 15:09:29 -08:00
Andrew Schwartzmeyer cf2a58cad9 Fix monad-build/Makefile for powershell.exe rename 2015-11-04 15:09:29 -08:00
Andrew Schwartzmeyer 8f9042a151 Fix host Makefile for file renames 2015-11-04 15:09:29 -08:00
Andrew Schwartzmeyer a5720e9198 Remove powershell-simple from Makefile 2015-11-04 15:09:29 -08:00
Andrew Schwartzmeyer d12052cdc0 Move custom host Makefile out of monad-build 2015-11-04 15:09:29 -08:00
Andrew Schwartzmeyer e378bb7f7d Rename powershell-run to host
Because this is our custom host for PowerShell on Linux.
2015-11-04 15:09:29 -08:00
Andrew Schwartzmeyer 2a4c01b965 Rename powershell-run to powershell
It is now the only shell.
2015-11-04 15:09:29 -08:00
Andrew Schwartzmeyer 963648babe Delete powershell-simple
Deprecated for powershell-run
2015-11-04 15:09:29 -08:00
Andy Schwartzmeyer 8a7eef57b6 Merge pull request 247 from dev/isexecutable into develop
New xunit tests for domainname and isexecutable
2015-11-03 22:07:08 +00:00
Andrew Schwartzmeyer 06be397283 Fix ConvertFrom-Csv failure 2015-11-02 15:26:14 -08:00
Andy Schwartzmeyer 337cfe552b Merge pull request 242 from dev/console-args into develop
made powershell work with additional argument logic
2015-11-02 23:22:55 +00:00
Andrew Schwartzmeyer 0b6adb68ee Use $here to avoid 'cd $(PESTER)'
Per the Pester examples: https://github.com/pester/Pester/blob/master/Examples/Calculator/Add-Numbers.Tests.ps1
2015-11-02 15:20:31 -08:00
Andy Schwartzmeyer 5e0982030e Merge pull request 243 from dev/submodules into develop
Repin monad (and monad-ext)
2015-11-02 23:19:13 +00:00
Andrew Schwartzmeyer 1564ebc5b5 Repin monad (and monad-ext) 2015-11-02 15:12:37 -08:00
Andrew Schwartzmeyer 05f59d15b1 Untabify Json.Tests 2015-11-02 14:06:58 -08:00
Andy Schwartzmeyer 8c640e50c3 Merge pull request 241 from dev/json into develop
Add Json.NET Pester tests
2015-11-02 21:53:11 +00:00
Andrew Schwartzmeyer e24f4b43a1 Update monad-native to fix Jenkins job
monad-native has a new target, `install` which places the native bits
into bin and lib folders, which here are prefixed to monad-linux.

Note that the location of native-tests.xml has changed so that the
monad-native Jenkins build can pick it up.
2015-10-30 18:53:48 -07:00
Andrew Schwartzmeyer 37d861f197 Add Json.NET Pester tests 2015-10-30 18:09:03 -07:00
Andy Schwartzmeyer 9b003f059c Merge pull request 233 from dev/update-monad into develop
Update submodules
2015-10-30 18:55:53 +00:00
Andrew Schwartzmeyer 4c9540d777 Update submodules
This brings in the updates to monad-native and monad-build necessary to
bring in the updates to monad.
2015-10-30 11:16:27 -07:00