forked from morelinq/MoreLINQ
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
55 lines (51 loc) · 1.74 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
language: csharp
os:
- linux
- osx
osx_image: xcode8.3
solution: MoreLinq.sln
mono: 5.0.1
dist: trusty
sudo: required
dotnet: 2.1.500
env:
- CONFIGURATION=Debug
- CONFIGURATION=Release
addons:
apt:
sources:
- sourceline: 'deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-trusty-prod trusty main'
key_url: 'https://packages.microsoft.com/keys/microsoft.asc'
packages:
- dotnet-hostfxr-1.0.1
- dotnet-sharedframework-microsoft.netcore.app-1.0.5
before_install:
- dotnet --info
- msbuild /version
- |
if [ "$TRAVIS_OS_NAME" == "osx" ] || [ `uname` == "Darwin" ]; then
# Handle too many files on OS X
ulimit -n 4096
# Install dotnet core 1 sdk
wget --retry-connrefused --waitretry=1 -O /tmp/dn1.pkg 'https://download.microsoft.com/download/B/9/F/B9F1AF57-C14A-4670-9973-CDF47209B5BF/dotnet-dev-osx-x64.1.0.4.pkg'
sudo installer -pkg /tmp/dn1.pkg -target /
fi
install:
- dotnet restore
- npm install -g eclint
before_script:
- git rm .editorconfig
- eclint check -n "**/*.{cs,tt,cmd,sh,md,txt,yml}"
- eclint check -w "**/*.{cs,tt,cmd,sh,md,txt,yml,json,sln,csproj,shfbproj}"
- git reset --hard
script:
- |
if grep --extended-regexp '^[[:space:]]*using[[:space:]]+System\.Linq;' $(ls MoreLinq.Test/*Test.cs); then
echo "System.Linq import found, failing the build!" >&2
exit 1
fi
- ./build.sh /v:m /p:Configuration=$CONFIGURATION
- dotnet exec MoreLinq.Test/bin/$CONFIGURATION/netcoreapp1.0/MoreLinq.Test.dll
- dotnet exec MoreLinq.Test/bin/$CONFIGURATION/netcoreapp2.0/MoreLinq.Test.dll
- dotnet exec MoreLinq.Test/bin/$CONFIGURATION/netcoreapp2.1/MoreLinq.Test.dll
- mono MoreLinq.Test/bin/$CONFIGURATION/net451/MoreLinq.Test.exe