-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #320 from layus/docker-ci
Travis CI based on docker
- Loading branch information
Showing
5 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM fedora | ||
|
||
RUN yum -y update && \ | ||
yum -y install boost-devel tk-devel cmake gcc emacs-nox make gcc-c++ git jre-headless boost-static rpm-build | ||
|
||
RUN mkdir -p /usr/src/mozart2/build | ||
WORKDIR /usr/src/mozart2/build | ||
|
||
COPY . /usr/src/mozart2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM ubuntu | ||
|
||
RUN export DEBIAN_FRONTEND=noninteractive && \ | ||
apt-get -qq update && \ | ||
apt-get install -y libboost-all-dev emacs tk8.6-dev cmake make openjdk-8-jre 'g++' git dpkg-dev | ||
|
||
RUN mkdir -p /usr/src/mozart2/build | ||
WORKDIR /usr/src/mozart2/build | ||
|
||
COPY . /usr/src/mozart2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#/usr/bin/env bash | ||
set -xe | ||
|
||
if [ -n "$1" ]; then | ||
cmake -DCPACK_GENERATOR=RPM .. | ||
make -j4 package | ||
|
||
cp mozart2-*.rpm /mnt | ||
else | ||
ci=$(realpath ${BASH_SOURCE%/*}) | ||
docker build -f $ci/Dockerfile.fedora -t mozart2-fedora $ci/.. | ||
docker run -v$ci/..:/mnt -it mozart2-fedora bash ../ci/fedora.sh compile | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#/usr/bin/env bash | ||
set -xe | ||
|
||
if [ -n "$1" ]; then | ||
cmake -DCPACK_GENERATOR=DEB .. | ||
make -j4 package | ||
|
||
cp mozart2-*.deb /mnt | ||
else | ||
ci=$(dirname $(realpath $BASH_SOURCE)) | ||
docker build -f $ci/Dockerfile.ubuntu -t mozart2-ubuntu $ci/.. | ||
docker run -v$ci/..:/mnt -it mozart2-ubuntu bash ../ci/ubuntu.sh compile | ||
fi |