Is it allowed for the donor to make the condition that the donee has to fulfill a specific obligation while still intending to give a gift? 
Yes, it is permissible for the donor to make it a condition that the donee should perform a specified obligation, and this obligation will then be considered as consideration for the gift.