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

69 lines
2.6 KiB
YAML
Raw Normal View History

2020-08-21 12:11:01 +00:00
stages:
2020-11-20 10:40:01 +00:00
- checks
2021-01-26 11:56:36 +00:00
- prepare
- publish
variables:
IMAGE: ${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHA}
2020-08-21 12:11:01 +00:00
test:
2020-11-20 10:40:01 +00:00
stage: checks
2020-08-21 12:11:01 +00:00
tags:
- aave-build-runner
before_script:
- docker-compose -p ${CI_JOB_ID} -f docker-compose.test.yml build
2020-08-21 12:11:01 +00:00
script:
- docker-compose -p ${CI_JOB_ID} -f docker-compose.test.yml run contracts-env npm run ci:test
2020-08-21 12:11:01 +00:00
after_script:
- docker-compose -p ${CI_JOB_ID} -f docker-compose.test.yml run contracts-env npm run ci:clean
- docker-compose -p ${CI_JOB_ID} -f docker-compose.test.yml down
2020-11-20 10:40:01 +00:00
deploy-mainnet-fork:
2020-11-23 15:39:22 +00:00
tags:
- aave-build-runner
2020-11-20 10:40:01 +00:00
stage: checks
before_script:
- docker-compose -p ${CI_JOB_ID} -f docker-compose.test.yml build
script:
- docker-compose -p ${CI_JOB_ID} -f docker-compose.test.yml run contracts-env npm run aave:fork:main
after_script:
- docker-compose -p ${CI_JOB_ID} -f docker-compose.test.yml run contracts-env npm run ci:clean
- docker-compose -p ${CI_JOB_ID} -f docker-compose.test.yml down
2020-11-01 16:34:06 +00:00
certora-test:
stage: checks
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:01:52 +00:00
- apt-get update || apt-get update
- apt-get install -y software-properties-common
2020-12-03 15:46:05 +00:00
- pip3 install certora-cli
2020-11-22 20:43:01 +00:00
- wget https://github.com/ethereum/solidity/releases/download/v0.6.12/solc-static-linux
2020-11-01 16:34:06 +00:00
- chmod +x solc-static-linux
2020-11-01 18:01:52 +00:00
- mv solc-static-linux /usr/bin/solc
2020-11-01 19:11:47 +00:00
- export PATH=$PATH:/usr/bin/solc/solc-static-linux
2020-11-01 16:34:06 +00:00
script:
2021-01-18 14:56:16 +00:00
- certoraRun specs/harness/StableDebtTokenHarness.sol:StableDebtTokenHarness --solc_args "['--optimize']" --verify StableDebtTokenHarness:specs/StableDebtToken.spec --settings -assumeUnwindCond,-b=4 --cache StableDebtToken --cloud
- certoraRun specs/harness/UserConfigurationHarness.sol --verify UserConfigurationHarness:specs/UserConfiguration.spec --solc_args "['--optimize']" --settings -useBitVectorTheory --cache UserConfiguration --cloud
- certoraRun contracts/protocol/tokenization/VariableDebtToken.sol:VariableDebtToken specs/harness/LendingPoolHarnessForVariableDebtToken.sol --solc_args "['--optimize']" --link VariableDebtToken:POOL=LendingPoolHarnessForVariableDebtToken --verify VariableDebtToken:specs/VariableDebtToken.spec --settings -assumeUnwindCond,-useNonLinearArithmetic,-b=4 --cache VariableDebtToken --cloud
2021-01-26 11:56:36 +00:00
prepare:
stage: prepare
tags:
- docker-builder
script:
- docker build -t ${IMAGE} .
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
- docker push ${IMAGE}
only:
- master
publish:
extends: .image_step
stage: publish
script:
- npm ci
- echo //registry.npmjs.org/:_authToken=${NPM_V2_PACKAGES_TOKEN} > .npmrc
- npm run compile
- ${VERSION}
- npm publish --access public