๐ŸŒˆTravis CI : travis.yml ํŒŒ์ผ ์ž‘์„ฑ ๋ฐ ์ปค๋ฐ‹ ํ•ด๋ณด๊ธฐ

๊น€์„ฑ์ธยท2023๋…„ 9์›” 18์ผ
0

[DevOps] ๐ŸณDocker & Kubernetes

๋ชฉ๋ก ๋ณด๊ธฐ
2/62

๊ฐœ๋…:
https://livelyoneweek.tistory.com/14


1. Travis CI ๊ฐ€์ž…

Travis CI ์— ๊นƒํ—ˆ๋ธŒ ๊ณ„์ •์œผ๋กœ ๊ฐ€์ž…ํ•˜์˜€๋‹ค.


2. .travis.yml ํŒŒ์ผ ์ž‘์„ฑ

language: java
jdk:
  - openjdk11

branches:
  only:
    - master

cache:
  directories:
    - '$HOME/ .m2/repository'
    - '$HOME/ .gradle'


script: "./gradlew clean build"

notifications:
  email:
    recipients:

ํŠธ๋ ˆ๋น„์Šค CIํ™˜๊ฒฝ์—์„œ ์ˆ˜ํ–‰๋  ์ž‘์—…๋“ค์„ ๋ช…์‹œํ•˜๋Š” travis.yml์„ ์ž‘์„ฑํ•˜์˜€์Œ..
์•„์ง ๋ญ”์ง„ ๋ชจ๋ฅด๊ฒ ์ง€๋งŒ, ๋ธ”๋กœ๊ทธ๋ฅผ ํ†ตํ•ด์„œ ๋”ฐ๋ผํ•ด๋ณด์•˜๋‹ค.
https://yeonyeon.tistory.com/72?category=920206


3. Commit

๊ทธ๋Œ€๋กœ ์ปค๋ฐ‹ ์ง„ํ–‰ํ•˜๊ณ , GitHub์™€ Travis CI๋ฅผ ํ™•์ธํ•ด๋ณด์•˜๋‹ค.

๋ฌด์–ธ๊ฐ€ ์—๋Ÿฌ๊ฐ€ ๋‚œ ๋ชจ์Šต๋“ค..
์ฐธ๊ณ  ๋ธ”๋กœ๊ทธ๋„ ๊ทธ๋ ‡๊ณ , gradlw Permission denied๊ฐ€ ์›์ธ์ด์˜€๋‹ค. gradlew์— ์‹คํ–‰๊ถŒํ•œ์„ ์ถ”๊ฐ€ํ•˜๋Š” ๋ช…๋ น์„ ์ถ”๊ฐ€

language: java
jdk:
  - openjdk11

branches:
  only:
    - master

cache:
  directories:
    - '$HOME/ .m2/repository'
    - '$HOME/ .gradle'

before_install:
  - chmod +x gradlew

script: "./gradlew clean build"

notifications:
  email:
    recipients:
      - 99_insung@naver.com

4. ์ˆ˜์ •ํ•˜๊ณ  ๋‹ค์‹œ ์ปค๋ฐ‹

์ž˜ ๋˜๋Š” ๋ชจ์Šต

profile
๊ฐœ๋ฐœ์ž๊ฐ€ ๊ฟˆ์ธ 25์‚ด ๋Œ€ํ•™์ƒ์ž…๋‹ˆ๋‹ค.

0๊ฐœ์˜ ๋Œ“๊ธ€