File tree Expand file tree Collapse file tree 4 files changed +19
-24
lines changed Expand file tree Collapse file tree 4 files changed +19
-24
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,5 @@ set -u # Treat unset variables as an error when substituting.
10
10
set -x # Print command traces before executing command.
11
11
12
12
# Send coverage data to codecov.io
13
- curl -so codecov.io https://codecov.io/bash
14
- chmod 755 codecov.io
15
-
16
- find " ${WORKDIR} /tests/" -name ' coverage*.xml' -maxdepth 1 -print0 | \
17
- xargs -0 -I file ./codecov.io -f file -t " ${CODECOV_TOKEN} " -F unittests
18
- find " ${WORKDIR} /tests/" -name ' smoketest*.xml' -maxdepth 1 -print0 | \
19
- xargs -0 -I file ./codecov.io -f file -t " ${CODECOV_TOKEN} " -F smoketests
20
-
13
+ ${HOME} /bin/codecov -f " coverage*.xml" -s " ${WORKDIR} /tests/" -R " ${HOME} /nipype/" -F unittests -v -K
14
+ ${HOME} /bin/codecov -f " smoketest*.xml" -s " ${WORKDIR} /tests/" -R " ${HOME} /nipype/" -F smoketests -v -K
Original file line number Diff line number Diff line change @@ -71,6 +71,16 @@ RUN conda config --add channels conda-forge; sync && \
71
71
RUN sed -i 's/\( backend *: \) .*$/\1 Agg/g' /usr/local/miniconda/lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages/matplotlib/mpl-data/matplotlibrc && \
72
72
python -c "from matplotlib import font_manager"
73
73
74
+ # Install CI scripts
75
+ COPY docker/files/run_* /usr/bin/
76
+ RUN chmod +x /usr/bin/run_*
77
+
78
+ # Replace imglob with a Python3 compatible version
79
+ COPY nipype/external/fsl_imglob.py /usr/bin/fsl_imglob.py
80
+ RUN rm -rf ${FSLDIR}/bin/imglob && \
81
+ chmod +x /usr/bin/fsl_imglob.py && \
82
+ ln -s /usr/bin/fsl_imglob.py ${FSLDIR}/bin/imglob
83
+
74
84
# Installing dev requirements (packages that are not in pypi)
75
85
WORKDIR /src/
76
86
COPY requirements.txt requirements.txt
@@ -83,16 +93,6 @@ RUN cd /src/nipype && \
83
93
pip install -e .[all] && \
84
94
rm -rf ~/.cache/pip
85
95
86
- # Install CI scripts
87
- COPY docker/files/run_* /usr/bin/
88
- RUN chmod +x /usr/bin/run_*
89
-
90
- # Replace imglob with a Python3 compatible version
91
- COPY nipype/external/fsl_imglob.py /usr/bin/fsl_imglob.py
92
- RUN rm -rf ${FSLDIR}/bin/imglob && \
93
- chmod +x /usr/bin/fsl_imglob.py && \
94
- ln -s /usr/bin/fsl_imglob.py ${FSLDIR}/bin/imglob
95
-
96
96
WORKDIR /work/
97
97
98
98
ARG BUILD_DATE
Original file line number Diff line number Diff line change @@ -17,16 +17,18 @@ dependencies:
17
17
- " ~/docker"
18
18
- " ~/examples"
19
19
- " ~/.apt-cache"
20
+ - " ~/bin"
20
21
21
22
pre :
22
23
# Let CircleCI cache the apt archive
23
24
- mkdir -p ~/.apt-cache/partial && sudo rm -rf /var/cache/apt/archives && sudo ln -s ~/.apt-cache /var/cache/apt/archives
24
25
- sudo apt-get -y update && sudo apt-get install -y wget bzip2
25
26
# Create work folder and force group permissions
26
27
- mkdir -p $WORKDIR && sudo setfacl -d -m group:ubuntu:rwx $WORKDIR && sudo setfacl -m group:ubuntu:rwx $WORKDIR
27
- - mkdir -p $HOME/docker $HOME/examples $WORKDIR/pytest $WORKDIR/logs
28
+ - mkdir -p $HOME/docker $HOME/examples $HOME/bin $ WORKDIR/tests $WORKDIR/logs $WORKDIR/crashfiles ${CIRCLE_TEST_REPORTS}/tests/
28
29
override :
29
- - if [[ -e $HOME/docker/cache.tar ]]; then docker load --input $HOME/docker/cache.tar; fi :
30
+ - if [[ -e "$HOME/bin/codecov.io" ]]; then curl -so $HOME/bin/codecov https://codecov.io/bash && chmod 755 $HOME/bin/codecov; fi
31
+ - if [[ -e "$HOME/docker/cache.tar" ]]; then docker load --input $HOME/docker/cache.tar; fi :
30
32
timeout : 6000
31
33
- docker images
32
34
- docker pull nipype/base:latest
50
52
parallel : true
51
53
post :
52
54
# Place reports in the appropriate folder
53
- - mkdir -p ${CIRCLE_TEST_REPORTS}/tests/ && cp ${WORKDIR}/tests/*.xml ${CIRCLE_TEST_REPORTS}/tests/
55
+ - cp ${WORKDIR}/tests/*.xml ${CIRCLE_TEST_REPORTS}/tests/
54
56
# Send coverage data to codecov.io
55
57
- bash .circle/codecov.sh
56
58
Original file line number Diff line number Diff line change @@ -37,8 +37,7 @@ if [[ "${PYTHON_VERSION}" -ge "30" ]]; then
37
37
exit_code=$(( $exit_code + $? ))
38
38
fi
39
39
40
- find /work -name " crash-*" -maxdepth 1 -exec mv {} ${WORKDIR} /crashfiles/ \;
40
+ # Collect crashfiles
41
+ find ${WORKDIR} -name " crash-*" -maxdepth 1 -exec mv {} ${WORKDIR} /crashfiles/ \;
41
42
42
- # Just in case output xml files are misplaced,
43
- # then circle would not tell the tests failed otherwise
44
43
exit ${exit_code}
You can’t perform that action at this time.
0 commit comments