aave-protocol-v2/.gitlab-ci.yml

37 lines
1.3 KiB
YAML
Raw Normal View History

2020-08-21 12:11:01 +00:00
stages:
- test
test:
stage: test
tags:
- aave-build-runner
before_script:
- docker-compose -f docker-compose.test.yml build
script:
2020-08-21 12:19:07 +00:00
- docker-compose -f docker-compose.test.yml run contracts-env npm run ci:test
2020-08-21 12:11:01 +00:00
after_script:
- docker-compose -f docker-compose.test.yml run contracts-env npm run ci:clean
- docker-compose -f docker-compose.test.yml down
2020-11-01 16:34:06 +00:00
certora-test:
stage: test
2020-11-01 18:07:48 +00:00
image: python:latest
2020-11-01 16:34:06 +00:00
before_script:
2020-11-01 18:41:50 +00:00
- export PATH=$PATH:~/.local/bin
2020-11-01 18:01:52 +00:00
- apt-get update || apt-get update
- apt-get install -y software-properties-common
2020-11-01 18:41:50 +00:00
- apt-get install curl
- curl -O https://download.java.net/java/GA/jdk13/5b8a42f3905b406298b72d750b6919f6/33/GPL/openjdk-13_linux-x64_bin.tar.gz
- tar xvf openjdk-13_linux-x64_bin.tar.gz
2020-11-01 18:55:06 +00:00
- mkdir --parents ~/java; mv jdk-13 $_
- export JAVA_HOME=~/java/jdk-13
2020-11-01 18:41:50 +00:00
- export PATH=$PATH:$JAVA_HOME/bin
2020-11-01 18:58:10 +00:00
- whereis java
2020-11-01 16:34:06 +00:00
- pip3 install certora-cli-beta==0.4.1
- wget https://github.com/ethereum/solidity/releases/download/v0.6.8/solc-static-linux
- chmod +x solc-static-linux
2020-11-01 18:01:52 +00:00
- mv solc-static-linux /usr/bin/solc
2020-11-01 16:34:06 +00:00
script:
2020-11-01 18:17:31 +00:00
- certoraRun specs/harness/StableDebtTokenHarness.sol:StableDebtTokenHarness --solc solc6.8 --verify StableDebtTokenHarness:specs/StableDebtToken spec --settings -assumeUnwindCond --cache StableDebtToken --staging
2020-11-01 16:34:06 +00:00