aboutsummaryrefslogtreecommitdiffstats
path: root/circle.yml
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-02-10 00:21:36 +0800
committerchriseth <chris@ethereum.org>2018-02-10 01:24:12 +0800
commit981ff308ecfbd596d7f94852462591316bcaa2e7 (patch)
tree23ba2beaae0b87402cdadf19f12b0431821cfa11 /circle.yml
parent0a4dc2cc8679389ede7f3617edcab37b3a145880 (diff)
downloaddexon-solidity-981ff308ecfbd596d7f94852462591316bcaa2e7.tar.gz
dexon-solidity-981ff308ecfbd596d7f94852462591316bcaa2e7.tar.zst
dexon-solidity-981ff308ecfbd596d7f94852462591316bcaa2e7.zip
Split solcjs and external tests.
Diffstat (limited to 'circle.yml')
-rw-r--r--circle.yml37
1 files changed, 29 insertions, 8 deletions
diff --git a/circle.yml b/circle.yml
index f2054384..c1c83119 100644
--- a/circle.yml
+++ b/circle.yml
@@ -34,25 +34,43 @@ jobs:
root: workspace
paths:
- soljson.js
- test_emscripten:
+ test_emscripten_solcjs:
docker:
- image: trzeci/emscripten:sdk-tag-1.37.21-64bit
steps:
- checkout
- attach_workspace:
at: /tmp/workspace
- - run: mkdir -p build/libsolc/
- - run: cp /tmp/workspace/soljson.js build/libsolc/soljson.js
- - run: cp /tmp/workspace/soljson.js soljson.js
- run:
name: Install external tests deps
command: |
apt-get -qq update
apt-get -qy install netcat curl
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.4/install.sh | NVM_DIR=/usr/local/nvm bash
+ export NVM_DIR="/usr/local/nvm"
+ [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
+ nvm --version
+ nvm install 6
+ node --version
+ npm --version
- run:
- name: Test external tests deps
+ name: Test solcjs
command: |
+ . /usr/local/nvm/nvm.sh
+ test/solcjsTests.sh /tmp/workspace/soljson.js
+ test_emscripten_external:
+ docker:
+ - image: trzeci/emscripten:sdk-tag-1.37.21-64bit
+ steps:
+ - checkout
+ - attach_workspace:
+ at: /tmp/workspace
+ - run:
+ name: Install external tests deps
+ command: |
+ apt-get -qq update
+ apt-get -qy install netcat curl
+ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.4/install.sh | NVM_DIR=/usr/local/nvm bash
export NVM_DIR="/usr/local/nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
nvm --version
@@ -60,10 +78,10 @@ jobs:
node --version
npm --version
- run:
- name: Test
+ name: External tests
command: |
. /usr/local/nvm/nvm.sh
- scripts/test_emscripten.sh
+ test/externalTests.sh /tmp/workspace/soljson.js
build_x86:
docker:
- image: buildpack-deps:artful
@@ -115,7 +133,10 @@ workflows:
build_all:
jobs:
- build_emscripten
- - test_emscripten:
+ - test_emscripten_solcjs:
+ requires:
+ - build_emscripten
+ - test_emscripten_external:
requires:
- build_emscripten
- build_x86