Skip to content

Latest commit

 

History

History
61 lines (49 loc) · 1.8 KB

File metadata and controls

61 lines (49 loc) · 1.8 KB
marp true
theme my-theme
paginate true
headingDivider 2
header Travis-CI
footer git/github - https://github.com/jyheo/github-lecture
backgroundColor

Travis-CI

Travis-CI

  • https://travis-ci.org/
  • Sign in with Github
    • Github 계정으로 로그인 가능
    • 처음 로그인 하면, travis에게 권한을 수락하도록 요청하니 허락해야 함.
      • Travis가 github의 repository를 확인할 수 있도록 해주는 것

Travis-CI

  • Github 저장소 활성화

Travis-CI

  • Travis 설정 파일인 .travis.yml 파일을 저장소에 생성
    • 파일 이름이 .으로 시작됨을 조심!
  • Travis는 저장소에 push가 발생하면 .travis.yml에 따라 동작을 시작
  • 언어별 설정에 대해서는
  • $ git push 하여 Travis가 작업을 시작하도록 한다.

.travis.yml

  • C언어용 아주 심플한 .travis.yml
    language: c
    script: gcc -c main.c
    
  • 위에서 사용한 설정 외에 다양한 설정(deploy 등)이 가능함

빌드 완료 후 이메일이 옴.

  • Travis가 .travis.yml에 따라 자동으로 작업을 수행 후 결과를 이메일로 통보함

빌드 완료 후 Travis에서도 결과 확인 가능

Exercise 2