lotus/.circleci/config.yml
Anton Evangelatov 1c9257d537
nightly/hourly job to run testground testplans (#253)
* schedule a job every 5min.

* upgrade FFI again

* download testground with supervisor; run async job

* fixup
2020-09-17 18:22:09 +02:00

64 lines
1.8 KiB
YAML

---
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:
golang:
docker:
- image: circleci/golang:1.14.6
resource_class: 2xlarge
workflows:
version: 2
main:
jobs:
- soup-build-linux
- trigger-baseline-testplan
nightly:
triggers:
- schedule:
cron: "45 * * * *"
filters:
branches:
only:
- master
jobs:
- trigger-baseline-testplan
jobs:
soup-build-linux:
executor: golang
steps:
- setup
- run:
name: "build lotus-soup"
command: pushd lotus-soup && go build -tags=testground .
trigger-baseline-testplan:
executor: golang
steps:
- setup
- run:
name: "download testground"
command: wget https://gist.github.com/nonsense/5fbf3167cac79945f658771aed32fc44/raw/2e7ced2b1d0ca54033be57299e3fefb840958dfb/testground-3ee0dae -O ~/testground-cli && chmod +x ~/testground-cli
- run:
name: "prepare .env.toml"
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
- run:
name: "trigger baseline test plan on testground ci"
command: mkdir -p $HOME/testground/plans && mv lotus-soup $HOME/testground/plans/ && ~/testground-cli run composition -f $HOME/testground/plans/lotus-soup/_compositions/baseline-k8s-3-1.toml