File tree Expand file tree Collapse file tree 7 files changed +37
-13
lines changed Expand file tree Collapse file tree 7 files changed +37
-13
lines changed Original file line number Diff line number Diff line change 3
3
4
4
language : c
5
5
6
+ env :
7
+ - TRAVIS_OS_UNAME=$(uname -s)
8
+
9
+ os :
10
+ - osx
11
+ - linux
12
+
13
+ before_install :
14
+ - date -u
15
+ - uname -a
16
+ - env | sort
17
+
6
18
# Make sure CMake and Mono are installed
7
19
install :
8
- - sudo apt-get install cmake mono-devel mono-gmcs
20
+ - if [[ $TRAVIS_OS_UNAME = 'Linux' ]]; then ./CI/travis.linux.install.deps.sh; fi
21
+ - if [[ $TRAVIS_OS_UNAME = 'Darwin' ]]; then ./CI/travis.osx.install.deps.sh; fi
9
22
10
23
# Build libgit2, LibGit2Sharp and run the tests
11
24
script :
12
- - git submodule update --init
13
25
- ./build.libgit2sharp.sh
14
26
15
27
# Only watch the development branch
16
28
branches :
17
29
only :
18
30
- vNext
19
31
20
- # Notify development list when needed
32
+ # Notify of build changes
21
33
notifications :
22
- recipients :
23
- - emeric.fermas@gmail.com
24
34
email :
25
- on_success : change
26
- on_failure : always
35
+ - emeric.fermas@gmail.com
Original file line number Diff line number Diff line change 1
1
<Project DefaultTargets="Deploy" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2
2
<PropertyGroup>
3
3
<Configuration Condition="'$(Configuration)' == ''">Release</Configuration>
4
- <RootDir>$(MSBuildProjectDirectory)</RootDir>
4
+ <RootDir>$(MSBuildProjectDirectory)\.. </RootDir>
5
5
<TestBuildDir>$(RootDir)\LibGit2Sharp.Tests\bin\$(Configuration)</TestBuildDir>
6
6
<DeployFolder>$(RootDir)\Build</DeployFolder>
7
7
</PropertyGroup>
8
8
9
- <UsingTask AssemblyFile="$(MSBuildProjectDirectory)/ Lib/ xUnit/ xunit.runner.msbuild.dll"
9
+ <UsingTask AssemblyFile="$(RootDir)\ Lib\ xUnit\ xunit.runner.msbuild.dll"
10
10
TaskName="Xunit.Runner.MSBuild.xunit" />
11
11
<Target Name="Clean">
12
12
<Message Text="Commit SHA = $(CommitSha)" />
30
30
31
31
<Target Name="Build" DependsOnTargets="Init">
32
32
<MSBuild
33
- Projects="LibGit2Sharp.sln"
33
+ Projects="$(RootDir)\ LibGit2Sharp.sln"
34
34
Targets="Build"
35
35
Properties="Configuration=$(Configuration);TrackFileAccess=false" />
36
36
</Target>
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ set -ev
3
+
4
+ sudo apt-get install cmake mono-devel mono-gmcs
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ set -ev
3
+
4
+ MONO_VER=2.10.10
5
+
6
+ brew update
7
+ brew install cmake
8
+
9
+ wget " http://download.mono-project.com/archive/${MONO_VER} /macos-10-x86/MonoFramework-MDK-${MONO_VER} .macos10.xamarin.x86.dmg"
10
+ hdid " MonoFramework-MDK-${MONO_VER} .macos10.xamarin.x86.dmg"
11
+ sudo installer -pkg " /Volumes/Mono Framework MDK ${MONO_VER} /MonoFramework-MDK-${MONO_VER} .macos10.xamarin.x86.pkg" -target /
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ SET FrameworkVersion=v4.0.30319
5
5
SET FrameworkDir = %SystemRoot% \Microsoft.NET\Framework
6
6
SET CommitSha = %~1
7
7
8
- " %FrameworkDir% \%FrameworkVersion% \msbuild.exe" " %BASEDIR% CI- build.msbuild" /property:CommitSha=%CommitSha%
8
+ " %FrameworkDir% \%FrameworkVersion% \msbuild.exe" " %BASEDIR% CI\ build.msbuild" /property:CommitSha=%CommitSha%
9
9
10
10
ENDLOCAL
11
11
Original file line number Diff line number Diff line change @@ -26,6 +26,6 @@ export MONO_OPTIONS=--debug
26
26
27
27
echo $DYLD_LIBRARY_PATH
28
28
echo $LD_LIBRARY_PATH
29
- xbuild CI- build.msbuild /t:Deploy
29
+ xbuild CI/ build.msbuild /t:Deploy
30
30
31
31
exit $?
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ SET FrameworkVersion=v4.0.30319
5
5
SET FrameworkDir = %SystemRoot% \Microsoft.NET\Framework64
6
6
SET CommitSha = %~1
7
7
8
- " %FrameworkDir% \%FrameworkVersion% \msbuild.exe" " %BASEDIR% CI- build.msbuild" /property:CommitSha=%CommitSha%
8
+ " %FrameworkDir% \%FrameworkVersion% \msbuild.exe" " %BASEDIR% CI\ build.msbuild" /property:CommitSha=%CommitSha%
9
9
10
10
ENDLOCAL
11
11
You can’t perform that action at this time.
0 commit comments