Suppose you have a topology on set of integers (say the set of all positive integers) that are neither discrete nor indiscrete. And suppose we also do not assume it to be Hausdorff.
Is it possible to construct the homotopies, and define fundamental group or groupoid on the such topology on integers? I cannot imagine constructing the homotopies of paths given that the open sets and topologies are based on the integers...
I'm not an expert on algebraic topology, but I'll point out that the usual definition of the fundamental group is extremely uninteresting if the space is countable and the topology is at least $T_1$.
Let $X$ be your space - for this discussion it doesn't matter that the underlying set is $\mathbb{Z}$, but it does matter that $X$ is countable. Pick a basepoint $x_0 \in X$. A loop based at $x_0$ is usually defined as a continuous map $f : [0, 1] \to X$ such that $f(0) = f(1) = x_0$. Since $[0, 1]$ is path-connected, and the continuous image of a path-connected space is also path-connected, the image of $f$ must be path-connected. A path-connected $T_1$ space with at least two points must be uncountable, so the image of $f$ must be a single point. Thus the only loop based at $x_0$ is the constant loop, and the fundamental group is trivial.
I don't have an immediate answer for what happens if the topology is not even $T_1$.