Skip to content

Commit

Permalink
Merge pull request assimilation#64 from assimilation/borgified/ubuntu…
Browse files Browse the repository at this point in the history
…1804

ci(ubuntu): setup ubuntu build environment
  • Loading branch information
Alan-R authored Apr 22, 2019
2 parents 2642750 + 7c16ee1 commit 0adc7af
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,16 @@ script:
# in future, we'll just pull a pre-built image to speed up build times
- docker build -f ci/Dockerfiles/$BUILD_ENV.dockerfile -t test_img .
# use test_img to generate rpm / deb packages (cmake). drop the output in /build_artifacts
- docker run -v $TRAVIS_BUILD_DIR:/root/assimilation/src -v /tmp/ba:/build_artifacts test_img touch /build_artifacts/test
# path-to-source-directory = /root/assimilation/src
# path-to-binary-directory = /root/assimilation/bin
# path-to-build-artifacts = /root/assimilation/ba
- |
docker run \
-v $TRAVIS_BUILD_DIR:/root/assimilation/src \
-v /tmp/bin:/root/assimilation/bin \
-v /tmp/ba:/root/assimilation/ba \
test_img \
bash -c "cmake ../src && make install"
# test the new packages in a stock image (install and run tests)
- docker run -v /tmp/ba:/packages $STOCK ls -al /packages
# - docker run -v /tmp/ba:/packages $STOCK ls -al /packages
# upload to artifactory
13 changes: 13 additions & 0 deletions ci/Dockerfiles/ubuntu1804.dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
FROM ubuntu:18.04
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get -y update && apt-get install -y \
build-essential \
cmake \
pkg-config \
python-pip \
libglib2.0-dev \
libpcap-dev \
libsodium-dev \
git \
&& rm -rf /var/lib/apt/lists/*
RUN pip install -e git+https://github.com/olsonse/ctypesgen#egg=ctypesgen
WORKDIR /root/assimilation/bin

0 comments on commit 0adc7af

Please sign in to comment.