What must I put in my .travis.yml
to run cake.build and compile a .net core project?
First add build.sh to your github repository, then give it execute rights, in windows run the following command git update-index --add --chmod=+x build.sh
while you are in the same directory as build.sh
.
To just get cake.build to run add the following content:
language: csharp
script:
- ./build.sh
cache:
directories:
- src/packages
- tools
To install the dotnet cli
add the following content:
language: csharp
os:
- linux
sudo: required
dist: trusty
env:
- CLI_VERSION=latest
addons:
apt:
packages:
- gettext
- libcurl4-openssl-dev
- libicu-dev
- libssl-dev
- libunwind8
- zlib1g
install:
- export DOTNET_INSTALL_DIR="$PWD/.dotnetcli"
- curl -sSL https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0/scripts/obtain/dotnet-install.sh | bash /dev/stdin --version "$CLI_VERSION" --install-dir "$DOTNET_INSTALL_DIR"
- export PATH="$DOTNET_INSTALL_DIR:$PATH"
script:
- ./build.sh
cache:
directories:
- src/packages
- tools
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments