Skip to content

Commit aae76e3

Browse files
committed
Merge branch 'master' of https://github.com/codeyu/leetcode
2 parents 920117b + 316011a commit aae76e3

2 files changed

Lines changed: 29 additions & 55 deletions

File tree

.travis.yml

Lines changed: 18 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,23 @@
11
language: csharp
2-
sudo: required
3-
dist: trusty
4-
addons:
5-
apt:
6-
packages:
7-
- gettext
8-
- libcurl4-openssl-dev
9-
- libicu-dev
10-
- libssl-dev
11-
- libunwind8
12-
- zlib1g
13-
env:
14-
global:
15-
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
16-
- DOTNET_CLI_TELEMETRY_OPTOUT: 1
17-
- CLI_VERSION=1.0.0-preview2-003121
18-
os:
19-
- linux
20-
- osx
2+
3+
matrix:
4+
include:
5+
- os: osx
6+
osx_image: xcode8.3
7+
dotnet: 1.0.1
8+
mono: none
9+
- os: linux
10+
dist: trusty
11+
sudo: required
12+
dotnet: 1.0.1
13+
mono: none
14+
2115
branches:
2216
only:
2317
- master
24-
25-
# Make sure build dependencies are installed.
26-
before_install:
27-
- 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
28-
- export DOTNET_INSTALL_DIR="$PWD/.dotnetcli"
29-
- export PATH="$DOTNET_INSTALL_DIR:$PATH"
30-
31-
install:
32-
- 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"
33-
34-
#cache:
35-
# - apt
36-
# - directories:
37-
# - packages
38-
39-
# Run the build script
4018
script:
41-
- travis_retry dotnet restore --disable-parallel
42-
- dotnet build Algorithms
43-
- dotnet build AlgorithmsTest
19+
- ulimit -n 2048
20+
- dotnet restore "Algorithms"
21+
- dotnet restore "AlgorithmsTest"
22+
- dotnet build "Algorithms"
23+
- dotnet build "AlgorithmsTest"

appveyor.yml

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,14 @@
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
91
init:
10-
- ps: $Env:LABEL = "CI" + $Env:APPVEYOR_BUILD_NUMBER.PadLeft(5, "0")
11-
before_build:
12-
- appveyor-retry dotnet restore -v Minimal
2+
- git config --global core.autocrlf true
3+
branches:
4+
only:
5+
- master
6+
- release
7+
- dev
8+
- /^(.*\/)?ci-.*$/
139
build_script:
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
10+
- ps: .\build.ps1
1811
clone_depth: 1
19-
test_script:
20-
- dotnet test "AlgorithmsTest" -c %CONFIGURATION%
12+
test: off
13+
deploy: off
14+
os: Visual Studio 2017

0 commit comments

Comments
 (0)