No court shall grant a divorce to any person who has not been a bona fide resident of this state for six months before the filing of the petition for divorce, provided that any person who has been a resident of any United States army post or military reservation within this state for one year next preceding the filing of the petition may bring an action for divorce in any county adjacent to the United States army post or military reservation; and provided, further, that a nonresident of this state may file a petition for divorce, in the county of residence of the respondent, against any person who has been a resident of this state and of the county in which the action is brought for a period of six months prior to the filing of the petition.