8119dff5f0
Fix it to use the new name. Signed-off-by: Claudius Heine <ch@denx.de>
49 lines
1.3 KiB
YAML
49 lines
1.3 KiB
YAML
language: python
|
|
|
|
python:
|
|
- "3.4"
|
|
- "3.5"
|
|
- "3.6"
|
|
|
|
sudo: required
|
|
|
|
services:
|
|
- docker
|
|
|
|
install:
|
|
# install kas to have all kas dependencies:
|
|
- pip install .
|
|
# checkcode dependencies:
|
|
- pip install pylint pycodestyle doc8 Pygments
|
|
# test dependencies:
|
|
- pip install pytest
|
|
|
|
script:
|
|
- scripts/checkcode.sh .
|
|
- pytest
|
|
|
|
jobs:
|
|
include:
|
|
- stage: docker
|
|
python: "3.6"
|
|
script:
|
|
- docker build -t kasproject/kas .
|
|
- docker build -t kasproject/kas-isar -f Dockerfile.isar .
|
|
- TAG=`git describe --exact-match --tags 2>/dev/null || echo "<none>"`
|
|
- case "$TRAVIS_BRANCH" in
|
|
master|next|"$TAG")
|
|
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
|
|
for IMAGE in kasproject/kas kasproject/kas-isar; do
|
|
if [ "$TRAVIS_BRANCH" == "$TAG" ]; then
|
|
docker tag $IMAGE $IMAGE:$TAG;
|
|
docker push $IMAGE:$TAG;
|
|
elif [ "$TRAVIS_BRANCH" == "next" ]; then
|
|
docker tag $IMAGE $IMAGE:next;
|
|
docker push $IMAGE:next;
|
|
else
|
|
docker push $IMAGE;
|
|
fi
|
|
done
|
|
;;
|
|
esac
|