Sign inSign up

olegrog/wlt

By olegrog

•Updated almost 2 years ago

CI image for PawEMM

Image
Languages & frameworks
0

928

olegrog/wlt repository overview

This image is used in the CI pipeline at https://gitlab.com/PawEMM/PawEMM⁠.

The pipeline can also be run locally. For this purpose, you need to pull this image and rename it to wlt

docker pull olegrog/wlt
docker tag olegrog/wlt wlt 

The following commands can be placed in ~/.bash_profile to simplify pipeline running:

### PawEMM CI
declare -xr PAWEMM_DIR=$HOME/pawemm

ci() {
    local profile=${1:-clang}
    docker run -it --rm --env PROFILE=$profile    \
        --env CONAN_HOME=/pawemm/build-ci/.conan2 \
        --volume="$PAWEMM_DIR:/pawemm"            \
    wlt bash -ci '
    spack load hpx%$PROFILE; set -x
    cd /pawemm
    mkdir -p $CONAN_HOME; cp -rf /root/.conan2/profiles $CONAN_HOME/
    conan build . -b missing -pr $PROFILE -s build_type=Debug -o build_dir=build-ci \
        -o user_preset=off -o documentation=on -o benchmark=on || exit 1
    set +x; . tools/ci/colors.sh; set -x; TARGET_BRANCH=$wlt_target_branch
    git -P log --graph --oneline --abbrev-commit --boundary $TARGET_BRANCH..HEAD
    tools/ci/check_commits.sh --verbose=1
    git -P diff --check $TARGET_BRANCH
    tools/ci/check_files.sh --verbose=1
    codespell -f --skip "./.git,./build*,./cmake-*"
    tools/ci/run_linters.sh --build=build-ci/Debug
    '
}

# Run CI interactively
cii() {
    local version=${1:-latest}
    local timezone
    timezone="$(readlink /etc/localtime | sed 's_.*zoneinfo/__')"
    docker run -it --rm                           \
        --env CONAN_HOME=/pawemm/build-ci/.conan2 \
        --env TZ="$timezone"                      \
        --volume="$PAWEMM_DIR:/pawemm"            \
    wlt:$version
}

# Run tests only
cit() {
    local profile=${1:-clang}
    docker run -it --rm --env PROFILE=$profile    \
        --env CONAN_HOME=/pawemm/build-ci/.conan2 \
        --volume="$PAWEMM_DIR:/pawemm"            \
    wlt bash -ci '
    spack load hpx%$PROFILE; set -x
    cd /pawemm
    mkdir -p $CONAN_HOME; cp -rf /root/.conan2/profiles $CONAN_HOME/
    conan build . -b missing -pr $PROFILE -s build_type=Debug -o build_dir=build-ci/$PROFILE \
        -o user_preset=off -o test=on
    '
}

Tag summary

Content type

Image

Digest

sha256:3b9e8b3f3…

Size

681.5 MB

Last updated

almost 2 years ago

docker pull olegrog/wlt