Skip to content

Commit

Permalink
(GH-26) Added AppVeyor & Travis test
Browse files Browse the repository at this point in the history
  • Loading branch information
devlead committed Mar 17, 2017
1 parent e3f151c commit 27fba68
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 5 deletions.
9 changes: 8 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
language: csharp
script:
- echo "Information(Context.Environment.Runtime.CakeVersion.ToString());" > build.cake
- ./build.sh
- ./build.sh || exit 1
- echo "Testing with modules/addin packages.config"
- mkdir tools/modules
- echo -e "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<packages>\r\n <package id=\"Cake.Paket.Module\" version=\"1.2.2\" />\r\n</packages>" > ./tools/modules/packages.config
- mkdir tools/addins
- echo -e "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<packages>\r\n <package id=\"Cake.MicrosoftTeams\" version=\"0.3.0\" />\r\n</packages>" > ./tools/addins/packages.config
- ./build.sh || exit 1
- ls -D -R
os:
- linux
19 changes: 17 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,22 @@ build_script:
./build.ps1
'Testing with PowerShell V2'
PowerShell.exe -Version 2.0 -File .\build.ps1
PowerShell.exe -Version 2.0 -File .\build.ps1
New-Item -ItemType Directory ./tools/modules
"<?xml version=""1.0"" encoding=""utf-8""?>`r`n<packages>`r`n <package id=""Cake.Paket.Module"" version=""1.2.2"" />`r`n</packages>" | Out-File -Encoding utf8 -FilePath ./tools/modules/packages.config
New-Item -ItemType Directory ./tools/addins
"<?xml version=""1.0"" encoding=""utf-8""?>`r`n<packages>`r`n <package id=""Cake.MicrosoftTeams"" version=""0.3.0"" />`r`n</packages>" | Out-File -Encoding utf8 -FilePath ./tools/addins/packages.config
'Testing with PowerShell Module & Addin restore'
./build.ps1
artifacts:
- path: '**\*'
name: Resources
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
# Define directories.
SCRIPT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
TOOLS_DIR=$SCRIPT_DIR/tools
ADDINS_DIR=$SCRIPT_DIR/addins
MODULES_DIR=$SCRIPT_DIR/modules
ADDINS_DIR=$TOOLS_DIR/addins
MODULES_DIR=$TOOLS_DIR/modules
NUGET_EXE=$TOOLS_DIR/nuget.exe
CAKE_EXE=$TOOLS_DIR/Cake/Cake.exe
PACKAGES_CONFIG=$TOOLS_DIR/packages.config
Expand Down

0 comments on commit 27fba68

Please sign in to comment.