import me.hugmanrique.pokedata.loaders.ROMData;
import me.hugmanrique.pokedata.roms.Game;
import me.hugmanrique.pokedata.roms.ROM;
import me.hugmanrique.pokedata.roms.ROMLoader;
import me.hugmanrique.pokedata.roms.ReadableROM;

import java.io.File;
import java.io.IOException;
import java.security.CodeSource;
import java.security.ProtectionDomain;

public class ROMTest {
    public static final File JAR_FOLDER = getJarFolder();
    private static boolean CI = Boolean.parseBoolean(System.getProperty("CI"));

    protected ReadableROM load() {
        System.out.println(System.getProperty("CI"));
        System.out.println(System.getProperty("TRAVIS"));

        if (CI) {
            System.out.println("Running on a CI, skipping...");
            return null;
        }

        File location = new File(JAR_FOLDER.getParentFile().getParentFile(), "tests.gba");

        ReadableROM rom = new ReadableROM();

        try {
            ROMLoader.load(rom, location);
        } catch (IOException e) {
            throw new Error("Expected tests.gba ROM file to load and parse correctly", e);
        }


        return rom;
    }

    protected void checkFireRed(ROM rom) {
        if (rom.getGame() != Game.FIRE_RED) {
            throw new Error("Cannot perform this test because ROM isn't a FireRed game");
        }
    }

    protected ROMData loadData(ROM rom) {
        try {
            return new ROMData(rom);
        } catch (IOException e) {
            throw new Error("Can't load data for current ROM", e);
        }
    }

    private static File getJarFolder() {
        ProtectionDomain domain = ROMTest.class.getProtectionDomain();
        CodeSource source = domain.getCodeSource();

        return new File(source.getLocation().getPath());
    }

}

import me.hugmanrique.pokedata.loaders.ROMData;
import me.hugmanrique.pokedata.roms.Game;
import me.hugmanrique.pokedata.roms.ROM;
import me.hugmanrique.pokedata.roms.ROMLoader;
import me.hugmanrique.pokedata.roms.ReadableROM;

import java.io.File;
import java.io.IOException;
import java.security.CodeSource;
import java.security.ProtectionDomain;

public class ROMTest {
    public static final File JAR_FOLDER = getJarFolder();
    private static boolean CI = Boolean.parseBoolean(System.getProperty("CI"));

    protected ReadableROM load() {
        System.out.println(System.getenv("TRAVIS"));
        System.out.println(System.getenv("CI"));

        if (CI) {
            System.out.println("Running on a CI, skipping...");
            return null;
        }

        File location = new File(JAR_FOLDER.getParentFile().getParentFile(), "tests.gba");

        ReadableROM rom = new ReadableROM();

        try {
            ROMLoader.load(rom, location);
        } catch (IOException e) {
            throw new Error("Expected tests.gba ROM file to load and parse correctly", e);
        }


        return rom;
    }

    protected void checkFireRed(ROM rom) {
        if (rom.getGame() != Game.FIRE_RED) {
            throw new Error("Cannot perform this test because ROM isn't a FireRed game");
        }
    }

    protected ROMData loadData(ROM rom) {
        try {
            return new ROMData(rom);
        } catch (IOException e) {
            throw new Error("Can't load data for current ROM", e);
        }
    }

    private static File getJarFolder() {
        ProtectionDomain domain = ROMTest.class.getProtectionDomain();
        CodeSource source = domain.getCodeSource();

        return new File(source.getLocation().getPath());
    }

}

Change to getenv