-
-
Notifications
You must be signed in to change notification settings - Fork 78
/
.travis.yml
25 lines (24 loc) · 1.09 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
language: csharp
env:
- CAKE_SETTINGS_SKIPVERIFICATION="true" CAKE_NUGET_USEINPROCESSCLIENT="true"
script:
- echo "Information(Context.Environment.Runtime.CakeVersion.ToString());" > build.cake
- ./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.Chocolatey.Module\" version=\"0.5.0\" />\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.7.0\" />\r\n</packages>" > ./tools/addins/packages.config
- ./build.sh || exit 1
- echo "Test build.ps1 with pester tests"
- pwsh -command "Invoke-Expression .\tests\Tests.ps1"
- ls -D -R
os:
- linux
dist: xenial
before_install:
- sudo snap install core
- sudo snap install powershell --classic
- pwsh -command "Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted"
- pwsh -command "Install-Module -Name Pester"
- cp dotnet-framework/build.sh build.sh