Tidy up Travis output (#213)
* Ignore generated Prometheus files * Tidy up Travis output * Use relative path for script * Futher tidying of Travis output
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -7,3 +7,7 @@ build
|
|||||||
coverage
|
coverage
|
||||||
downloads
|
downloads
|
||||||
incubating/mqipt/ms81*
|
incubating/mqipt/ms81*
|
||||||
|
vendor/github.com/prometheus/client_model/bin/
|
||||||
|
vendor/github.com/prometheus/client_model/.classpath
|
||||||
|
vendor/github.com/prometheus/client_model/.project
|
||||||
|
vendor/github.com/prometheus/client_model/.settings*
|
||||||
|
|||||||
19
.travis.yml
19
.travis.yml
@@ -46,24 +46,27 @@ jobs:
|
|||||||
- env: DOCKER_DOWNGRADE="echo nothing to be done"
|
- env: DOCKER_DOWNGRADE="echo nothing to be done"
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
- ./install-build-deps-ubuntu.sh
|
||||||
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
|
|
||||||
- sudo apt-get update
|
|
||||||
- sudo apt-get -y install docker-ce
|
|
||||||
- curl https://glide.sh/get | sh
|
|
||||||
- sudo curl -Lo /usr/local/bin/dep https://github.com/golang/dep/releases/download/v0.4.1/dep-linux-amd64
|
|
||||||
- sudo chmod +x /usr/local/bin/dep
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- echo nothing
|
- echo nothing
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
- echo 'Downloading Go dependencies...' && echo -en 'travis_fold:start:deps\\r'
|
||||||
- make deps
|
- make deps
|
||||||
|
- echo -en 'travis_fold:end:deps\\r'
|
||||||
|
- echo 'Building Developer image...' && echo -en 'travis_fold:start:build-devserver\\r'
|
||||||
- make build-devserver
|
- make build-devserver
|
||||||
|
- echo -en 'travis_fold:end:build-devserver\\r'
|
||||||
|
- echo 'Building Developer JMS test image...' && echo -en 'travis_fold:start:build-devjmstest\\r'
|
||||||
- make build-devjmstest
|
- make build-devjmstest
|
||||||
|
- echo -en 'travis_fold:end:build-devjmstest\\r'
|
||||||
|
- echo 'Downgrading Docker (if necessary)...' && echo -en 'travis_fold:start:docker-downgrade\\r'
|
||||||
- eval "$DOCKER_DOWNGRADE"
|
- eval "$DOCKER_DOWNGRADE"
|
||||||
|
- echo -en 'travis_fold:end:docker-downgrade\\r'
|
||||||
|
- echo 'Testing Developer image...' && echo -en 'travis_fold:start:test-devserver\\r'
|
||||||
- make test-devserver
|
- make test-devserver
|
||||||
|
- echo -en 'travis_fold:end:test-devserver\\r'
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- go get golang.org/x/lint/golint
|
|
||||||
- make lint
|
- make lint
|
||||||
|
|||||||
30
install-build-deps-ubuntu.sh
Executable file
30
install-build-deps-ubuntu.sh
Executable file
@@ -0,0 +1,30 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# -*- mode: sh -*-
|
||||||
|
# © Copyright IBM Corporation 2015, 2018
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
# Install Docker and dep, required by build (assumes Ubuntu host, as used by Travis build)
|
||||||
|
|
||||||
|
set -ex
|
||||||
|
|
||||||
|
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
||||||
|
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get -y install docker-ce
|
||||||
|
curl https://glide.sh/get | sh
|
||||||
|
sudo curl -Lo /usr/local/bin/dep https://github.com/golang/dep/releases/download/v0.4.1/dep-linux-amd64
|
||||||
|
sudo chmod +x /usr/local/bin/dep
|
||||||
|
|
||||||
|
go get golang.org/x/lint/golint
|
||||||
Reference in New Issue
Block a user