Install latest .NET CLI packages on Travis
This commit is contained in:
parent
2ddf3e9ff0
commit
540acd59d1
|
@ -10,12 +10,9 @@ git:
|
||||||
before_install:
|
before_install:
|
||||||
- git config --global url.git@github.com:.insteadOf https://github.com/
|
- git config --global url.git@github.com:.insteadOf https://github.com/
|
||||||
- git submodule update --init --recursive -- src/libpsl-native src/windows-build src/Microsoft.PowerShell.Linux.Host/Modules/Pester
|
- git submodule update --init --recursive -- src/libpsl-native src/windows-build src/Microsoft.PowerShell.Linux.Host/Modules/Pester
|
||||||
- sudo sh -c 'echo "deb [arch=amd64] http://apt-mo.trafficmanager.net/repos/dotnet/ trusty main" > /etc/apt/sources.list.d/dotnetdev.list'
|
- ./bootstrap.sh
|
||||||
- sudo apt-key adv --keyserver apt-mo.trafficmanager.net --recv-keys 417A0893
|
|
||||||
- sudo apt-get -qq update
|
|
||||||
- sudo apt-get install -y dotnet=1.0.0.001675-1
|
|
||||||
- ./download.sh
|
- ./download.sh
|
||||||
- sudo dpkg -i powershell.deb
|
- sudo dpkg -i ./powershell.deb
|
||||||
script:
|
script:
|
||||||
- powershell -c "Import-Module ./PowerShellGitHubDev.psm1; Start-PSBuild"
|
- powershell -c "Import-Module ./PowerShellGitHubDev.psm1; Start-PSBuild"
|
||||||
- ./pester.sh
|
- ./pester.sh
|
||||||
|
|
20
bootstrap.sh
Executable file
20
bootstrap.sh
Executable file
|
@ -0,0 +1,20 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
echo "Installing build dependencies"
|
||||||
|
|
||||||
|
curl http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -
|
||||||
|
echo "deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty-3.6 main" | sudo tee /etc/apt/sources.list.d/llvm.list
|
||||||
|
sudo apt-get update -qq
|
||||||
|
|
||||||
|
sudo apt-get install -y wget make g++ cmake \
|
||||||
|
libc6 libgcc1 libstdc++6 \
|
||||||
|
libcurl3 libgssapi-krb5-2 libicu52 liblldb-3.6 liblttng-ust0 libssl1.0.0 libunwind8 libuuid1 zlib1g clang-3.5
|
||||||
|
|
||||||
|
wget -P /tmp https://dotnetcli.blob.core.windows.net/dotnet/beta/Installers/Latest/dotnet-host-ubuntu-x64.latest.deb
|
||||||
|
sudo dpkg -i /tmp/dotnet-host-ubuntu-x64.latest.deb
|
||||||
|
|
||||||
|
wget -P /tmp https://dotnetcli.blob.core.windows.net/dotnet/beta/Installers/Latest/dotnet-sharedframework-ubuntu-x64.latest.deb
|
||||||
|
sudo dpkg -i /tmp/dotnet-sharedframework-ubuntu-x64.latest.deb
|
||||||
|
|
||||||
|
wget -P /tmp https://dotnetcli.blob.core.windows.net/dotnet/beta/Installers/Latest/dotnet-sdk-ubuntu-x64.latest.deb
|
||||||
|
sudo dpkg -i /tmp/dotnet-sdk-ubuntu-x64.latest.deb
|
Loading…
Reference in a new issue