-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
55 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
defaults: | ||
install-deps: &install-deps | ||
run: | ||
name: "Install dependencies" | ||
command: | | ||
apt update -y | ||
apt install -y curl cmake git g++ | ||
curl -sL https://deb.nodesource.com/setup_8.x | bash - | ||
apt install -y nodejs | ||
npm install | ||
npm ln | ||
lint: &lint | ||
run: | ||
name: "Lint source code" | ||
command: | | ||
npm run lint | ||
install-evm2wasm: &install-evm2wasm | ||
run: | ||
working_directory: /home/ | ||
name: "clone and install evm2wasm" | ||
command: | | ||
git clone --recursive https://github.com/ewasm/evm2wasm | ||
cd evm2wasm | ||
cd tools/wabt | ||
cmake -DBUILD_TESTS=OFF | ||
make -j8 | ||
cd .. | ||
npm install | ||
vm-tests: &vm-tests | ||
run: | ||
working_directory: /home/evm2wasm | ||
name: "Run ethereum VM tests" | ||
command: | | ||
npm run vmTests | ||
build-steps: &build-steps | ||
- checkout | ||
- *install-deps | ||
# - *lint | ||
- *install-evm2wasm | ||
- *vm-tests | ||
|
||
version: 2 | ||
jobs: | ||
# to run this using local circleci tool, rename Ewasm-Tests to `build` then do `circleci build -c circle.yml` | ||
build: | ||
docker: | ||
- image: ubuntu:xenial | ||
steps: *build-steps | ||
|
||
workflows: | ||
version: 2 | ||
ewasm-kernel-build: | ||
jobs: | ||
- build |