Skip to content

Commit 6766fc2

Browse files
committed
Activate travis testing and coverage reports.
Execute unit tests on travis. Upload coverage reports to codecov.io.
1 parent d917276 commit 6766fc2

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.travis.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Use container-based travis workers
2+
sudo: false
3+
4+
language: python
5+
6+
python:
7+
- 2.6
8+
- 2.7
9+
# - 3.3
10+
# - 3.4
11+
# - "3.5.0b4"
12+
13+
before_install:
14+
- MYMCREPO=https://repo.continuum.io/miniconda
15+
- MYMCBUNDLE=Miniconda-latest-Linux-x86_64.sh
16+
- mkdir -p ~/pkgs/
17+
- pushd ~/pkgs/
18+
- wget --timestamping ${MYMCREPO}/${MYMCBUNDLE}
19+
- test -x ~/mc/bin/conda || bash ${MYMCBUNDLE} -b -f -p ~/mc
20+
- export PATH="${HOME}/mc/bin:${PATH}"
21+
- conda update conda --yes
22+
- conda remove --name=testenv --yes --offline --all
23+
- conda create --name=testenv --yes
24+
python=$TRAVIS_PYTHON_VERSION pip setuptools numpy coverage
25+
- source activate testenv
26+
- popd
27+
28+
install:
29+
- git fetch origin --tags
30+
- python setup.py install
31+
32+
script:
33+
- coverage run --source diffpy.utils -m diffpy.utils.tests.run
34+
35+
after_success:
36+
- pip install codecov
37+
- codecov

0 commit comments

Comments
 (0)