Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2967 from EOSIO/slim
Browse files Browse the repository at this point in the history
Merge slim into master
  • Loading branch information
bytemaster committed May 11, 2018
2 parents 716e752 + b6f0842 commit 9be8910
Show file tree
Hide file tree
Showing 282 changed files with 19,745 additions and 16,293 deletions.
29 changes: 29 additions & 0 deletions .buildkite/coverage.yml
@@ -0,0 +1,29 @@
steps:
- command: |
echo "--- :hammer: Building" && \
/usr/bin/cmake -GNinja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=clang++-4.0 -DCMAKE_C_COMPILER=clang-4.0 -DWASM_ROOT=/root/opt/wasm -DOPENSSL_ROOT_DIR=/usr/include/openssl -DBUILD_MONGO_DB_PLUGIN=true -DENABLE_COVERAGE_TESTING=true -DBUILD_DOXYGEN=false && \
/usr/bin/ninja
echo "--- :spiral_note_pad: Generating Code Coverage Report" && \
/usr/bin/ninja EOS_ut_coverage && \
echo "--- :arrow_up: Publishing Code Coverage Report" && \
buildkite-agent artifact upload "EOS_ut_coverage/**/*" s3://eosio-coverage/$BUILDKITE_JOB_ID && \
cp /config/.coveralls.yml . && \
/usr/local/bin/coveralls-lcov EOS_ut_coverage_filtered.info && \
echo "+++ View Report" && \
printf "\033]1339;url=https://eosio-coverage.s3-us-west-2.amazonaws.com/$BUILDKITE_JOB_ID/EOS_ut_coverage/index.html;content=View Full Coverage Report\a\n"
label: ":spiral_note_pad: Generate Report"
agents:
- "role=linux-coverage"
plugins:
docker#v1.1.1:
image: "eosio/ci:ubuntu18"
workdir: /data/job
mounts:
- /etc/buildkite-agent/config:/config
environment:
- BOOST_ROOT=/root/opt/boost_1_66_0
- OPENSSL_ROOT_DIR=/usr/include/openssl
- WASM_ROOT=/root/opt/wasm
- PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root/opt/wasm/bin
- CI=true
timeout: 30
47 changes: 47 additions & 0 deletions .buildkite/pipeline.yml
Expand Up @@ -25,6 +25,22 @@ steps:
docker#v1.1.1:
image: "eosio/ci:ubuntu"
workdir: /data/job
timeout: 30
- command: |
echo "+++ :hammer: Building" && \
echo 1 | ./eosio_build.sh && \
echo "--- :compression: Compressing build directory" && \
tar -pczf build.tar.gz build/
label: ":ubuntu: 18.04 Build"
agents:
- "role=linux-builder"
artifact_paths: "build.tar.gz"
plugins:
docker#v1.1.1:
image: "eosio/ci:ubuntu18"
workdir: /data/job
timeout: 30
- command: |
echo "+++ :hammer: Building" && \
Expand All @@ -39,6 +55,7 @@ steps:
docker#v1.1.1:
image: "eosio/ci:fedora"
workdir: /data/job
timeout: 30
- command: |
echo "+++ :hammer: Building" && \
Expand All @@ -53,6 +70,7 @@ steps:
docker#v1.1.1:
image: "eosio/ci:centos"
workdir: /data/job
timeout: 30
- command: |
echo "+++ :hammer: Building" && \
Expand All @@ -67,6 +85,7 @@ steps:
docker#v1.1.1:
image: "eosio/ci:amazonlinux"
workdir: /data/job
timeout: 30
- wait

Expand Down Expand Up @@ -112,6 +131,31 @@ steps:
docker#v1.1.1:
image: "eosio/ci:ubuntu"
workdir: /data/job
timeout: 30
- command: |
echo "--- :arrow_down: Downloading build directory" && \
buildkite-agent artifact download "build.tar.gz" . --step ":ubuntu: 18.04 Build" &&
tar -zxf build.tar.gz && \
echo "--- :m: Starting MongoDB" && \
$(which mongod) --fork --logpath "$(pwd)"/mongod.log && \
echo "+++ :microscope: Running tests" && \
cd /data/job/build && ctest --output-on-failure
retry:
automatic:
limit: 1
label: ":ubuntu: 18.04 Tests"
agents:
- "role=linux-tester"
artifact_paths:
- "mongod.log"
- "build/genesis.json"
- "build/config.ini"
plugins:
docker#v1.1.1:
image: "eosio/ci:ubuntu18"
workdir: /data/job
timeout: 30
- command: |
echo "--- :arrow_down: Downloading build directory" && \
Expand All @@ -135,6 +179,7 @@ steps:
docker#v1.1.1:
image: "eosio/ci:fedora"
workdir: /data/job
timeout: 30
- command: |
echo "--- :arrow_down: Downloading build directory" && \
Expand All @@ -158,6 +203,7 @@ steps:
docker#v1.1.1:
image: "eosio/ci:centos"
workdir: /data/job
timeout: 30
- command: |
echo "--- :arrow_down: Downloading build directory" && \
Expand All @@ -181,3 +227,4 @@ steps:
docker#v1.1.1:
image: "eosio/ci:amazonlinux"
workdir: /data/job
timeout: 30
32 changes: 16 additions & 16 deletions .gitignore
Expand Up @@ -10,6 +10,7 @@
*.dot
*.abi.hpp
*.cmake
*.ninja
\#*
\.#*
CMakeCache.txt
Expand All @@ -29,6 +30,9 @@ libraries/egenesis/egenesis_full.cpp
libraries/egenesis/embed_genesis
libraries/types/type_generator
libraries/types/types_test
libraries/fc/test/crypto/test_cypher_suites
libraries/testing/chain_tester


libraries/wallet/Doxyfile
libraries/wallet/api_documentation.cpp
Expand All @@ -39,24 +43,24 @@ libraries/wasm-jit/Source/Programs/Disassemble
libraries/wasm-jit/Source/Programs/Test
libraries/wasm-jit/Source/Programs/wavm

programs/cli_wallet/cli_wallet
programs/cleos/cleos
programs/js_operation_serializer/js_operation_serializer
programs/witness_node/witness_node
programs/data-dir
programs/eos-walletd/eos-walletd
programs/eosiod/eosiod
programs/eosioc/eosioc
programs/launcher/launcher
programs/eosio-abigen/eosio-abigen
programs/cleos/config.hpp
programs/eosio-applesedemo/eosio-applesedemo
programs/eosio-launcher/config.hpp
programs/eosio-launcher/eosio-launcher
programs/keosd/keosd
programs/nodeos/config.hpp
programs/nodeos/nodeos

scripts/tn_init.sh

tests/app_test
tests/chain_bench
tests/chain_test
tests/intense_test
tests/performance_test
tests/tests/config.hpp
tests/plugin_test
tests/config.hpp
unittests/config.hpp
unittests/unit_test

doxygen

Expand All @@ -65,10 +69,6 @@ witness_node_data_dir

*.wallet

programs/witness_node/object_database/*

object_database/*

*.pyc
*.pyo

Expand Down
3 changes: 2 additions & 1 deletion CMakeLists.txt
Expand Up @@ -18,7 +18,7 @@ set( CMAKE_CXX_STANDARD 14 )
set( CMAKE_CXX_EXTENSIONS ON )
set( CXX_STANDARD_REQUIRED ON)

set(VERSION_MAJOR 3)
set(VERSION_MAJOR 4)
set(VERSION_MINOR 0)
set(VERSION_PATCH 0)

Expand Down Expand Up @@ -187,6 +187,7 @@ add_subdirectory( contracts )
add_subdirectory( plugins )
add_subdirectory( programs )
add_subdirectory( scripts )
add_subdirectory( unittests )
add_subdirectory( tests )
add_subdirectory( tools )
add_subdirectory( debian )
Expand Down
14 changes: 12 additions & 2 deletions CMakeModules/wasm.cmake
Expand Up @@ -151,12 +151,22 @@ macro(add_wast_executable)

add_custom_command(OUTPUT ${DESTINATION_FOLDER}/${target}.wast
DEPENDS ${target}.s
COMMAND $<TARGET_FILE:eosio-s2wasm> -o ${DESTINATION_FOLDER}/${target}.wast -s 8192 ${MAX_MEMORY_PARAM} ${target}.s
COMMAND $<TARGET_FILE:eosio-s2wasm> -o ${DESTINATION_FOLDER}/${target}.wast -s 10240 ${MAX_MEMORY_PARAM} ${target}.s
COMMENT "Generating WAST ${target}.wast"
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
VERBATIM
)
set_property(DIRECTORY APPEND PROPERTY ADDITIONAL_MAKE_CLEAN_FILES ${target}.wast)

add_custom_command(OUTPUT ${DESTINATION_FOLDER}/${target}.wasm
DEPENDS ${target}.wast
COMMAND $<TARGET_FILE:eosio-wast2wasm> ${DESTINATION_FOLDER}/${target}.wast ${DESTINATION_FOLDER}/${target}.wasm -n
COMMENT "Generating WASM ${target}.wasm"
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
VERBATIM
)
set_property(DIRECTORY APPEND PROPERTY ADDITIONAL_MAKE_CLEAN_FILES ${target}.wasm)

STRING (REPLACE "." "_" TARGET_VARIABLE "${target}")

add_custom_command(OUTPUT ${DESTINATION_FOLDER}/${target}.wast.hpp
Expand All @@ -182,7 +192,7 @@ macro(add_wast_executable)
else()
endif()

add_custom_target(${target} ALL DEPENDS ${DESTINATION_FOLDER}/${target}.wast.hpp ${extra_target_dependency})
add_custom_target(${target} ALL DEPENDS ${DESTINATION_FOLDER}/${target}.wast.hpp ${extra_target_dependency} ${DESTINATION_FOLDER}/${target}.wasm)

set_property(DIRECTORY APPEND PROPERTY ADDITIONAL_MAKE_CLEAN_FILES ${DESTINATION_FOLDER}/${target}.wast.hpp)

Expand Down
12 changes: 6 additions & 6 deletions Docker/README.md
Expand Up @@ -61,7 +61,7 @@ After `docker-compose up -d`, two services named `nodeosd` and `keosd` will be s
You can run the `cleos` commands via a bash alias.

```bash
alias cleos='docker-compose exec keosd /opt/eosio/bin/cleos -u http://nodeosd:8888' # For DAWN3.0, use '-H nodeosd' instead of '-u http://nodeosd:8888'
alias cleos='docker-compose exec keosd /opt/eosio/bin/cleos -u http://nodeosd:8888'
cleos get info
cleos get account inita
```
Expand Down Expand Up @@ -171,13 +171,13 @@ volumes:

*NOTE:* the default version is the latest, you can change it to what you want

run `docker pull eosio/eos:latest`
run `docker pull eosio/eos:latest`

run `docker-compose up`

### Dawn3.0 Testnet
### Dawn 4.0 Testnet

We can easliy set up a dawn3.0 local testnet using docker images. Just run the following commands:
We can easily set up a Dawn 4.0 local testnet using docker images. Just run the following commands:

Note: if you want to use the mongo db plugin, you have to enable it in your `data-dir/config.ini` first.

Expand All @@ -190,13 +190,13 @@ docker volume create --name=nodeos-data-volume
docker volume create --name=keosd-data-volume
docker volume create --name=mongo-data-volume
# start containers
docker-compose -f docker-compose-dawn3.0.yaml up -d
docker-compose -f docker-compose-dawn4.0.yaml up -d
# get chain info
curl http://127.0.0.1:8888/v1/chain/get_info
# get logs
docker-compose logs nodeosd
# stop containers
docker-compose -f docker-compose-dawn3.0.yaml down
docker-compose -f docker-compose-dawn4.0.yaml down
```

The `blocks` data are stored under `--data-dir` by default, and the wallet files are stored under `--wallet-dir` by default, of course you can change these as you want.
Expand Down
File renamed without changes.

0 comments on commit 9be8910

Please sign in to comment.