From c4304e2f3d29315bb76cf2768e2a0c63114ce70a Mon Sep 17 00:00:00 2001 From: benSepanski Date: Sat, 15 Aug 2020 18:54:31 -0500 Subject: [PATCH] Set up gitlab ci to work like github --- .gitlab-ci.yml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8534e81c..4014ec40 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -55,6 +55,8 @@ Python 3 POCL Firedrake: image: "firedrakeproject/firedrake" script: - sudo apt update + - sudo apt upgrade + - sudo apt install time - sudo apt install -y pocl-opencl-icd ocl-icd-opencl-dev - source ~/firedrake/bin/activate - "grep -v loopy requirements.txt > myreq.txt" @@ -64,18 +66,11 @@ Python 3 POCL Firedrake: # doesn't have dataclasses. - pip install pytest dataclasses - pip install . + # run examples + - . ./.github/workflows/run_firedrake_examples.sh + # run tests - cd test - python -m pytest --tb=native --junitxml=pytest.xml -rxsw test_firedrake_interop.py - - cd ../examples - - echo -e - 'for i in $(find . -name "*firedrake*.py" -exec grep -q __main__ "{}" \; -print ); do - echo "-----------------------------------------------------------------------" - echo "RUNNING $i" - echo "-----------------------------------------------------------------------" - dn=$(dirname "$i") - bn=$(basename "$i") - (cd $dn; time ${PY_EXE} "$bn") - done' artifacts: reports: junit: test/pytest.xml -- GitLab