Skip to content

Commit 1a56210

Browse files
committed
DI
1 parent 913dcd3 commit 1a56210

2 files changed

Lines changed: 38 additions & 11 deletions

File tree

.travis.yml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ env:
1414
global:
1515
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
1616
- DOTNET_CLI_TELEMETRY_OPTOUT: 1
17+
- CLI_VERSION=1.0.0-preview2-003121
1718
mono:
1819
- 4.2.3
1920
os:
@@ -23,8 +24,22 @@ osx_image: xcode7.1
2324
branches:
2425
only:
2526
- master
26-
before_install:
27-
- chmod +x build.sh
28-
- if test "$TRAVIS_OS_NAME" == "osx"; then brew update; brew install openssl; ln -s /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/; ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/; fi
27+
28+
# Make sure build dependencies are installed.
29+
before_install:
30+
- if test "$TRAVIS_OS_NAME" == "osx"; then ln -s /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/; ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/; fi
31+
- export DOTNET_INSTALL_DIR="$PWD/.dotnetcli"
32+
- export PATH="$DOTNET_INSTALL_DIR:$PATH"
33+
34+
install:
35+
- travis_retry 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"
36+
37+
#cache:
38+
# - apt
39+
# - directories:
40+
# - packages
41+
42+
# Run the build script
2943
script:
30-
- ./build.sh --quiet verify
44+
- travis_retry dotnet restore --disable-parallel
45+
- dotnet build AlgorithmsTest -verbose

appveyor.yml

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,22 @@
1+
version: '1.0.{build}'
2+
configuration:
3+
- Debug
4+
- Release
5+
platform: Any CPU
6+
environment:
7+
# Don't report back to the mothership
8+
DOTNET_CLI_TELEMETRY_OPTOUT: 1
19
init:
2-
- git config --global core.autocrlf true
3-
branches:
4-
only:
5-
- master
10+
- ps: $Env:LABEL = "CI" + $Env:APPVEYOR_BUILD_NUMBER.PadLeft(5, "0")
11+
before_build:
12+
- appveyor-retry dotnet restore -v Minimal
613
build_script:
7-
- build.cmd verify
14+
- dotnet build "Algorithms" -c %CONFIGURATION% --no-dependencies --version-suffix %LABEL%
15+
- dotnet build "AlgorithmsTest" -c %CONFIGURATION% --no-dependencies --version-suffix %LABEL%
16+
after_build:
17+
- dotnet pack "Algorithms" -c %CONFIGURATION% --no-build --version-suffix %LABEL% -o artifacts
18+
- dotnet pack "AlgorithmsTest" -c %CONFIGURATION% --no-build --version-suffix %LABEL% -o artifacts
19+
- dotnet publish "ConsoleApplication" -c %CONFIGURATION% --no-build --version-suffix %LABEL% -o artifacts\ConsoleApplication
820
clone_depth: 1
9-
test: off
10-
deploy: off
21+
test_script:
22+
- dotnet test "AlgorithmsTest" -c %CONFIGURATION%

0 commit comments

Comments
 (0)