Commit d0b946c3 authored by ulrich_y's avatar ulrich_y
Browse files

Fixed CI

parent 826166a4
......@@ -16,12 +16,10 @@ pep8check:
run:
stage: build
script:
- make all
- make ci
artifacts:
when: on_success
name: "results-$CI_COMMIT_REF_NAME"
paths:
- *.html
- *.pdf
- *.ipynb
expire_in: 8 wekks
- ci/
expire_in: 8 weeks
......@@ -3,9 +3,14 @@ FOLDERS=mu-e-scattering/muone \
radiative-lepton-decay/babar/example \
michel-decay/validation michel-decay/demo-observable michel-decay/f-and-g
.DEFAULT_GOAL=all
.PHONY:check clean ci
all:
for i in $(FOLDERS) ; do make -C $$i all ; done
check:
for i in $(FOLDERS) ; do make -C $$i check ; done
clean:
for i in $(FOLDERS) ; do make -C $$i clean ; done
ci:
rm -rf ci
for i in $(FOLDERS) ; do make -C $$i ci ; done
......@@ -19,7 +19,7 @@ PY2NB = $(PYTHON) $(SELF_DIR)/py2nb.py -x
PEP8FLAGS=--ignore=E265,E266,W503,E121,E123,E126,E226,E24,E704,W503
.DEFAULT_GOAL=all
.PHONY:check clean
.PHONY:check clean ci
%.ipynb: %.py
$(PY2NB) $<
......@@ -37,3 +37,7 @@ clean:
check:
@res=$$(find . -name "*.py" -exec $(PEP8) $(PEP8FLAGS) {} \;) ; \
if [ -n "$$res" ]; then echo "$$res" ; fi
ci: all
mkdir -p $(SELF_DIR)/../ci/$(name)/
cp $(name).html $(name).ipynb $(figures) $(SELF_DIR)/../ci/$(name)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment