Are you trying to do a definite integral or an indefinite integral?
If you're doing a definite integral, just graph the function and find the area bounded by the x-axis. Otherwise, restate the function as a piecewise and go from there.
Remember that f(x) = |x| = x, if x > 0, or -x, if x < 0.