Skip to content
Snippets Groups Projects

test xfce projects with xfce-build:latest container

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by Jason Yavorska
    Edited
    test.sh 556 B
    #!/bin/bash
    
    docker pull xfce/xfce-build:latest
    
    for f in *; do
        if [ -d ${f} ]; then
            echo handling $f
            cd $f
            [ -e ../$f.log ] && rm ../$f.log
            git pull
            docker run --rm -u $(id -u ${USER}):$(id -g ${USER}) --volume $(pwd):/tmp xfce/xfce-build:master /bin/bash -c "cd /tmp; ./autogen.sh && make distcheck" >../$f.log 2>&1
            cd ..
        fi
    done
    
    for f in *; do
        if [ -d ${f} ]; then
            echo -e "\n\nshowing $f\n========================================================"
            tail -15 $f.log
        fi
    done
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment