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
dc6e80e2
Commit
dc6e80e2
authored
Jul 26, 2018
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci: perform clang builds on Linux
parent
6eb97b6b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
77 additions
and
7 deletions
+77
-7
.vsts-ci.yml
+74
-5
ci/build.sh
+2
-1
ci/setup-linux.sh
+1
-1
No files found.
.vsts-ci.yml
View file @
dc6e80e2
...
@@ -2,8 +2,8 @@ resources:
...
@@ -2,8 +2,8 @@ resources:
-
repo
:
self
-
repo
:
self
phases
:
phases
:
-
phase
:
linux_trusty_openssl
-
phase
:
linux_trusty_
gcc_
openssl
displayName
:
'
Linux
(Trusty;
OpenSSL)'
displayName
:
'
Linux
(Trusty;
GCC;
OpenSSL)'
queue
:
queue
:
name
:
'
Hosted
Linux
Preview'
name
:
'
Hosted
Linux
Preview'
steps
:
steps
:
...
@@ -26,13 +26,79 @@ phases:
...
@@ -26,13 +26,79 @@ phases:
volumes
:
|
volumes
:
|
$(Build.SourcesDirectory):/src
$(Build.SourcesDirectory):/src
$(Build.BinariesDirectory):/build
$(Build.BinariesDirectory):/build
envVars
:
|
CC=gcc
LEAK_CHECK=valgrind
workDir
:
'
/build'
containerCommand
:
'
/src/ci/test.sh'
detached
:
false
-
phase
:
linux_trusty_gcc_mbedtls
displayName
:
'
Linux
(Trusty;
GCC;
mbedTLS)'
queue
:
name
:
'
Hosted
Linux
Preview'
steps
:
-
task
:
Docker@0
displayName
:
Build
inputs
:
action
:
'
Run
an
image'
imageName
:
'
ethomson/libgit2-trusty-mbedtls:latest'
volumes
:
|
$(Build.SourcesDirectory):/src
$(Build.BinariesDirectory):/build
envVars
:
|
CC=gcc
CMAKE_OPTIONS=-DUSE_HTTPS=mbedTLS -DSHA1_BACKEND=mbedTLS
LEAK_CHECK=valgrind
workDir
:
'
/build'
containerCommand
:
'
/src/ci/build.sh'
detached
:
false
-
task
:
Docker@0
displayName
:
Test
inputs
:
action
:
'
Run
an
image'
imageName
:
'
ethomson/libgit2-trusty-mbedtls:latest'
volumes
:
|
$(Build.SourcesDirectory):/src
$(Build.BinariesDirectory):/build
envVars
:
'
LEAK_CHECK=valgrind'
envVars
:
'
LEAK_CHECK=valgrind'
workDir
:
'
/build'
workDir
:
'
/build'
containerCommand
:
'
/src/ci/test.sh'
containerCommand
:
'
/src/ci/test.sh'
detached
:
false
detached
:
false
-
phase
:
linux_trusty_mbedtls
-
phase
:
linux_trusty_clang_openssl
displayName
:
'
Linux
(Trusty;
mbedTLS)'
displayName
:
'
Linux
(Trusty;
Clang;
OpenSSL)'
queue
:
name
:
'
Hosted
Linux
Preview'
steps
:
-
task
:
Docker@0
displayName
:
Build
inputs
:
action
:
'
Run
an
image'
imageName
:
'
ethomson/libgit2-trusty-openssl:latest'
volumes
:
|
$(Build.SourcesDirectory):/src
$(Build.BinariesDirectory):/build
workDir
:
'
/build'
containerCommand
:
'
/src/ci/build.sh'
detached
:
false
-
task
:
Docker@0
displayName
:
Test
inputs
:
action
:
'
Run
an
image'
imageName
:
'
ethomson/libgit2-trusty-openssl:latest'
volumes
:
|
$(Build.SourcesDirectory):/src
$(Build.BinariesDirectory):/build
envVars
:
|
CC=clang
LEAK_CHECK=valgrind
workDir
:
'
/build'
containerCommand
:
'
/src/ci/test.sh'
detached
:
false
-
phase
:
linux_trusty_clang_mbedtls
displayName
:
'
Linux
(Trusty;
Clang;
mbedTLS)'
queue
:
queue
:
name
:
'
Hosted
Linux
Preview'
name
:
'
Hosted
Linux
Preview'
steps
:
steps
:
...
@@ -44,7 +110,10 @@ phases:
...
@@ -44,7 +110,10 @@ phases:
volumes
:
|
volumes
:
|
$(Build.SourcesDirectory):/src
$(Build.SourcesDirectory):/src
$(Build.BinariesDirectory):/build
$(Build.BinariesDirectory):/build
envVars
:
'
CMAKE_OPTIONS=-DUSE_HTTPS=mbedTLS
-DSHA1_BACKEND=mbedTLS'
envVars
:
|
CC=clang
CMAKE_OPTIONS=-DUSE_HTTPS=mbedTLS -DSHA1_BACKEND=mbedTLS
LEAK_CHECK=valgrind
workDir
:
'
/build'
workDir
:
'
/build'
containerCommand
:
'
/src/ci/build.sh'
containerCommand
:
'
/src/ci/build.sh'
detached
:
false
detached
:
false
...
...
ci/build.sh
View file @
dc6e80e2
...
@@ -9,6 +9,7 @@ set -e
...
@@ -9,6 +9,7 @@ set -e
SOURCE_DIR
=
${
SOURCE_DIR
:-$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
dirname
$(
pwd
)
)}
SOURCE_DIR
=
${
SOURCE_DIR
:-$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
dirname
$(
pwd
)
)}
BUILD_DIR
=
$(
pwd
)
BUILD_DIR
=
$(
pwd
)
CC
=
${
CC
:-
cc
}
indent
()
{
sed
"s/^/ /"
;
}
indent
()
{
sed
"s/^/ /"
;
}
...
@@ -20,7 +21,7 @@ uname -a 2>&1 | indent
...
@@ -20,7 +21,7 @@ uname -a 2>&1 | indent
echo
"CMake version:"
echo
"CMake version:"
cmake
--version
2>&1 | indent
cmake
--version
2>&1 | indent
echo
"Compiler version:"
echo
"Compiler version:"
gcc
--version
2>&1 | indent
$CC
--version
2>&1 | indent
echo
""
echo
""
echo
"##############################################################################"
echo
"##############################################################################"
...
...
ci/setup-linux.sh
View file @
dc6e80e2
...
@@ -3,6 +3,6 @@
...
@@ -3,6 +3,6 @@
set
-x
set
-x
apt-get update
apt-get update
apt-get
-y
install build-essential pkg-config cmake openssl libssl-dev libssh2-1-dev libcurl4-gnutls-dev openssh-server
apt-get
-y
install build-essential pkg-config c
lang c
make openssl libssl-dev libssh2-1-dev libcurl4-gnutls-dev openssh-server
mkdir
-p
/var/run/sshd
mkdir
-p
/var/run/sshd
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