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
e0ce3d9d
Commit
e0ce3d9d
authored
Oct 12, 2018
by
Patrick Steinhardt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci: perform clang builds on Linux
(cherry picked from commit
dc6e80e2
)
parent
d92cff19
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
5 deletions
+39
-5
.vsts-ci.yml
+36
-3
ci/build.sh
+2
-1
ci/setup-linux.sh
+1
-1
No files found.
.vsts-ci.yml
View file @
e0ce3d9d
...
...
@@ -2,8 +2,8 @@ resources:
-
repo
:
self
phases
:
-
phase
:
linux_trusty_openssl
displayName
:
'
Linux
(Trusty;
OpenSSL)'
-
phase
:
linux_trusty_
gcc_
openssl
displayName
:
'
Linux
(Trusty;
GCC;
OpenSSL)'
queue
:
name
:
'
Hosted
Linux
Preview'
steps
:
...
...
@@ -26,7 +26,40 @@ phases:
volumes
:
|
$(Build.SourcesDirectory):/src
$(Build.BinariesDirectory):/build
envVars
:
'
LEAK_CHECK=valgrind'
envVars
:
|
CC=gcc
LEAK_CHECK=valgrind
workDir
:
'
/build'
containerCommand
:
'
/src/ci/test.sh'
detached
:
false
-
phase
:
linux_trusty_clang_openssl
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
...
...
ci/build.sh
View file @
e0ce3d9d
...
...
@@ -9,6 +9,7 @@ set -e
SOURCE_DIR
=
${
SOURCE_DIR
:-$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
dirname
$(
pwd
)
)}
BUILD_DIR
=
$(
pwd
)
CC
=
${
CC
:-
cc
}
indent
()
{
sed
"s/^/ /"
;
}
...
...
@@ -20,7 +21,7 @@ uname -a 2>&1 | indent
echo
"CMake version:"
cmake
--version
2>&1 | indent
echo
"Compiler version:"
gcc
--version
2>&1 | indent
$CC
--version
2>&1 | indent
echo
""
echo
"##############################################################################"
...
...
ci/setup-linux.sh
View file @
e0ce3d9d
...
...
@@ -3,6 +3,6 @@
set
-x
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
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