now runs tests!

This commit is contained in:
Jeffrey Paul 2016-09-09 11:46:34 +02:00
parent 7eb49c0fef
commit 3934e6e855
2 changed files with 19 additions and 2 deletions

View File

@ -65,6 +65,24 @@ RUN \
cd /usr/local/src/steem && \ cd /usr/local/src/steem && \
git checkout $STEEMD_REV && \ git checkout $STEEMD_REV && \
git submodule update --init --recursive && \ git submodule update --init --recursive && \
rsync -a \
/usr/local/src/steem/ \
/usr/local/src/steemtest/
RUN \
cd /usr/local/src/steemtest && \
cmake \
-DCMAKE_BUILD_TYPE=Debug \
-DBUILD_STEEM_TESTNET=On \
-DLOW_MEMORY_NODE=ON \
. \
&& \
make -j$(nproc) chain_test && \
./tests/chain_test && \
rm -rf /usr/local/src/steemtest
RUN \
cd /usr/local/src/steem && \
cmake \ cmake \
-DCMAKE_BUILD_TYPE=Release \ -DCMAKE_BUILD_TYPE=Release \
-DLOW_MEMORY_NODE=ON \ -DLOW_MEMORY_NODE=ON \
@ -74,8 +92,6 @@ RUN \
make install && \ make install && \
rm -rf /usr/local/src/steem rm -rf /usr/local/src/steem
# FIXME run steemd tests as part of build
RUN \ RUN \
apt-get remove -y \ apt-get remove -y \
automake \ automake \

View File

@ -7,6 +7,7 @@ services:
environment: environment:
- STEEMD_MINER_NAME - STEEMD_MINER_NAME
- STEEMD_PRIVATE_KEY - STEEMD_PRIVATE_KEY
- STEEMD_WITNESS_NAME
ports: ports:
- "8090:8090" - "8090:8090"
- "2001:2001" - "2001:2001"