Skip to content

Commit

Permalink
Merge pull request #78 from hwagit/test-travis-again
Browse files Browse the repository at this point in the history
Update readme and add travis yaml file again
  • Loading branch information
hakonanes committed Sep 21, 2019
2 parents 2accbf7 + 94deee4 commit a2bbefa
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 47 deletions.
2 changes: 0 additions & 2 deletions .codecov.yml

This file was deleted.

1 change: 0 additions & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ source = kikuchipy
omit =
kikuchipy/setup.py
kikuchipy/version.py
kikuchipy/tests/*
43 changes: 0 additions & 43 deletions .github/workflows/build.yml

This file was deleted.

38 changes: 38 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
language: python

env:
global:
- DEPS="hyperspy pyxem"
- TEST_DEPS="pytest pytest-cov coveralls"

matrix:
include:
- env: export PYTHON=3.7

sudo: True # for Miniconda

before_install:
# Install Miniconda
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
- chmod +x miniconda.sh;
./miniconda.sh -b -p $HOME/miniconda;
hash -r
# Setup environment
- source $HOME/miniconda/bin/activate root;
conda update --yes conda;
conda config --append channels conda-forge;
conda create --name testenv --yes python=$PYTHON;
conda activate testenv
- conda info -a
- df -h

install:
- conda install --yes $DEPS $TEST_DEPS
- pip install .

script:
- export MPLBACKEND=Agg
- pytest --cov=kikuchipy

after_success:
- coveralls
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![build status](https://github.com/kikuchipy/kikuchipy/workflows/Build/badge.svg)](https://github.com/kikuchipy/kikuchipy/actions) [![codecov](https://codecov.io/gh/kikuchipy/kikuchipy/branch/master/graph/badge.svg)](https://codecov.io/gh/kikuchipy/kikuchipy)
[![Build Status](https://api.travis-ci.org/kikuchipy/kikuchipy.svg?branch=master)](https://travis-ci.org/kikuchipy/kikuchipy) [![Coverage Status](https://coveralls.io/repos/github/kikuchipy/kikuchipy/badge.svg?branch=master)](https://coveralls.io/github/kikuchipy/kikuchipy?branch=master)

KikuchiPy
------------
Expand Down

0 comments on commit a2bbefa

Please sign in to comment.