-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
32 lines (28 loc) · 1.38 KB
/
.travis.yml
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
sudo: required
services:
- docker
# General purpose travis instance.
# No language designation defaults to Ruby.
language: bash
before_install:
# Dockerfile linting tool.
# https://github.com/phase2/hadolint/hadolint
- docker pull hadolint/hadolint
# Double-check the version of Docker travis will use.
- docker --version
script:
# Lint the Dockerfiles. Suppressing rules for pinning to specific dependency versions.
- docker run --rm -i hadolint/hadolint hadolint --ignore SC2046 --ignore DL3018 --ignore DL3013 - < Dockerfile
# Test that the image build.
- docker build --build-arg DOCKER_ENGINE_VERSION=latest -t outrigger/gitlab-ci-workspace:latest .
- docker build --build-arg DOCKER_ENGINE_VERSION=stable -t outrigger/gitlab-ci-workspace:stable .
- docker build --build-arg DOCKER_ENGINE_VERSION=18 -t outrigger/gitlab-ci-workspace:18 .
# Version check our tools
# If any tool is not present, the versions script will abort and the test run will fail.
- docker run --rm outrigger/gitlab-ci-workspace:latest /versions.sh
- docker run --rm outrigger/gitlab-ci-workspace:stable /versions.sh
- docker run --rm outrigger/gitlab-ci-workspace:18 /versions.sh
# Take a closer look at the image.
- docker image inspect outrigger/gitlab-ci-workspace:latest
- docker image inspect outrigger/gitlab-ci-workspace:stable
- docker image inspect outrigger/gitlab-ci-workspace:18