Skip to content

Commit

Permalink
Merge pull request #75 from EducationalTestingService/migrate-to-gitl…
Browse files Browse the repository at this point in the history
…ab-ci

Migrate CI builds from Travis to Gitlab
  • Loading branch information
jbiggsets authored Mar 20, 2021
2 parents ece9707 + a2b831f commit 38827d5
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 33 deletions.
35 changes: 35 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
image: continuumio/miniconda3:latest

stages:
- test

variables:
PYVERSION: "3.8"
NOSE_WITH_COV: "1"
NOSE_COVER_PACKAGE: "factor_analyzer"
LOGCAPTURE_LEVEL: "DEBUG"
CODECOV_TOKEN: "034f0bb1-e590-406f-820c-4e7c41b17712"

# set up the basic job
.runtests:
before_script:
- "conda create --prefix /root/factordev --channel conda-forge --file requirements.txt python=${PYVERSION} codecov nose nose-cov --yes --quiet"
- /root/factordev/bin/pip install -e .
script:
- "/root/factordev/bin/nosetests ${TESTFILES}"
after_script:
- /root/factordev/bin/codecov

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

# second set of test files
testset2:
extends: ".runtests"
variables:
TESTFILES: "tests/test_expected_factor_analyzer.py tests/test_expected_rotator.py tests/test_utils.py"
stage: "test"
31 changes: 0 additions & 31 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FactorAnalyzer
--------------

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

.. image:: https://codecov.io/gh/EducationalTestingService/factor_analyzer/branch/main/graph/badge.svg
:target: https://codecov.io/gh/EducationalTestingService/factor_analyzer
Expand Down

0 comments on commit 38827d5

Please sign in to comment.