Add travis tests for i386

This commit is contained in:
Tilo Spannagel 2017-06-29 12:57:03 +02:00
parent 7d4e0960b4
commit 820f21cdf2
No known key found for this signature in database
GPG Key ID: B89F1626A58E1429
2 changed files with 16 additions and 7 deletions

View File

@ -11,6 +11,7 @@ install:
before_script: before_script:
- env | sort - env | sort
- image="nextcloud:${VERSION}${VARIANT:+-$VARIANT}" - image="nextcloud:${VERSION}${VARIANT:+-$VARIANT}"
- if [[ "$ARCH" == 'i386' ]]; then sed -i -e 's/FROM php/FROM i386\/php/g' "${VERSION}/${VARIANT}/Dockerfile"; fi
script: script:
- travis_retry docker build -t "$image" "${VERSION}/${VARIANT}" - travis_retry docker build -t "$image" "${VERSION}/${VARIANT}"
@ -40,9 +41,15 @@ jobs:
- ./generate-stackbrew-library.sh - ./generate-stackbrew-library.sh
- stage: test images - stage: test images
env: VERSION=10.0 VARIANT=fpm env: VERSION=10.0 VARIANT=fpm ARCH=amd64
- env: VERSION=10.0 VARIANT=apache - env: VERSION=10.0 VARIANT=fpm ARCH=i386
- env: VERSION=11.0 VARIANT=fpm - env: VERSION=10.0 VARIANT=apache ARCH=amd64
- env: VERSION=11.0 VARIANT=apache - env: VERSION=10.0 VARIANT=apache ARCH=i386
- env: VERSION=12.0 VARIANT=fpm - env: VERSION=11.0 VARIANT=fpm ARCH=amd64
- env: VERSION=12.0 VARIANT=apache - env: VERSION=11.0 VARIANT=fpm ARCH=i386
- env: VERSION=11.0 VARIANT=apache ARCH=amd64
- env: VERSION=11.0 VARIANT=apache ARCH=i386
- env: VERSION=12.0 VARIANT=fpm ARCH=amd64
- env: VERSION=12.0 VARIANT=fpm ARCH=i386
- env: VERSION=12.0 VARIANT=apache ARCH=amd64
- env: VERSION=12.0 VARIANT=apache ARCH=i386

View File

@ -59,7 +59,9 @@ for latest in "${latests[@]}"; do
# Copy apps.config.php # Copy apps.config.php
cp apps.config.php "$version/$variant/apps.config.php" cp apps.config.php "$version/$variant/apps.config.php"
travisEnv='\n - env: VERSION='"$version"' VARIANT='"$variant$travisEnv" for arch in i386 amd64; do
travisEnv='\n - env: VERSION='"$version"' VARIANT='"$variant"' ARCH='"$arch$travisEnv"
done
done done
fi fi
done done