forked from cathive/concourse-sonarqube-resource
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
38 lines (29 loc) · 1012 Bytes
/
.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
36
37
38
---
# Using Travis CI to build a resource for Concourse CI seems a bit odd, I assume.
dist: trusty
sudo: required
language: bash
addons:
sonarcloud:
organization: "cathive"
services:
- docker
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y jq
- docker pull dduportal/bats:0.4.0
- docker pull koalaman/shellcheck:latest
- docker pull mivok/markdownlint:0.4.0
cache:
directories:
- '$HOME/.sonar/cache'
script:
# First of all , we test a bunch of things to make sure that the resource works as expected.
- docker run -v $(pwd)/assets:/assets -w="/assets" koalaman/shellcheck:latest --shell=bash ./check ./in ./out ./common.sh
#- docker run -v $(pwd):/src -w="/src" mivok/markdownlint:0.4.0 ./README.md ./AUTHORS.md ./CHANGELOG.md
#- docker run -v $(pwd):/src -w="/src" dduportal/bats:0.4.0 ./test/
# Then we package everything in a Docker image.
- docker build -t cathive/concourse-sonarqube-resource .
# - sonar-scanner
matrix:
fast_finish: true