Upgrade to Pro — share decks privately, control downloads, hide ads and more …

CircleCI 2.0 x JavaScript

CircleCI 2.0 x JavaScript

『 Meguro.es x Gotanda.js #1 in Drecom 』 で飛び込み LT 予定のプレゼン
https://meguroes.connpass.com/event/49543/

842aaadff6e13fbf372c9b17b49b031c?s=128

Pine Mizune

April 28, 2017
Tweet

Transcript

  1. 1JOF .J[VOF "QS    .FHVSPFT Y (PUBOEBKT 

    $JSDMF$* 
  2. ࣗݾ঺հ q (JU)VC !QJOF q 5XJUUFS!QJOF q ޷͖ͳݴޠ +BWB4DSJQU q

    /FYUCFBU $P-UE JO ޒ൓ా q ֆจࣈδΣωϨʔλʔ "VUIPS
  3. $JSDMF $* ͱ͸ q $* ͷΫϥ΢υαʔϏε q ฒྻ਺ Y Ͱͷར༻͕ແྉ

    044 Ͱͳͯ͘΋Մ q (JU)VC  #JUCVDLFU ͱ࿈ܞ q ࠷ۙ  CFUB ͕ެ։͞Εͨ Ø ઃఆϑΝΠϧͰ੾Γସ͑ Ø    ڞଘՄೳ
  4. $JSDMF $*  ͰมΘͬͨ఺ q ೚ҙͷ %PDLFS ίϯςφ͕ͦͷ··ಈ͘Α͏ʹ q ίϯςφຖͷॳظߏங͕ෆཁ

    Ø Ϗϧυ͕࣌ؒେ෯ʹߴ଎Խ q ؀ڥͷ஧࣮ͳ࠶ݱ͕Մೳʹ Ø ೚ҙͷ %JTUSJCVUJPO  7FSTJPO Λબ୒Մ 'JSTU$MBTT4VQQPSUGPSUIF%PDLFS1MBUGPSN ˞ ࢀߟ IUUQTDJSDMFDJDPNEPDT
  5. $JSDMF $*  Y +BWB4DSJQU machine: node: version: 6.10.0 dependencies:

    cache_directories: - ~/.cache/yarn pre: - yarn –version override: - yarn test: override: - yarn test ઃఆϑΝΠϧ :".- ˞ IUUQRJJUBDPNQJOFJUFNTEEFBDBBCGDCB
  6. $JSDMF $*  Y +BWB4DSJQU ˞ IUUQRJJUBDPNQJOFJUFNTEEFBDBBCGDCB version: 2 jobs:

    build: working_directory: ~/workspace docker: - image: node:6.10.0 steps: - checkout - restore_cache: key: proj-{{ checksum “yarn.lock” }} - run: name: Install dependencies command: yarn - run: name: Test command: yarn test - save_cache: key: proj-{{ checksum “yarn.lock” }} paths: - ~/workspace/node_modules - ~/.cache/yarn/ ઃఆϑΝΠϧ :".-
  7. ೚ҙͷ %PDLFS ΠϝʔδʹରԠ version: 2 jobs: build: working_directory: ~/workspace docker:

    - image: node:6.10.0 steps: - checkout - restore_cache: key: proj-{{ checksum “yarn.lock” }} - run: name: Install dependencies command: yarn - run: name: Test command: yarn test - save_cache: key: proj-{{ checksum “yarn.lock” }} paths: - ~/workspace/node_modules - ~/.cache/yarn/ %PDLFS )VC ౳ͷΠϝʔδΛ௚઀ࢦఆ o $JSDMF$*  ʜ ༻ҙ͞Εͨίϯςφ಺ʹࣗ෼Ͱ؀ڥΛߏங o $JSDMF$*  ʜ Ϗϧυ։͔࢝࣌Β೚ҙͷঢ়ଶ Ø ηοτΞοϓ͕ෆཁ
  8. ѹ౗త଎౓ ґଘແ͠ɺςετۭͷ QBDLBHFKTPO ͷ৔߹ $JSDMF$*  ࣌ؒ ඵ $JSDMF$* 

     TFD TFUVQ  TFD  TFD EFQFOEFODJFT  TFD  TFD UFTU  TFD  TFD ߹ܭ  TFD ˞  ճ ฏۉ஋ $JSDMF$*  ͷ  ഒͷ଎౓ͰηοτΞοϓՄೳ ˞ ܭଌϨϙδτϦ IUUQTHJUIVCDPNQJOFDJSDMFDJUFTU
  9. ѹ౗త଎౓ 8FCQBDL ͷςετΛճͨ͠৔߹ $JSDMF$*  ࣌ؒ ඵ $JSDMF$*  

    TFD TFUVQ  TFD  TFD EFQFOEFODJFT  TFD  TFD UFTU  TFD  TFD ߹ܭ  TFD ˞  ճ ฏۉ஋ ςετࣗମͷ࣮ߦ΋଎͍ ˞ ܭଌϨϙδτϦIUUQTHJUIVCDPNQJOFXFCQBDL
  10. ѹ౗తॊೈੑ  version: 2 jobs: build: working_directory: ~/workspace docker: -

    image: node:6.10.0 steps: - checkout - restore_cache: key: {{ checksum “yarn.lock” }} - run: name: Install dependencies command: yarn - run: name: Test command: yarn test - save_cache: key: proj-{{ checksum “yarn.lock” }} paths: - ~/workspace/node_modules - ~/.cache/yarn/ ೚ҙͷϏϧυεςοϓΛࢦఆՄೳ o $JSDMF$*  ʜ ܾ·ͬͨϏϧυεςοϓʹׂΓࠐΈ o $JSDMF$*  ʜ ׬શʹ೚ҙͷϏϧυεςοϓΛࢦఆՄೳ
  11. ѹ౗తॊೈੑ  ˞ IUUQRJJUBDPNQJOFJUFNTEEFBDBBCGDCB version: 2 jobs: build: working_directory: ~/workspace

    docker: - image: node:6.10.0 steps: - checkout - restore_cache: key: {{ checksum “yarn.lock” }} - run: name: Install dependencies command: yarn - run: name: Test command: yarn test - save_cache: key: proj-{{ checksum “yarn.lock” }} paths: - ~/workspace/node_modules - ~/.cache/yarn/ ೚ҙͷΩʔͰΩϟογϡΛอଘɾ෮ݩՄೳ o $JSDMF$*  ʜ Ұ཯Ͱอଘɾ෮ݩ o $JSDMF$*  ʜ ZBSOMPDL ౳ͷ DIFDLTVN ͰࢦఆՄೳ
  12. ·ͱΊ q ೚ҙͷ %PDLFS ΠϝʔδΛϕʔεʹ࣮ߦՄೳ q ࣮ߦ଎౓͕ѹ౗తʹ޲্ q ϓϩδΣΫτ಺ʹ 

      ڞଘՄೳ q ͥͻɺࢼ͠ʹ࢖ͬͯΈͯԼ͍͞ $JSDMF$*