Showing posts with label git. Show all posts

[GIT] Specify git author and email

go to your project path

git config user.name "YOUR_NAME_ON_PROJECT"
git config user.email "YOUR_EMAIL_ON_PROJECT"

Done.

GIT FTP Ubuntu 14.04

Install git-ftp

sudo apt-get install git-ftp

Config FTP

git config git-ftp.user FTP_USER
git config git-ftp.url ftp.example.com/your/folder
git config git-ftp.password YOUR_PASSWORD

Init git-ftp

git ftp init

When Change file data, use this command to update.

git ftp push

วิธีการเชื่อมต่อ Github กับ Scrutinizer-CI

ต่อจากบทความ วิธีการเชื่อมต่อ Github กับ Travis-CI บทความนี้ก็จะมาเล่าเกี่ยวกับวิธีการเชื่อมต่อ Github กับ Scrutinizer-CI เพื่อที่ Build & Test และจะได้มี  Badge สำหรับ Code Coverage กับ  Code Quality สวยๆมาแปะครับ

1. เข้าไปที่ Website https://scrutinizer-ci.com แล้วทำการ Login ด้วย Github

2. เมื่อ Login เรียบร้อยแล้วให้สร้าง Repository https://scrutinizer-ci.com/g/new

3. ใส่ URL Github Project ของเราที่ต้องการใช้งาน (ในที่นี่ใช้ Project นี้ https://github.com/kittinan/php-http) ดังภาพ



4. สร้างไฟล์สำหรับ Build Configuration เจ้า Scrutinizer-CI โดยใช้ชื่อว่า .scrutinizer.yml ที่ root path ของ Project และใส่ code ดังนี้ https://gist.github.com/kittinan/6baf4dd0961e18dc7812


สามารถดูรายละเอียดเพิ่มเติมสำหรับ Build Configuration ได้ที่ https://scrutinizer-ci.com/docs/configuration/build

5. แก้ไขไฟล์ .travis.yml เพื่อให้ Travis-CI อัพโหลด Code Coverage ไปที่  Scrutinizer-CI ดังนี้
https://gist.github.com/kittinan/124d539cd6fbf7c5e8d5



5. Push file .scrutinizer.yml และ .travis.yml  ขึ้น Github

6. สั่ง Run your first inspection ที่ Scrutinizer-CI แล้วรอสักพักใหญ่


7. เมื่อ  Scrutinizer-CI ประมวลผลเสร็จเรียบร้อยก็จะพบกับ Code Quality และ Code Coverage  ดังภาพ



8. เราก็สามารถนำ Badge Code Quality และ Code Coverage เท่ๆมาแปะที่  Github Project ของเราได้แล้วครับ https://github.com/kittinan/php-http