Skip to content
This repository was archived by the owner on Nov 28, 2019. It is now read-only.
Open
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
13 changes: 13 additions & 0 deletions .ci/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

# configure CI environment

# Failure is a natural part of life
set -e

# Other packages needed for CI tasks
pip install \
coverage \
codecov \
pytest-cov \
requests
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ __pycache__/
# Others
.cache
*.tar.gz

# code coverage
**/.coverage
10 changes: 6 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,18 @@ matrix:
- os: linux
python: 3.6

before_install:
- .ci/setup.sh

# Install cran-server
install:
- pip install .

# Test cran-server
script:
# Install libraries only needed by tests
- pip install requests
# Run tests
- python -m pytest
- python -m pytest --cov
- coverage report -m --fail-under=20

after_success:
- echo "tests passed"
- codecov
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# cran-server

![Build Status](https://travis-ci.org/UptakeOpenSource/cran-server.svg?branch=master)
[![codecov](https://codecov.io/gh/UptakeOpenSource/cran-server/branch/master/graph/badge.svg)](https://codecov.io/gh/UptakeOpenSource/cran-server)

A self hosted CRAN-like R package repository.

Expand Down