Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/nilearn/nilearn into is/p…
Browse files Browse the repository at this point in the history
…lot_connectome_strength

* 'master' of https://github.com/nilearn/nilearn: (272 commits)
  [MRG] FIX: orientation problem with plot_glass_brain (nilearn#1888)
  Import HTMLDocument in its original module to preserve backwards compatibility (nilearn#2162)
  Fixing malfunctioning allowed-failure section in Travis (nilearn#2160)
  Update Brainomics fetcher (nilearn#2097)
  Remove inplace modification in signal.clean (nilearn#2125)
  Iter age group prediction example (nilearn#2063)
  Expose bg_img, vmin and vmax in plot_img signature (nilearn#2157)
  Replac conda with pip in TravisCI setup (nilearn#2141)
  Core devs doc and add @emdupre (nilearn#2151)
  Add check for vmin, vmax in plot_surf_roi (nilearn#2052)
  [ENH] Initial visual reports (nilearn#2019)
  Renamed test to deduplicate name (nilearn#2144)
  Fixes nilearn#2029 Handle gzip files without extensions (nilearn#2126)
  Update Schaefer parcelation to v0.14.3 (nilearn#2138)
  MAINT: Future-compatible cmap reversal (nilearn#2131)
  fix openmp crash (nilearn#2140)
  change nose to pytest on appveyor (nilearn#2130)
  adding fix to whatsnew
  fix wrong urls in nki dataset
  Made Flake8 happy
  ...

# Conflicts:
#	examples/03_connectivity/plot_sphere_based_connectome.py
  • Loading branch information
kchawla-pi committed Oct 9, 2019
2 parents 836c4d9 + 6c24005 commit ee46da0
Show file tree
Hide file tree
Showing 169 changed files with 6,707 additions and 1,894 deletions.
2 changes: 1 addition & 1 deletion .circleci/auto-cache-timestamp
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Sat Apr 13 02:15:46 CEST 2019
2019-04-19 15:05:58.522213
96 changes: 34 additions & 62 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
NUMPY_VERSION: "*"
SCIPY_VERSION: "*"
SCIKIT_LEARN_VERSION: "*"
JOBLIB_VERSION: "*"
MATPLOTLIB_VERSION: "*"

steps:
Expand All @@ -29,24 +30,15 @@ jobs:
- run: sudo -E apt-get -yq update
- run: sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install dvipng texlive-latex-base texlive-latex-extra
- run:
name: Today & Week # Fixing the date and week of the year in files to generate & preserve cache key.
name: Today & Week # Saving today's date and current week of the year in files to generate daily & weekly new cache key respectively.
command: |
echo 2019-04-12 > today
echo 14 > week_num
date +%F > today
date +%U > week_num
- restore_cache:
key: v1-packages+datasets-{{ checksum "week_num" }}
- restore_cache:
key: v1-docs-{{ .Branch }}-{{ checksum "today" }}-{{ checksum ".circleci/manual-cache-timestamp" }}
- run:
name: If branch cache has cached docs, don't restore docs from master cache
command: |
if
ls doc/_build/html
then
date > .circleci/auto-cache-timestamp
fi
- restore_cache:
key: master-docs-{{ checksum ".circleci/auto-cache-timestamp" }}

- run:
name: Download & install conda if absent
command: |
Expand Down Expand Up @@ -76,15 +68,20 @@ jobs:
name: Install packages in conda env
command: |
conda install -n testenv python=3.6 numpy scipy scikit-learn matplotlib pandas \
lxml mkl sphinx=1.8 numpydoc pillow pandas -yq
conda install -n testenv nibabel sphinx-gallery -c conda-forge -yq
lxml mkl sphinx numpydoc pillow pandas -yq
conda install -n testenv nibabel sphinx-gallery junit-xml -c conda-forge -yq
- run:
name: Running CircleCI test (make html)
command: |
source activate testenv
pip install -e .
set -o pipefail && cd doc && make html-strict SPHINXOPTS="-v" 2>&1 | tee log.txt
set -o pipefail && cd doc && make html-strict 2>&1 | tee log.txt
no_output_timeout: 7h
- store_test_results:
path: doc/_build/test-results
- store_artifacts:
path: doc/_build/test-results

- save_cache:
key: v1-packages+datasets-{{ checksum "week_num" }}
paths:
Expand All @@ -101,8 +98,6 @@ jobs:
path: coverage
- store_artifacts:
path: doc/log.txt
- store_artifacts:
path: .circleci


full-build:
Expand All @@ -127,67 +122,33 @@ jobs:
# Installing required packages for `make -C doc check command` to work.
- run: sudo -E apt-get -yq update
- run: sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install dvipng texlive-latex-base texlive-latex-extra
- run:
name: Today & Week # Fixing the date and week of the year in files to generate & preserve cache key.
command: |
echo 2019-04-12 > today
echo 14 > week_num
- restore_cache:
key: v1-packages+datasets-{{ checksum "week_num" }}
- run:
name: Download & install conda if absent
command: |
if
ls $HOME/miniconda3/bin | grep conda -q
then
echo "(Mini)Conda already present from the cache."
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh
chmod +x ~/miniconda.sh && ~/miniconda.sh -b
fi
- run: wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh
- run: chmod +x ~/miniconda.sh && ~/miniconda.sh -b
- run: echo 'export PATH="$HOME/miniconda3/bin:$PATH"' >> $BASH_ENV
- run:
name: Create new conda env
command: |
if
conda env list | grep testenv
then
echo "Conda env testenv already exists courtesy of the cache."
else
conda create -n testenv -yq
fi
- run:
name: Install packages in conda env
command: |
conda install -n testenv python=3.6 numpy scipy scikit-learn matplotlib pandas \
lxml mkl sphinx=1.8 numpydoc pillow pandas -yq
conda install -n testenv nibabel sphinx-gallery -c conda-forge -yq
conda create -n testenv python=3.6 numpy scipy scikit-learn matplotlib pandas \
lxml mkl sphinx numpydoc pillow pandas -yq
conda install -n testenv nibabel sphinx-gallery junit-xml -c conda-forge -yq
- run:
name: Running CircleCI test (make html)
command: |
source activate testenv
pip install -e .
set -o pipefail && cd doc && make html-strict SPHINXOPTS="-v" 2>&1 | tee log.txt
set -o pipefail && cd doc && make html-strict 2>&1 | tee log.txt
no_output_timeout: 7h

- save_cache:
key: v1-packages+datasets-{{ checksum "week_num" }}
paths:
- ../nilearn_data
- ../miniconda3
- save_cache:
key: master-docs-{{ checksum ".circleci/auto-cache-timestamp" }}
paths:
- doc
- store_test_results:
path: doc/_build/test-results
- store_artifacts:
path: doc/_build/test-results

- store_artifacts:
path: doc/_build/html
- store_artifacts:
path: coverage
- store_artifacts:
path: doc/log.txt
- store_artifacts:
path: .circleci


workflows:
Expand All @@ -207,3 +168,14 @@ workflows:
only:
- master
- test-circleci # test branch to check if merges occur on master as expected.

nightly:
triggers:
- schedule:
cron: "0 6 * * *"
filters:
branches:
only:
- master
jobs:
- full-build
171 changes: 0 additions & 171 deletions .circleci/config.yml-presprint

This file was deleted.

2 changes: 1 addition & 1 deletion .circleci/manual-cache-timestamp
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2019-04-13 20:12:23.519962
2019-04-19 15:05:58.522064
5 changes: 5 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[run]
branch = True
parallel = True
omit =
*/nilearn/externals/*
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ build
*#

nilearn.egg-info/
env/
dist/
doc/.nojekyll
doc/building_blocks/generated/
Expand All @@ -34,4 +35,4 @@ tags

.idea/

doc/themes/nilearn/static/jquery.js
doc/themes/nilearn/static/jquery.js

0 comments on commit ee46da0

Please sign in to comment.