Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
0df41675
Commit
0df41675
authored
Jan 02, 2013
by
Vicent Marti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Submodule checkout
parent
a368fd0f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
10 deletions
+8
-10
.travis.yml
+1
-3
CMakeLists.txt
+7
-7
No files found.
.travis.yml
View file @
0df41675
# Travis-CI Build for libgit2
# Travis-CI Build for libgit2
# see travis-ci.org for details
# see travis-ci.org for details
# As CMake is not officially supported we use erlang VMs
language
:
c
language
:
c
compiler
:
compiler
:
...
@@ -28,7 +26,7 @@ script:
...
@@ -28,7 +26,7 @@ script:
-
mkdir _build
-
mkdir _build
-
cd _build
-
cd _build
-
cmake .. -DCMAKE_INSTALL_PREFIX=../_install $OPTIONS
-
cmake .. -DCMAKE_INSTALL_PREFIX=../_install $OPTIONS
-
cmake --build . --target install
-
cmake --build . --target
submodules
install
-
ctest -V .
-
ctest -V .
# Run Tests
# Run Tests
...
...
CMakeLists.txt
View file @
0df41675
...
@@ -231,6 +231,12 @@ INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/libgit2.pc DESTINATION ${LIB_INSTALL_D
...
@@ -231,6 +231,12 @@ INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/libgit2.pc DESTINATION ${LIB_INSTALL_D
INSTALL
(
DIRECTORY include/git2 DESTINATION
${
INCLUDE_INSTALL_DIR
}
)
INSTALL
(
DIRECTORY include/git2 DESTINATION
${
INCLUDE_INSTALL_DIR
}
)
INSTALL
(
FILES include/git2.h DESTINATION
${
INCLUDE_INSTALL_DIR
}
)
INSTALL
(
FILES include/git2.h DESTINATION
${
INCLUDE_INSTALL_DIR
}
)
ADD_CUSTOM_TARGET
(
submodules
COMMAND git submodule update --init tests-clar/clar
)
# Tests
# Tests
IF
(
BUILD_CLAR
)
IF
(
BUILD_CLAR
)
FIND_PACKAGE
(
PythonInterp REQUIRED
)
FIND_PACKAGE
(
PythonInterp REQUIRED
)
...
@@ -243,16 +249,10 @@ IF (BUILD_CLAR)
...
@@ -243,16 +249,10 @@ IF (BUILD_CLAR)
INCLUDE_DIRECTORIES(
${
CLAR_PATH
}
)
INCLUDE_DIRECTORIES(
${
CLAR_PATH
}
)
FILE(GLOB_RECURSE SRC_TEST
${
CLAR_PATH
}
/*/*.c)
FILE(GLOB_RECURSE SRC_TEST
${
CLAR_PATH
}
/*/*.c)
SET(SRC_CLAR "
${
CLAR_PATH
}
/main.c
" "
${
CLAR_PATH
}
/clar_helpers.c
")
SET(SRC_CLAR "
${
CLAR_PATH
}
/main.c
" "
${
CLAR_PATH
}
/clar_helpers.c
"
"
${
CLAR_PATH
}
/clar/clar.c
"
)
SET(CMAKE_C_FLAGS "
${
CMAKE_C_FLAGS
}
-Wno-missing-prototypes
")
SET(CMAKE_C_FLAGS "
${
CMAKE_C_FLAGS
}
-Wno-missing-prototypes
")
ADD_CUSTOM_COMMAND(
ADD_CUSTOM_COMMAND(
COMMAND echo "
###### testing this stuff"
WORKING_DIRECTORY
${
CMAKE_CURRENT_SOURCE_DIR
}
DEPENDS
"
${
CLAR_PATH
}
/clar/clar.c"
)
ADD_CUSTOM_COMMAND
(
OUTPUT
${
CLAR_PATH
}
/clar.suite
OUTPUT
${
CLAR_PATH
}
/clar.suite
COMMAND
${
PYTHON_EXECUTABLE
}
clar/generate.py .
COMMAND
${
PYTHON_EXECUTABLE
}
clar/generate.py .
DEPENDS
${
SRC_TEST
}
DEPENDS
${
SRC_TEST
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment