Skip to content

Commit 7330a75

Browse files
authored
Fixes to the CI document (dotnet#2161)
1 parent 8958cab commit 7330a75

File tree

7 files changed

+164
-84
lines changed

7 files changed

+164
-84
lines changed

.travis.yml

+11-1
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,21 @@ matrix:
99
- os: osx # OSX 10.11
1010
osx_image: xcode7.2
1111
dotnet: 1.0.0-preview2-003121
12+
- os: osx # OSX 10.12
13+
osx_image: xcode7.3
14+
dotnet: 1.0.0-rc4-0044771
15+
16+
## If `dotnet` configuration doesnt work, use install script instead
17+
# install:
18+
# - export DOTNET_INSTALL_DIR="$PWD/.dotnetsdk"
19+
# - 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"
20+
# - export PATH="$DOTNET_INSTALL_DIR:$PATH"
1221

1322
script:
23+
- dotnet --info
1424
# Run a new console app
1525
- mkdir -p "test/test-dotnet-new" && pushd "test/test-dotnet-new"
1626
- dotnet new
1727
- dotnet restore
18-
- dotnet --verbose run a b
28+
- dotnet run a b
1929
- popd

appveyor.yml

+15-21
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,27 @@
11
os: Visual Studio 2015
22

3-
## .NET Core SDK preview1 is already installed in the build worker image Visual Studio 2015
4-
##
5-
## To install a specific version:
6-
##
7-
## install:
8-
## # .NET Core SDK binaries
9-
## ## 1) from direct url
10-
## - ps: $url = "https://go.microsoft.com/fwlink/?LinkID=798402" # v1.0.0-preview1 x64
11-
## ## 2) from url based on version, for example using an env var CLI_VERSION that can be a
12-
## ## a specific version `1.0.0-preview2-003121` or `Latest` (for latest dev version)
13-
## - ps: $url = "https://dotnetcli.blob.core.windows.net/dotnet/preview/Binaries/$($env:CLI_VERSION)/dotnet-dev-win-x64.$($env:CLI_VERSION.ToLower()).zip"
14-
## # Download .NET Core SDK and add to PATH
15-
## - ps: $env:DOTNET_INSTALL_DIR = "$pwd\.dotnetsdk"
16-
## - ps: mkdir $env:DOTNET_INSTALL_DIR -Force | Out-Null
17-
## - ps: $tempFile = [System.IO.Path]::GetTempFileName()
18-
## - ps: (New-Object System.Net.WebClient).DownloadFile($url, $tempFile)
19-
## - ps: Add-Type -AssemblyName System.IO.Compression.FileSystem; [System.IO.Compression.ZipFile]::ExtractToDirectory($tempFile, $env:DOTNET_INSTALL_DIR)
20-
## - ps: $env:Path = "$env:DOTNET_INSTALL_DIR;$env:Path"
3+
# NOTE .NET Core SDK preview2 is already installed in the build worker image Visual Studio 2015
4+
# so the `install` section is not required
5+
6+
environment:
7+
CLI_VERSION: 1.0.0-rc4-004771
8+
9+
install:
10+
- ps: $env:DOTNET_INSTALL_DIR = "$pwd\.dotnetsdk"
11+
- ps: mkdir $env:DOTNET_INSTALL_DIR -Force | Out-Null
12+
- ps: Invoke-WebRequest -Uri "https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0/scripts/obtain/dotnet-install.ps1" -OutFile "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1"
13+
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version $env:CLI_VERSION -InstallDir $env:DOTNET_INSTALL_DIR'
14+
- ps: $env:Path = "$env:DOTNET_INSTALL_DIR;$env:Path"
2115

2216
build_script:
2317
# dotnet info
2418
- ps: dotnet --info
2519
# Run dotnet new
2620
- ps: mkdir "test\test-dotnet-new" -Force | Push-Location
27-
- ps: dotnet new --lang fsharp
21+
- ps: dotnet new console -lang f#
2822
- ps: dotnet restore
29-
- ps: dotnet --verbose build
30-
- ps: dotnet --verbose run a b
23+
- ps: dotnet build
24+
- ps: dotnet run a b
3125
- ps: Pop-Location
3226

3327

Loading
Loading
Loading
Loading

docs/core/tools/using-ci-with-cli.md

+138-62
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)