-
Notifications
You must be signed in to change notification settings - Fork 8
Travis (TH)
varokas edited this page Mar 29, 2013
·
1 revision
- ต้อง sign in Travis ด้วย account github
- เพิ่มไฟล์ .travis.yml เข้าไปใน repository (ไว้ใน root project) ดูด้านล่าง
- commit & push ขึ้น github
- setup service hook
- ไปที่ repository
- ไปที่ tab Settings
- เลือก Service Hooks
- กดเลือก Travis จากรายการ แล้ว scroll กลับขึ้นไปด้านบน
- Enable repository ในหน้า https://travis-ci.org/profile
- ใส่ Token โดยเข้าที่ https://travis-ci.org/profile เลือก tab Profile
- เลือก Active
- กด Update settings
Travis.yml:
language: node_js
node_js: # node version support
- 0.8
script: "npm test"
notifications:
email:
recipients:
- email@email.com
on_success: never
on_failure: always # default: always
by @winggyplus