Sample Config Files

Sample superblocks.yaml Files

This section provides examples of valid superblocks.yaml files.

The official Superblocks Build Recipes references are available in Superblocks GitHub.
Direct link: https://github.com/SuperblocksHQ/build-recipes.

Truffle

A JavaScript and Truffle project using npm:

version: 1
jobs:
  compile:
    image: node
    script:
      - npm install truffle
      - npm install
      - npx truffle compile
  test:
    image: node
    script:
      - npm install truffle
      - npm install
      - npx truffle test
stages:
  - pipeline:
      jobs:
        - compile
        - test

Embark

Embark project written in JavaScript:

version: 1
jobs:
  build:
    image: node
    script:
      - yarn add --dev ganache-cli embark
      - yarn install
      - npx embark build
  test:
    image: node
    script:
      - yarn add --dev ganache-cli embark
      - yarn install
      - npx embark test
stages:
  - pipeline:
      jobs:
        - build
        - test

Buidler

Buidler project example:

version: 1
jobs:
  compile:
    image: node
    script:
      - npm install @nomiclabs/buidler @nomiclabs/buidler-truffle5 @nomiclabs/buidler-web3 web3
      - npm install
      - npx buidler compile
  test:
    image: node
    script:
      - npm install @nomiclabs/buidler @nomiclabs/buidler-truffle5 @nomiclabs/buidler-web3 web3
      - npm install
      - npx buidler test
stages:
  - pipeline:
      jobs:
        - compile
        - test