DEV Community

Yuta Goto
Yuta Goto

Posted on

emojicodeのCircleCI Orbを作った

この記事は、雑談Slack Advent Calendar 2020 の6日目の記事です。
遅れての投稿です。

https://adventar.org/calendars/5337

先週はemojicodeをCircleCIで実行するやつについて書きました。

毎度毎度インストールコマンドを書くのも大変なのでOrbを作りました。

https://circleci.com/developer/ja/orbs/orb/yutagoto/emojicode

Orb Project Template

A starter template for orb projects. Build, test, and publish orbs automatically on CircleCI with Orb-Tools.

Additional READMEs are available in each directory.

Meta: This repository is open for contributions! Feel free to open a pull request with your changes. Due to the nature of this repository, it is not built on CircleCI. The Resources and How to Contribute sections relate to an orb created with this template, rather than the template itself.

Resources

CircleCI Orb Registry Page - The official registry page of this orb for all versions, executors, commands, and jobs described CircleCI Orb Docs - Docs for using and creating CircleCI Orbs.

How to Contribute

We welcome issues to and pull requests against this repository!

How to Publish

  • Create and push a branch with your new features.
  • When ready to publish a new production version, create a Pull Request from fore feature

基本的な使い方は書くだけで使えるはずです。(もしかしたらGCCも追加させる必要があるかもしれないですが。。)

# .circleci/config.yml
version: 2.1

orbs:
  emojicode: yutagoto/emojicode@1.0.0

executors:
  cpp:
    docker:
      - image: gcc:latest

jobs:
  run_emojicode:
    executor: cpp
    steps:
      - checkout
      - run: apt update && apt install -y sudo || true
      - emojicode/install
      - run:
          name: build emojicode
          command: emojicodec hello.emojic
      - run:
          name: run
          command: ./hello

workflows:
  version: 2
  build:
    jobs:
      - run_emojicode
Enter fullscreen mode Exit fullscreen mode

emojicodeで実装してCircleCIでチェックしたいときにお使いください。


GitHub リポジトリのREADMEなどはあとでちゃんと書きます。

Top comments (0)