File: docker_run.sh

package info (click to toggle)
python-plyer 2.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,724 kB
  • sloc: python: 13,395; sh: 217; makefile: 177
file content (42 lines) | stat: -rwxr-xr-x 1,216 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/sh

if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$DOCK" = "1" ]
then

    if [ "$RUN" = "unit" ]
    then

        # running coverage report (COVERALLS=1)
        # and even deploy to PyPI (PLYER_DEPLOY=1) if asked for
        if [ "$COVERALLS" = "1" ]
        then
            docker run \
                --interactive \
                --tty \
                --env COVERALLS_REPO_TOKEN=$COVERALLS_REPO_TOKEN \
                --env COVERALLS_SERVICE_NAME=travis-ci \
                --env TRAVIS_JOB_ID=$TRAVIS_JOB_ID \
                --env TRAVIS_PULL_REQUEST=$TRAVIS_PULL_REQUEST \
                --env PLYER_DEPLOY=${PLYER_DEPLOY:-"0"} \
                --env TWINE_REPOSITORY=$TWINE_REPOSITORY \
                --env TWINE_REPOSITORY_URL=$TWINE_REPOSITORY_URL \
                --env TWINE_USERNAME=$TWINE_USERNAME \
                --env TWINE_PASSWORD=$TWINE_PASSWORD \
                plyer:py3

        # ordinary tests run
        else
            docker run \
                --interactive \
                --tty \
                plyer:py3
        fi

    elif [ "$RUN" = "style" ]
    then
        docker run \
            --interactive \
            --tty \
            plyer:style
    fi
fi