Skip to content
Snippets Groups Projects

Add gitlab CI configuration.

1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
+ 2
2
@@ -9,12 +9,13 @@ from allennlp.commands import train
from allennlp.common import Params, util
@unittest.skip("Skipping for CI test.")
class TrainingEndToEndTest(unittest.TestCase):
PROJECT_ROOT = (pathlib.Path(__file__).parent / "..").resolve()
MODULE_ROOT = PROJECT_ROOT / "combo"
TESTS_ROOT = PROJECT_ROOT / "tests"
FIXTURES_ROOT = TESTS_ROOT / "fixtures"
TEST_DIR = pathlib.Path("/tmp/test")
TEST_DIR = pathlib.Path(tempfile.mkdtemp(prefix="allennlp_tests"))
def setUp(self) -> None:
logging.getLogger("allennlp.common.util").disabled = True
@@ -24,7 +25,6 @@ class TrainingEndToEndTest(unittest.TestCase):
def test_training_produces_model(self):
# given
self.TEST_DIR.mkdir(exist_ok=True)
util.import_module_and_submodules("combo.models")
util.import_module_and_submodules("combo.training")
ext_vars = {
Loading