Travis CI
- Travis-CI๋ ๋ฃจ๋น๋ก ์์ฑ๋ ์คํ ์์ค ๊ธฐ๋ฐ์ CI(Continuous Integration)
- ๋ถ์ฐ CI ํธ์คํ ์๋น์ค๋ฅผ ์ ๊ณต
- GitHub ์์ด๋์ ํ๋ก์ ํธ๋ฅผ ์ฐ๊ฒฐํ์ฌ ํ ์คํธ, ๋น๋ ๋ฐ ๋ฐฐํฌ ๊ฐ๋ฅ
Getting Started
1. ํ๋ก์ ํธ Forkํ๊ธฐ
2. Travis-CI ํ์๊ฐ์ ํ๊ธฐ
3. Github Repositories ์์ธ์ค ๊ถํ ํ์ฑํ ์ํค๊ธฐ
4. .travis.yml ํ์ธํ๊ธฐ
{% highlight yml %} language: php php:
-
5.5
-
5.4
-
hhvm script: phpunit Test.php {% endhighlight %}
-
.travis.yml์ ํตํด Travis-CI์๊ฒ ์๋ ค์ค๋๋ค.
-
ํ๋ก์ ํธ๋ PHP๋ก ์์ฑ๋์๊ณ PHP versions 5.5, 5.4, HHVM์ธ phpunit์ ํตํด Test.php๋ฅผ ํ ์คํธ๋ฅผ ์งํํ๋ผ๊ณ ์๋ ค์ค๋๋ค.
5. NewUser.txt์ ์ด๋ฆ ๋ฃ๊ณ Pushํ์ฌ Travis CI ์๋์์ผ๋ณด๊ธฐ
- ์ด๋ฆ ์์ฑํ๊ธฐ
- Git Push ํ๊ธฐ
{% highlight git %} git commit -m โTesting Travis CIโ $ git push {% endhighlight %}
Travis only runs a build on the commits you push after adding the repository to Travis.
- Travis-CI Status ํ์ธํ๊ธฐ
- Travis CI๋ Email๋ก Test ๊ฒฐ๊ณผ๋ฌผ์ ๋ณด๋ธ๋ค.
6. Test.php ์์ ํ๊ณ Pushํ์ฌ Travis CI ์๋์์ผ๋ณด๊ธฐ
- Test.php ์์ ํ๊ธฐ
- Git Push ํ๊ธฐ
{% highlight git %} git commit -m โTesting Travis CI: fixing the buildโ $ git push {% endhighlight %}
- Travis-CI Status ํ์ธํ๊ธฐ