You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.3 KiB
56 lines
1.3 KiB
image: docker:git
|
|
|
|
variables:
|
|
DOCKER_REPOSITORY: mendersoftware/mender-convert
|
|
|
|
include:
|
|
- project: 'Northern.tech/Mender/mendertesting'
|
|
file: '.gitlab-ci-check-commits.yml'
|
|
- project: 'Northern.tech/Mender/mendertesting'
|
|
file: '.gitlab-ci-check-license.yml'
|
|
|
|
stages:
|
|
- test
|
|
- build
|
|
- test_acceptance
|
|
|
|
build:
|
|
stage: build
|
|
services:
|
|
- docker:dind
|
|
script:
|
|
- IMAGE_NAME=$DOCKER_REPOSITORY:pr ./docker-build
|
|
- docker save $DOCKER_REPOSITORY:pr > image.tar
|
|
artifacts:
|
|
expire_in: 2w
|
|
paths:
|
|
- image.tar
|
|
|
|
test_acceptance:
|
|
stage: test_acceptance
|
|
image: docker:18-dind
|
|
tags:
|
|
- mender-qa-slave
|
|
dependencies:
|
|
- build
|
|
before_script:
|
|
# Start up Docker (DonD)
|
|
- /usr/local/bin/dockerd-entrypoint.sh &
|
|
- sleep 10
|
|
- export DOCKER_HOST="unix:///var/run/docker.sock"
|
|
- docker version
|
|
# Install dependencies
|
|
- apk --update --no-cache add bash wget git util-linux mtools python
|
|
py-pip gcc python2-dev libffi-dev libc-dev openssl-dev make sudo
|
|
- pip install "pytest>=3.0" "Fabric>=1.13.0, <2" pytest-html
|
|
# Load image under test
|
|
- export IMAGE_NAME=$DOCKER_REPOSITORY:pr
|
|
- docker load -i image.tar
|
|
script:
|
|
- ./scripts/run-tests.sh
|
|
artifacts:
|
|
expire_in: 2w
|
|
when: always
|
|
paths:
|
|
- results_*.xml
|
|
- report_*.html
|
|
|