浏览代码

Add travis job to run test suite with solc nightly (#902)

Job is allowed to fail, and is run just for information purposes
Santiago Palladino 7 年之前
父节点
当前提交
0b33d29e41
共有 2 个文件被更改,包括 7 次插入0 次删除
  1. 2 0
      .travis.yml
  2. 5 0
      scripts/test.sh

+ 2 - 0
.travis.yml

@@ -10,10 +10,12 @@ cache:
 env:
   -
   - SOLIDITY_COVERAGE=true
+  - SOLC_NIGHTLY=true
 matrix:
   fast_finish: true
   allow_failures:
     - env: SOLIDITY_COVERAGE=true
+    - env: SOLC_NIGHTLY=true
 before_script:
   - truffle version
 script:

+ 5 - 0
scripts/test.sh

@@ -54,6 +54,11 @@ else
   start_ganache
 fi
 
+if [ "$SOLC_NIGHTLY" = true ]; then
+  echo "Downloading solc nightly"
+  wget -q https://raw.githubusercontent.com/ethereum/solc-bin/gh-pages/bin/soljson-nightly.js -O /tmp/soljson.js && find . -name soljson.js -exec cp /tmp/soljson.js {} \;
+fi
+
 if [ "$SOLIDITY_COVERAGE" = true ]; then
   node_modules/.bin/solidity-coverage