-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: adds integration testing in docker
Signed-off-by: Vincenzo Palazzo <[email protected]>
- Loading branch information
1 parent
89b28f1
commit 054fbd6
Showing
8 changed files
with
209 additions
and
3 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,19 @@ | ||
name: Integration testing | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
schedule: | ||
- cron: '30 1 1,15 * *' | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Integration testing | ||
run: | | ||
cd docker | ||
docker-compose up --exit-code-from coffee |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,43 @@ | ||
FROM ubuntu:20.04 | ||
LABEL mantainer="Vincenzo Palazzo [email protected]" | ||
|
||
ENV TZ=Europe/Minsk | ||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | ||
|
||
# Ubuntu utils | ||
RUN apt-get update && apt-get install -y \ | ||
software-properties-common \ | ||
build-essential \ | ||
curl wget | ||
|
||
RUN apt-get update | ||
|
||
## Install Rust | ||
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y | ||
ENV PATH="/root/.cargo/bin:${PATH}" | ||
RUN echo 'source $HOME/.cargo/env' >> $HOME/.bashrc | ||
|
||
# Install bitcoin core and lightningd (last version) | ||
RUN add-apt-repository ppa:luke-jr/bitcoincore | ||
RUN apt-get update && apt-get install -y \ | ||
bitcoind jq libsodium-dev libpq-dev | ||
autoconf automake build-essential git libtool libgmp-dev libsqlite3-dev \ | ||
python3 python3-pip net-tools zlib1g-dev libsodium-dev gettext \ | ||
pkg-config libssl-dev cmake | ||
|
||
ENV CLIGHTNING_VERSION=master | ||
|
||
RUN git clone https://github.com/ElementsProject/lightning.git --branch=$CLIGHTNING_VERSION && \ | ||
cd lightning && \ | ||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && \ | ||
./configure --enable-developer --disable-rust && git submodule update --init --recursive && \ | ||
pip3 install --upgrade pip && \ | ||
pip3 install mako mistune==0.8.4 mrkd && \ | ||
make -j$(nproc) && make install | ||
|
||
RUN echo $(lightningd --version) | ||
|
||
WORKDIR workdir | ||
COPY . . | ||
|
||
CMD ["./docker/entrypoint.sh"] |
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,7 @@ | ||
version: "3.8" | ||
|
||
services: | ||
coffee: | ||
build: | ||
context: ../ | ||
dockerfile: ./docker/Dockerfile |
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,2 @@ | ||
#!/bin/bash | ||
RUST_BACKTRACE=1 make integration ARGS="-- --show-output" |