-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy path.travis.yml
62 lines (55 loc) · 2.05 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
56
57
58
59
60
61
62
#
# Travis CI configuration file
#
dist: trusty
language: csharp
matrix:
include:
- os: linux
dist: trusty # Ubuntu 14.04
dotnet: 2.0.0
mono: latest
sudo: required
env: MONO_BASE_PATH=/usr/lib/mono/
- os: osx
osx_image: xcode9 # macOS 10.12
dotnet: 2.0.0
mono: latest
env: MONO_BASE_PATH=/Library/Frameworks/Mono.framework/Versions/Current/lib/mono/
addons:
apt:
packages:
- dotnet-sharedframework-microsoft.netcore.app-1.0.5
env:
global:
- DOTNET_CLI_TELEMETRY_OPTOUT: 1
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
install:
- dotnet restore
solution: NGettext.sln
script:
- dotnet restore
- cd src/NGettext
- FrameworkPathOverride=$MONO_BASE_PATH/2.0-api/ dotnet build --framework "net20"
- FrameworkPathOverride=$MONO_BASE_PATH/4.0-api/ dotnet build --framework "net40"
- FrameworkPathOverride=$MONO_BASE_PATH/4.5-api/ dotnet build --framework "net45"
- TargetFrameworkRootPath=$MONO_BASE_PATH/xbuild-frameworks dotnet build --framework "portable-net40+sl5+win8+wp8"
- TargetFrameworkRootPath=$MONO_BASE_PATH/xbuild-frameworks dotnet build --framework "portable-net40+sl5+win8+wpa81+wp8"
- dotnet build --framework "netstandard1.0"
- dotnet build --framework "netstandard1.3"
- dotnet build --framework "netstandard2.0"
- cd ../..
- cd src/NGettext.PluralCompile
- FrameworkPathOverride=$MONO_BASE_PATH/2.0-api/ dotnet build --framework "net20"
- FrameworkPathOverride=$MONO_BASE_PATH/4.0-api/ dotnet build --framework "net40"
- FrameworkPathOverride=$MONO_BASE_PATH/4.5-api/ dotnet build --framework "net45"
- dotnet build --framework "netstandard1.3"
- dotnet build --framework "netstandard2.0"
- cd ../..
- cd test/NGettext.Tests
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then dotnet test -f netcoreapp1.0; fi
- dotnet test -f netcoreapp2.0
- cd ../..
- cd test/NGettext.PluralCompile.Tests
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then dotnet test -f netcoreapp1.0; fi
- dotnet test -f netcoreapp2.0