Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
stitchEm
Project
Project
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
Franco (nextime) Lanza
stitchEm
Commits
80884a4d
Commit
80884a4d
authored
6 years ago
by
jerem
Committed by
jeremad
6 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use ccache to speed up CI builds
parent
4f917521
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
5 deletions
+17
-5
.travis.yml
.travis.yml
+15
-4
base.dockerfile
docker/base.dockerfile
+1
-0
ci.dockerfile
docker/ci.dockerfile
+1
-1
No files found.
.travis.yml
View file @
80884a4d
language
:
cpp
language
:
cpp
cache
:
ccache
matrix
:
matrix
:
include
:
include
:
...
@@ -9,6 +10,7 @@ matrix:
...
@@ -9,6 +10,7 @@ matrix:
update
:
true
update
:
true
packages
:
packages
:
-
bison
-
bison
-
ccache
-
ceres-solver
-
ceres-solver
-
CMake
-
CMake
-
doxygen
-
doxygen
...
@@ -26,7 +28,7 @@ matrix:
...
@@ -26,7 +28,7 @@ matrix:
-
qt
-
qt
-
yasm
-
yasm
before_install
:
before_install
:
-
export PATH="/usr/local/opt/bison/bin:${PATH}"
-
export PATH="/usr/local/opt/bison/bin:
/usr/local/opt/ccache/libexec:
${PATH}"
script
:
script
:
-
mkdir build
-
mkdir build
-
cd build
-
cd build
...
@@ -36,17 +38,26 @@ matrix:
...
@@ -36,17 +38,26 @@ matrix:
dist
:
xenial
dist
:
xenial
services
:
services
:
-
docker
-
docker
script
:
before_
script
:
-
docker build --tag stitchem-cuda8:latest --file docker/ci.dockerfile --build-arg version=8 .
-
docker build --tag stitchem-cuda8:latest --file docker/ci.dockerfile --build-arg version=8 .
-
docker create -v ${HOME}/.ccache:/ccache --name ccache stitchem-cuda8:latest
script
:
-
docker run --env CCACHE_DIR=/ccache --volumes-from ccache stitchem-cuda8:latest
-
name
:
CUDA 9 Linux
-
name
:
CUDA 9 Linux
dist
:
xenial
dist
:
xenial
services
:
services
:
-
docker
-
docker
script
:
before_
script
:
-
docker build --tag stitchem-cuda9:latest --file docker/ci.dockerfile --build-arg version=9 .
-
docker build --tag stitchem-cuda9:latest --file docker/ci.dockerfile --build-arg version=9 .
-
docker create -v ${HOME}/.ccache:/ccache --name ccache stitchem-cuda9:latest
script
:
-
docker run --env CCACHE_DIR=/ccache --volumes-from ccache stitchem-cuda9:latest
-
name
:
CUDA 10 Linux
-
name
:
CUDA 10 Linux
dist
:
xenial
dist
:
xenial
services
:
services
:
-
docker
-
docker
script
:
before_
script
:
-
docker build --tag stitchem-cuda10:latest --file docker/ci.dockerfile --build-arg version=10 .
-
docker build --tag stitchem-cuda10:latest --file docker/ci.dockerfile --build-arg version=10 .
-
docker create -v ${HOME}/.ccache:/ccache --name ccache stitchem-cuda10:latest
script
:
-
docker run --env CCACHE_DIR=/ccache --volumes-from ccache stitchem-cuda10:latest
This diff is collapsed.
Click to expand it.
docker/base.dockerfile
View file @
80884a4d
...
@@ -4,6 +4,7 @@ ENV DEBIAN_FRONTEND=noninteractive
...
@@ -4,6 +4,7 @@ ENV DEBIAN_FRONTEND=noninteractive
RUN apt update && apt install -y \
RUN apt update && apt install -y \
bison \
bison \
ccache \
doxygen \
doxygen \
flex \
flex \
git \
git \
...
...
This diff is collapsed.
Click to expand it.
docker/ci.dockerfile
View file @
80884a4d
...
@@ -6,4 +6,4 @@ WORKDIR stitchEm
...
@@ -6,4 +6,4 @@ WORKDIR stitchEm
RUN echo ${CUDA_SHORT} > cuda.version
RUN echo ${CUDA_SHORT} > cuda.version
WORKDIR build
WORKDIR build
RUN cmake -DCMAKE_BUILD_TYPE=Release -DLINUX_PKG=ON -DRTMP_NVENC=OFF -DCUDA_TARGET_ARCH="50" -G Ninja ..
RUN cmake -DCMAKE_BUILD_TYPE=Release -DLINUX_PKG=ON -DRTMP_NVENC=OFF -DCUDA_TARGET_ARCH="50" -G Ninja ..
RUN
ninja
CMD
ninja
This diff is collapsed.
Click to expand it.
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