File: docker_build.sh

package info (click to toggle)
python-plyer 2.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,808 kB
  • sloc: python: 13,395; sh: 217; makefile: 177
file content (19 lines) | stat: -rwxr-xr-x 462 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

# build docker images from Travis matrix
if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$DOCK" = "1" ]
then
    docker build \
        --tag plyer:py3 \
        --file ci/docker/Dockerfile.$IMAGE.py3 \
        "$(pwd)"

    # style image that inherits layers from Python 3 image
    if [ "$RUN" = "style" ]
    then
        docker build \
            --tag plyer:style \
            --file ci/docker/Dockerfile.$IMAGE.style \
            "$(pwd)"
    fi
fi