Skip to content

Commit

Permalink
add circleCI config
Browse files Browse the repository at this point in the history
  • Loading branch information
jwasinger committed Apr 11, 2018
1 parent a691236 commit 20e7138
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions circle.yml
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

0 comments on commit 20e7138

Please sign in to comment.