Use CircleCI version 2.1 at the top of your .circleci/config.yml file.
1
version: 2.1
Add the orbs
stanza below your version, invoking the orb:
1
2
orbs:
emojicode: yutagoto/emojicode@1.0.0
Use emojicode
elements in your existing workflows and jobs.
Opt-in to use of uncertified orbs on your organization’s Security settings page.
run emojicode install example
1
2
3
4
5
6
7
8
version: '2.1'
orbs:
emojicode-orb: yutagoto/emojicode@volatile
workflows:
install-emojicode:
jobs:
- emojicode-orb/install:
version: 1.0-beta.2
This command is installing gcc and emojicode
PARAMETER | DESCRIPTION | REQUIRED | DEFAULT | TYPE |
---|---|---|---|---|
version | choose emojicode version | No | 1.0-beta.2 | string |
This is a sample executor using Docker and Node.
PARAMETER | DESCRIPTION | REQUIRED | DEFAULT | TYPE |
---|---|---|---|---|
tag | choose gcc version https://hub.docker.com/_/gcc
| No | latest | string |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# This code is licensed from CircleCI to the user under the MIT license.
# See here for details: https://circleci.com/developer/orbs/licensing
version: 2.1
description: |
Easily install emojicode. Emojicode is https://www.emojicode.org/
display:
home_url: https://github.com/YutaGoto/emojicode-orb
source_url: https://github.com/YutaGoto/emojicode-orb
commands:
install:
description: |
This command is installing gcc and emojicode
parameters:
version:
default: 1.0-beta.2
description: choose emojicode version
type: string
steps:
- run:
command: sudo apt update && sudo apt install -y rsync libncurses5
name: install some module
- run:
command: |
wget https://github.com/emojicode/emojicode/releases/download/v<<parameters.version>>/Emojicode-<<parameters.version>>-Linux-x86_64.tar.gz -O emojicode.tar.gz \
&& tar -xzf emojicode.tar.gz && rm emojicode.tar.gz \
&& cd Emojicode-<<parameters.version>>-Linux-x86_64 && yes | ./install.sh || true \
&& cd ..
name: install emojicode
executors:
default:
description: |
This is a sample executor using Docker and Node.
docker:
- image: gcc:<<parameters.tag>>
parameters:
tag:
default: latest
description: |
choose gcc version https://hub.docker.com/_/gcc
type: string
examples:
example:
description: |
run emojicode install example
usage:
version: "2.1"
orbs:
emojicode-orb: yutagoto/emojicode@volatile
workflows:
install-emojicode:
jobs:
- emojicode-orb/install:
version: 1.0-beta.2