Permalink
Browse files

Setup TravisCI; resolves #30. (#56)

- Update TravisCI
- Setup CodeCov config
- Update README
  • Loading branch information...
ruebot authored and ianmilligan1 committed Sep 5, 2018
1 parent 3a99b92 commit 33ba8793547989e1e2b8bd8c67d70aae9e701d9a
Showing with 39 additions and 9 deletions.
  1. +11 −0 .codecov.yml
  2. +20 −5 .travis.yml
  3. +8 −4 README.md
View
@@ -0,0 +1,11 @@
codecov:
# Default branch for CodeCov information
branch: master
coverage:
status:
project:
default:
# Only against master
branches:
- master
View
@@ -1,5 +1,20 @@
sudo: false
language: ruby
rvm:
- 2.4.1
before_install: gem install bundler -v 1.16.1
language: c
compiler: gcc
before_install:
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get update -qq
install:
- sudo apt-get install -qq gcc-7 g++-7
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 60 --slave /usr/bin/g++ g++ /usr/bin/g++-7
- sudo update-alternatives --config gcc
- cd /tmp && wget http://igraph.org/nightly/get/c/igraph-0.7.1.tar.gz && tar -xvzf igraph-0.7.1.tar.gz && cd igraph-0.7.1 && ./configure && make && sudo make install && sudo ldconfig
script:
- cd $TRAVIS_BUILD_DIR
- make
- ./graphpass
after_success:
- bash <(curl -s https://codecov.io/bash)
View
@@ -1,4 +1,8 @@
# GraphPass
[![Build Status](https://travis-ci.org/archivesunleashed/graphpass.svg?branch=master)](https://travis-ci.org/archivesunleashed/graphpass)
[![codecov](https://codecov.io/gh/archivesunleashed/graphpass/branch/master/graph/badge.svg)](https://codecov.io/gh/archivesunleashed/graphpass)
[![Contribution Guidelines](http://img.shields.io/badge/CONTRIBUTING-Guidelines-blue.svg)](./CONTRIBUTING.md)
[![LICENSE](https://img.shields.io/badge/license-Apache-blue.svg?style=flat-square)](./LICENSE)
![GraphPass in action](https://user-images.githubusercontent.com/3834704/35356808-87152cf0-011f-11e8-9264-9c411ca16b3e.png)
@@ -16,7 +20,7 @@ a C compiler, such as [gcc](https://gcc.gnu.org/).
Install the igraph dependencies:
```
```
sudo apt-get install git gcc libxml2-dev build-essential
wget http://igraph.org/nightly/get/c/igraph-0.7.1.tar.gz
tar -xvzf igraph-0.7.1.tar.gz
@@ -36,7 +40,7 @@ gcc -ligraph
If you get `undefined reference to 'main'` that means Linux is looking for
graphpass and you are ready to go.
If you get `cannot find -ligraph` then something went wrong with the install.
If you get `cannot find -ligraph` then something went wrong with the install.
Check through the logs to see what failed to install.
@@ -100,7 +104,7 @@ a default network in `src/resources`.
* `--dir {DIRECTORY}` - the path to look for {FILENAME} by default this is `src/resources/`
* `--output {OUTPUT}` - the directory to send output files such as filtered graphs and data reports.
* `--percent {PERCENT}` - a percentage to remove from the file. By default this is 0.0.
* `--method {options}` - a string of various methods through which to filter the
* `--method {options}` - a string of various methods through which to filter the
graph.
These various methods are outlined below:
@@ -127,7 +131,7 @@ Will remove 10% of the graph using betweenness as a cutting measure and lay the
* `--report` or `-r` : create an output report showing the impact of filtering on graph features.
* `--no-save` or `-n` : does not save any filtered files (useful if you just want a report).
* `--quick` or `-q` : provides a "quickrun" for basic
* `--quick` or `-q` : provides a "quickrun" for basic
* `--gexf` or `-g` : output as a .gexf (e.g. for SigmaJS inputs) instead of .graphml.
# Troubleshooting

0 comments on commit 33ba879

Please sign in to comment.