Skip to content

Commit e89cabf

Browse files
authored
Merge pull request #47 from EducationalTestingService/some-minor-updates
Move to TravisCI and Codecov
2 parents d039266 + b372fe8 commit e89cabf

File tree

2 files changed

+31
-37
lines changed

2 files changed

+31
-37
lines changed

.circleci/config.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

.travis.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
language: python
2+
python:
3+
- 3.7
4+
env:
5+
- TESTFILES="tests/test_expected_confirmatory_factor_analyzer.py tests/test_factor_analyzer.py"
6+
- TESTFILES="tests/test_expected_factor_analyzer.py tests/test_expected_rotator.py tests/test_utils.py"
7+
8+
# run on the new Travis infrastructure
9+
sudo: false
10+
11+
# Install stuff
12+
before_install:
13+
- wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
14+
- chmod +x miniconda.sh
15+
- ./miniconda.sh -b
16+
- export PATH=/home/travis/miniconda3/bin:$PATH
17+
- conda install -c anaconda --yes setuptools
18+
install:
19+
- conda install --yes -c conda-forge python=${TRAVIS_PYTHON_VERSION} codecov --file requirements.txt
20+
# Have to use pip for nose-cov because its entry points are not supported by conda yet
21+
- pip install nose nose-cov
22+
- python setup.py install
23+
24+
# Run test
25+
script:
26+
- nosetests -v --with-cov --cov factor_analyzer --cov-config .coveragerc --logging-level=DEBUG ${TESTFILES}
27+
28+
# Calculate coverage
29+
after_success:
30+
- codecov
31+

0 commit comments

Comments
 (0)