"리눅스 shyaml 설치"의 두 판 사이의 차이

80번째 줄: 80번째 줄:
[[분류: pip 설치]]
[[분류: pip 설치]]
[[분류: /usr/local/bin]]
[[분류: /usr/local/bin]]
[[분류: YAML]]

2016년 1월 28일 (목) 19:04 판

리눅스 shyaml 설치
/usr/local/bin/shyaml

1 확인

root@zetawiki:~# shyaml
shyaml: command not found

2 사전 작업

3 설치

root@zetawiki:~# pip install shyaml
... (생략)
Successfully installed pyyaml
Cleaning up...

4 확인 2

root@zetawiki:~# shyaml
Error: Bad number of arguments.
Usage:

    shyaml (-h|--help)
    shyaml ACTION KEY [DEFAULT]

5 테스트

root@zetawiki:~# wget https://hg.mozilla.org/projects/alder/raw-file/f186f43db1fd/testing/taskcluster/tasks/buildbot_bridge_build/linux32_firefox_debug.yml
... (생략)
Length: 378 [text/plain]
Saving to: ‘linux32_firefox_debug.yml’

100%[=============================>] 378         --.-K/s   in 0s      

2015-12-23 14:45:03 (76.4 MB/s) - ‘linux32_firefox_debug.yml’ saved [378/378]
root@zetawiki:~# cat linux32_firefox_debug.yml 
$inherits:
  from: 'tasks/buildbot_bridge_build.yml'
  variables:
    build_name: 'linux32_firefox'
    build_type: 'debug'

task:
  metadata:
    name: 'Linux Debug Build'
    description: 'Linux Debug Build'

  payload:
    buildername: 'Linux {{project}} leak test build'

  extra:
    treeherder:
      machine:
        platform: linux
      collection:
        debug: true
root@zetawiki:~# cat linux32_firefox_debug.yml | shyaml get-value task.metadata
description: Linux Debug Build
name: Linux Debug Build
root@zetawiki:~# cat linux32_firefox_debug.yml | shyaml get-value task.metadata.name
Linux Debug Build

6 같이 보기