Skip to content

Commit 149d9af

Browse files
authored
Merge pull request #21 from pymor/ci_update
CI improvements
2 parents 520b36b + f62282b commit 149d9af

File tree

6 files changed

+58
-31
lines changed

6 files changed

+58
-31
lines changed

.binder/Dockerfile

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# the container, local dev needs it in path from mounted src
66
# we trick docker into fulfilling both roles via a conditional ONBUILD
77
# if you want to use the local dev setup, see docker/docker-compose.yml
8-
ARG BASE=pymor/testing_py3.9:133249e1ace233311c1dbcfc2e70b3f8624058a8
8+
ARG BASE=pymor/testing_py3.9:41fca6eecc2a539f73a04be0255f4dc44edc9f43
99
ARG BUILD_ENV=binder
1010

1111
FROM $BASE as image_binder
@@ -26,13 +26,11 @@ ARG NB_UID
2626
ARG PYMOR_JUPYTER_TOKEN
2727

2828
USER root
29-
RUN useradd -d /home/pymor --shell /bin/bash -u ${NB_UID} -o -c "" -m ${NB_USER} && \
30-
chown -R ${NB_USER} /home/pymor /src/ && \
31-
apt update && \
32-
apt install -y libtbb-dev
29+
# RUN useradd -d /home/pymor --shell /bin/bash -u ${NB_UID} -o -c "" -m ${NB_USER} && \
30+
# chown -R ${NB_USER} /home/pymor /src/
3331

34-
RUN bash -c "([[ -e /src/setup.py ]] && pip install /src || echo 'no install needed') && pip install jupyter"
35-
USER ${NB_USER}
32+
# # RUN bash -c "([[ -e /src/setup.py ]] && pip install /src || echo 'no install needed') && pip install jupyter"
33+
# USER ${NB_USER}
3634

3735
ENV JUPYTER_TOKEN=${PYMOR_JUPYTER_TOKEN} \
3836
USER=${NB_USER} \

.binder/Dockerfile.in

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,11 @@ ARG NB_UID
2626
ARG PYMOR_JUPYTER_TOKEN
2727

2828
USER root
29-
RUN useradd -d /home/pymor --shell /bin/bash -u ${NB_UID} -o -c "" -m ${NB_USER} && \
30-
chown -R ${NB_USER} /home/pymor /src/ && \
31-
apt update && \
32-
apt install -y libtbb-dev
29+
# RUN useradd -d /home/pymor --shell /bin/bash -u ${NB_UID} -o -c "" -m ${NB_USER} && \
30+
# chown -R ${NB_USER} /home/pymor /src/
3331

34-
RUN bash -c "([[ -e /src/setup.py ]] && pip install /src || echo 'no install needed') && pip install jupyter"
35-
USER ${NB_USER}
32+
# # RUN bash -c "([[ -e /src/setup.py ]] && pip install /src || echo 'no install needed') && pip install jupyter"
33+
# USER ${NB_USER}
3634

3735
ENV JUPYTER_TOKEN=${PYMOR_JUPYTER_TOKEN} \
3836
USER=${NB_USER} \

.ci/azure-pipelines.yml

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,18 @@
1-
pool:
2-
vmImage: 'ubuntu-20.04'
3-
4-
strategy:
5-
matrix:
6-
9.3_3.7:
7-
containerImage: pymor/dealii_py3.7:8b53a0c0ef5397576c1f9800e5e0ad3008536ea8
8-
9.3_3.8:
9-
containerImage: pymor/dealii_py3.8:8b53a0c0ef5397576c1f9800e5e0ad3008536ea8
10-
9.3_3.9:
11-
containerImage: pymor/dealii_py3.9:8b53a0c0ef5397576c1f9800e5e0ad3008536ea8
12-
131
schedules:
142
- cron: "0 12 * * 1"
153
displayName: Weekly build
164
branches:
175
include:
186
- main
19-
container: $[ variables['containerImage'] ]
207

21-
steps:
22-
- script: ./.ci/pytest.bash
23-
- script: ./.ci/wheel.bash
8+
jobs:
9+
- template: job-template.yml
10+
parameters:
11+
script: pytest
12+
- template: job-template.yml
13+
parameters:
14+
script: wheel
15+
# this currently fails on azure, but works locally
16+
# - template: job-template.yml
17+
# parameters:
18+
# script: install

.ci/install.bash

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
set -e
4+
set -x
5+
6+
BASE_DIR="$(cd "$(dirname ${BASH_SOURCE[0]})" ; cd ../ ; pwd -P )"
7+
8+
source ${BASE_DIR}/.ci/common_setup.bash
9+
10+
python -m pip install .
11+
python -m pip uninstall -y pymor_dealii
12+
13+
python -m pip install -e .
14+

.ci/job-template.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
parameters:
3+
name: script
4+
5+
jobs:
6+
- job: ${{ parameters.script }}
7+
pool:
8+
vmImage: 'ubuntu-20.04'
9+
10+
strategy:
11+
matrix:
12+
9.3_3.7:
13+
containerImage: pymor/dealii_py3.7:47f2bf40dd49a64292e482b59fe6631101fdcc2b
14+
9.3_3.8:
15+
containerImage: pymor/dealii_py3.8:47f2bf40dd49a64292e482b59fe6631101fdcc2b
16+
9.3_3.9:
17+
containerImage: pymor/dealii_py3.9:47f2bf40dd49a64292e482b59fe6631101fdcc2b
18+
19+
container: $[ variables['containerImage'] ]
20+
21+
steps:
22+
- script: ./.ci/${{ parameters.script }}.bash

.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
DOCKER_BASE_PYTHON=3.9
2-
PYPI_MIRROR_TAG=133249e1ace233311c1dbcfc2e70b3f8624058a8
3-
CI_IMAGE_TAG=133249e1ace233311c1dbcfc2e70b3f8624058a8
2+
PYPI_MIRROR_TAG=41fca6eecc2a539f73a04be0255f4dc44edc9f43
3+
CI_IMAGE_TAG=41fca6eecc2a539f73a04be0255f4dc44edc9f43
44
PYMOR_TEST_OS=debian_buster

0 commit comments

Comments
 (0)