2020-06-23 18:59:39 +00:00
|
|
|
---
|
|
|
|
version: 2.1
|
|
|
|
|
|
|
|
parameters:
|
|
|
|
workspace-dir:
|
|
|
|
type: string
|
|
|
|
default: "/home/circleci"
|
|
|
|
|
|
|
|
commands:
|
|
|
|
setup:
|
|
|
|
description: "install go, checkout and restore cache"
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run: sudo apt-get update
|
|
|
|
- run: sudo apt-get install ocl-icd-opencl-dev
|
|
|
|
- run: git submodule sync
|
|
|
|
- run: git submodule update --init
|
|
|
|
- run: cd extra/filecoin-ffi && make
|
|
|
|
|
|
|
|
executors:
|
2020-09-16 12:52:51 +00:00
|
|
|
golang:
|
|
|
|
docker:
|
|
|
|
- image: circleci/golang:1.14.6
|
|
|
|
resource_class: 2xlarge
|
2020-06-23 18:59:39 +00:00
|
|
|
|
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
main:
|
|
|
|
jobs:
|
2020-09-24 13:08:44 +00:00
|
|
|
- build-soup-linux
|
2020-10-07 23:08:30 +00:00
|
|
|
- build-graphsync-linux
|
2020-09-23 11:46:45 +00:00
|
|
|
- trigger-testplans
|
2020-09-17 16:22:09 +00:00
|
|
|
nightly:
|
|
|
|
triggers:
|
|
|
|
- schedule:
|
|
|
|
cron: "45 * * * *"
|
|
|
|
filters:
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
jobs:
|
2020-09-23 11:46:45 +00:00
|
|
|
- trigger-testplans
|
2020-06-23 18:59:39 +00:00
|
|
|
|
|
|
|
jobs:
|
2020-09-24 13:08:44 +00:00
|
|
|
|
|
|
|
build-soup-linux:
|
2020-09-16 12:52:51 +00:00
|
|
|
executor: golang
|
2020-08-05 18:59:57 +00:00
|
|
|
steps:
|
|
|
|
- setup
|
|
|
|
- run:
|
|
|
|
name: "build lotus-soup"
|
|
|
|
command: pushd lotus-soup && go build -tags=testground .
|
2020-09-24 13:08:44 +00:00
|
|
|
|
2020-10-07 23:08:30 +00:00
|
|
|
build-graphsync-linux:
|
|
|
|
executor: golang
|
|
|
|
steps:
|
|
|
|
- setup
|
|
|
|
- run:
|
|
|
|
name: "build graphsync"
|
|
|
|
command: pushd graphsync && go build .
|
|
|
|
|
2020-09-23 11:46:45 +00:00
|
|
|
trigger-testplans:
|
2020-09-17 16:22:09 +00:00
|
|
|
executor: golang
|
|
|
|
steps:
|
|
|
|
- setup
|
|
|
|
- run:
|
|
|
|
name: "download testground"
|
2020-10-06 14:40:23 +00:00
|
|
|
command: wget https://gist.github.com/nonsense/5fbf3167cac79945f658771aed32fc44/raw/35cc63898502274087da843b4752fda84025b861/testground-0abaea1 -O ~/testground-cli && chmod +x ~/testground-cli
|
2020-09-17 16:22:09 +00:00
|
|
|
- run:
|
|
|
|
name: "prepare .env.toml"
|
2020-10-06 14:40:23 +00:00
|
|
|
command: pushd lotus-soup && mkdir -p $HOME/testground && cp env-ci.toml $HOME/testground/.env.toml && echo 'endpoint="'$endpoint'"' >> $HOME/testground/.env.toml && echo 'token="'$token'"' >> $HOME/testground/.env.toml && echo 'user="filecoin-project/oni -> '$CIRCLE_BRANCH';https://github.com/filecoin-project/oni/commit/'$CIRCLE_SHA1'"' >> $HOME/testground/.env.toml
|
2020-09-23 11:46:45 +00:00
|
|
|
- run:
|
|
|
|
name: "prepare testground home dir"
|
2020-10-07 23:08:30 +00:00
|
|
|
command: mkdir -p $HOME/testground/plans && mv lotus-soup $HOME/testground/plans/ && mv graphsync $HOME/testground/plans/
|
2020-09-17 16:22:09 +00:00
|
|
|
- run:
|
|
|
|
name: "trigger baseline test plan on testground ci"
|
2020-09-23 11:46:45 +00:00
|
|
|
command: ~/testground-cli run composition -f $HOME/testground/plans/lotus-soup/_compositions/baseline-k8s-3-1.toml
|
|
|
|
- run:
|
|
|
|
name: "trigger payment channel stress test plan on testground ci"
|
|
|
|
command: ~/testground-cli run composition -f $HOME/testground/plans/lotus-soup/_compositions/paych-stress-k8s.toml
|
|
|
|
- run:
|
|
|
|
name: "trigger deals stress concurrent test plan on testground ci"
|
|
|
|
command: ~/testground-cli run composition -f $HOME/testground/plans/lotus-soup/_compositions/deals-stress-concurrent-natural-k8s.toml
|
2020-10-07 23:08:30 +00:00
|
|
|
- run:
|
|
|
|
name: "trigger graphsync stress test plan on testground ci"
|
|
|
|
command: ~/testground-cli run composition -f $HOME/testground/plans/graphsync/_compositions/stress-k8s.toml
|