forked from dlancer/linting-docker-hub-images
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (31 loc) · 3.27 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
33
34
35
# sudo: required
language: generic
services:
- docker
install:
- wget https://storage.googleapis.com/container-structure-test/latest/container-structure-test-linux-amd64
- mv container-structure-test-linux-amd64 container-structure-test
- chmod +x container-structure-test
script:
- docker build --rm -t cozero/linter-coffeelint coffeelint
- docker run --rm -i -v ${PWD}:/src:ro -v /var/run/docker.sock:/var/run/docker.sock gcr.io/gcp-runtimes/container-structure-test:v1.1.0 test --image cozero/linter-coffeelint --config /src/coffeelint/test-config.yaml
- docker build --rm -t cozero/linter-eslint eslint
- docker run --rm -i -v ${PWD}:/src:ro -v /var/run/docker.sock:/var/run/docker.sock gcr.io/gcp-runtimes/container-structure-test:v1.1.0 test --image cozero/linter-eslint --config /src/eslint/test-config.yaml
- docker build --rm -t cozero/linter-haml-lint haml-lint
- docker run --rm -i -v ${PWD}:/src:ro -v /var/run/docker.sock:/var/run/docker.sock gcr.io/gcp-runtimes/container-structure-test:v1.1.0 test --image cozero/linter-haml-lint --config /src/haml-lint/test-config.yaml
- docker build --rm -t cozero/linter-htmlhint htmlhint
- docker run --rm -i -v ${PWD}:/src:ro -v /var/run/docker.sock:/var/run/docker.sock gcr.io/gcp-runtimes/container-structure-test:v1.1.0 test --image cozero/linter-htmlhint --config /src/htmlhint/test-config.yaml
- docker build --rm -t cozero/linter-markdownlint markdownlint
- docker run --rm -i -v ${PWD}:/src:ro -v /var/run/docker.sock:/var/run/docker.sock gcr.io/gcp-runtimes/container-structure-test:v1.1.0 test --image cozero/linter-markdownlint --config /src/markdownlint/test-config.yaml
- docker build --rm -t cozero/linter-python2-pylint python2-pylint
- docker run --rm -i -v ${PWD}:/src:ro -v /var/run/docker.sock:/var/run/docker.sock gcr.io/gcp-runtimes/container-structure-test:v1.1.0 test --image cozero/linter-python2-pylint --config /src/python2-pylint/test-config.yaml
- docker build --rm -t cozero/linter-python3-pylint python3-pylint
- docker run --rm -i -v ${PWD}:/src:ro -v /var/run/docker.sock:/var/run/docker.sock gcr.io/gcp-runtimes/container-structure-test:v1.1.0 test --image cozero/linter-python3-pylint --config /src/python3-pylint/test-config.yaml
- docker build --rm -t cozero/linter-rubocop rubocop
- docker run --rm -i -v ${PWD}:/src:ro -v /var/run/docker.sock:/var/run/docker.sock gcr.io/gcp-runtimes/container-structure-test:v1.1.0 test --image cozero/linter-rubocop --config /src/rubocop/test-config.yaml
- docker build --rm -t cozero/linter-sass-lint sass-lint
- docker run --rm -i -v ${PWD}:/src:ro -v /var/run/docker.sock:/var/run/docker.sock gcr.io/gcp-runtimes/container-structure-test:v1.1.0 test --image cozero/linter-sass-lint --config /src/sass-lint/test-config.yaml
- docker build --rm -t cozero/linter-stylelint stylelint
- docker run --rm -i -v ${PWD}:/src:ro -v /var/run/docker.sock:/var/run/docker.sock gcr.io/gcp-runtimes/container-structure-test:v1.1.0 test --image cozero/linter-stylelint --config /src/stylelint/test-config.yaml
- docker build --rm -t cozero/linter-yamllint yamllint
- docker run --rm -i -v ${PWD}:/src:ro -v /var/run/docker.sock:/var/run/docker.sock gcr.io/gcp-runtimes/container-structure-test:v1.1.0 test --image cozero/linter-yamllint --config /src/yamllint/test-config.yaml