diff --git a/.gitignore b/.gitignore index 8d8334b..8ca3f5a 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,7 @@ build coverage downloads 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* diff --git a/.travis.yml b/.travis.yml index a13091c..b223b54 100644 --- a/.travis.yml +++ b/.travis.yml @@ -46,24 +46,27 @@ jobs: - env: DOCKER_DOWNGRADE="echo nothing to be done" before_install: - - 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 + - ./install-build-deps-ubuntu.sh install: - echo nothing script: + - echo 'Downloading Go dependencies...' && echo -en 'travis_fold:start:deps\\r' - make deps + - echo -en 'travis_fold:end:deps\\r' + - echo 'Building Developer image...' && echo -en 'travis_fold:start:build-devserver\\r' - 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 + - echo -en 'travis_fold:end:build-devjmstest\\r' + - echo 'Downgrading Docker (if necessary)...' && echo -en 'travis_fold:start:docker-downgrade\\r' - 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 + - echo -en 'travis_fold:end:test-devserver\\r' after_success: - - go get golang.org/x/lint/golint - make lint diff --git a/install-build-deps-ubuntu.sh b/install-build-deps-ubuntu.sh new file mode 100755 index 0000000..bcb1bea --- /dev/null +++ b/install-build-deps-ubuntu.sh @@ -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