Skip to content

Commit

Permalink
Change docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianWilhelm committed Oct 3, 2019
1 parent d3b7696 commit e3b2967
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
23 changes: 12 additions & 11 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@
# Default values to be merged into tasks:
auto_cancellation: false
env:
PATH: ${HOME}/.local/bin:${PATH}
# ^ add user paths
PATH: /opt/conda/bin:$PATH
COVERALLS_REPO_TOKEN: zVMEAj6vQZiEmwZOIKtZIcHU3JJOsBsi3
PIP_CACHE: ${HOME}/.cache/pip
CONDA_CACHE: /opt/conda/pkgs
LC_ALL: C.UTF-8
LANG: C.UTF-8
CIRRUS_SHELL: /bin/bash
# CIRRUS_SHELL: /bin/bash


linux_task:
# use custom cloning since otherwise git tags are missing
name: test (Linux - Anaconda)
install_script: &install_script
install_script:
- apt-get install -y git
clone_script: |
if [ -z "$CIRRUS_PR" ]; then
Expand All @@ -25,27 +25,28 @@ linux_task:
git fetch origin pull/$CIRRUS_PR/head:pull/$CIRRUS_PR
git reset --hard $CIRRUS_CHANGE_IN_REPO
fi
container: {image: "continuumio/anaconda3:2019.03"}
container: {image: "continuumio/anaconda3:latest"}
pip_cache:
folder: $PIP_CACHE
conda_cache:
folder: /opt/conda/pkgs
folder: $CONDA_CACHE
info_script:
- printf "Shell - %s\n" "$SHELL"
- conda config --show
# set up conda here
- conda init bash
prepare_script:
- source /root/.bashrc
- source /opt/conda/etc/profile.d/conda.sh
- rm -rf .coverage junit-*.xml
# ^ avoid information carried from one run to the other
- conda env create -f environment.yaml -q # install in root env
- conda activate justcause
- python setup.py develop
- pre-commit install
test_script:
- source /root/.bashrc
- source /opt/conda/etc/profile.d/conda.sh
- conda activate justcause
- conda list
- python -c "import rpy2; print(rpy2.__path__)"
- python -c "import rpy2.robjects"
- echo "R_HOME" $R_HOME
- py.test tests --color yes
- pre-commit run --all-files
coverage_script:
Expand Down
1 change: 1 addition & 0 deletions environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ dependencies:
- scikit-learn
- pip
- seaborn
- r-base
- rpy2
- seaborn
- tensorflow
Expand Down
4 changes: 2 additions & 2 deletions src/justcause/metrics.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""
TODO: What does this do? It looks like calculating some metrics, running everything etc, and writing/saving logs. This needs to be split up
TODO: What does this do? It looks like calculating some metrics, running everything etc, and writing/saving logs.
This needs to be split up
"""
Expand All @@ -14,7 +15,6 @@
sns.set(style="darkgrid")
import matplotlib.pyplot as plt

from . import utils


class EvaluationMetric:
Expand Down

0 comments on commit e3b2967

Please sign in to comment.