Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
image: continuumio/miniconda3:latest

stages:
- test

variables:
PYVERSION: "3.7"
BINPATH: "/root/rsmenv/bin"
CODECOV_TOKEN: "488304b7-b1c5-4fc7-bfb6-9e7cbcb36a08"

# set up basic job
.runtests:
before_script:
- "conda create --prefix /root/rsmenv -c conda-forge -c defaults -c ets --file requirements.txt python=${PYVERSION} codecov --yes --quiet"
- /root/rsmenv/bin/pip install nose-cov
- /root/rsmenv/bin/pip install -e .
- echo "import os" > sitecustomize.py
- echo "try:" >> sitecustomize.py
- echo " import coverage" >> sitecustomize.py
- echo " os.environ['COVERAGE_PROCESS_START'] = '.coveragerc'" >> sitecustomize.py
- echo " coverage.process_startup()" >> sitecustomize.py
- echo "except ImportError:" >> sitecustomize.py
- echo " pass" >> sitecustomize.py
script:
- "/root/rsmenv/bin/nosetests --nologcapture --with-coverage --cover-package=rsmtool --cov-config .coveragerc ${TESTFILES}"
after_script:
- /root/rsmenv/bin/codecov

# first set of test files
testset1:
extends: ".runtests"
variables:
TESTFILES: "tests/test_experiment_rsmtool_1.py"
stage: "test"

# second set of test files
testset2:
extends: ".runtests"
variables:
TESTFILES: "tests/test_comparer.py tests/test_configuration_parser.py tests/test_experiment_rsmtool_2.py"
stage: "test"

# third set of test files
testset3:
extends: ".runtests"
variables:
TESTFILES: "tests/test_analyzer.py tests/test_experiment_rsmeval.py tests/test_fairness_utils.py tests/test_utils_prmse.py tests/test_container.py tests/test_test_utils.py tests/test_cli.py"
stage: "test"

# fourth set of test files
testset4:
extends: ".runtests"
variables:
TESTFILES: "tests/test_experiment_rsmcompare.py tests/test_experiment_rsmsummarize.py tests/test_modeler.py tests/test_preprocessor.py tests/test_writer.py tests/test_experiment_rsmtool_3.py"
stage: "test"

# fifth set of test files
testset5:
extends: ".runtests"
variables:
TESTFILES: "tests/test_experiment_rsmpredict.py tests/test_reader.py tests/test_reporter.py tests/test_transformer.py tests/test_utils.py tests/test_experiment_rsmtool_4.py"
stage: "test"
43 changes: 0 additions & 43 deletions .travis.yml

This file was deleted.

8 changes: 4 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Rater Scoring Modeling Tool
---------------------------

.. image:: https://img.shields.io/travis/EducationalTestingService/rsmtool/main.svg
:target: https://travis-ci.org/EducationalTestingService/rsmtool
:alt: Build status
.. image:: https://gitlab.com/EducationalTestingService/rsmtool/badges/main/pipeline.svg
:target: https://gitlab.com/EducationalTestingService/rsmtool/-/pipelines
:alt: Gitlab CI status

.. image:: https://dev.azure.com/EducationalTestingService/RSMTool/_apis/build/status/EducationalTestingService.rsmtool
:target: https://dev.azure.com/EducationalTestingService/RSMTool/_build?view=runs
:alt: Build status
:alt: Azure Pipeline status

.. image:: https://img.shields.io/coveralls/EducationalTestingService/rsmtool/main.svg
:target: https://coveralls.io/r/EducationalTestingService/rsmtool
Expand Down