From 2baf2a8e6f1257edf7d7f55f1890b2220e582802 Mon Sep 17 00:00:00 2001 From: Abhishek Mendhekar Date: Wed, 23 Nov 2016 22:48:31 +0000 Subject: [PATCH] Add travis yaml file to validate if fli builds. Update license * client/fli/analytics.go Updated the relative paths for imports & licenses Updated the README.md file with references on how to install from source. --- .travis.yml | 9 +++++++++ README.md | 6 +++++- client/fli/analytics.go | 20 ++++++++++++-------- 3 files changed, 26 insertions(+), 9 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..b06bc89 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,9 @@ +language: go + +go: + - 1.7.4 + +dist: trusty + +script: + - go build -o /tmp/fli ./client/cmd/fli diff --git a/README.md b/README.md index d907ff6..a168d86 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ You can use Fli to manage these snapshots locally without using FlockerHub at al # Installation -It's easy to get started using Fli because Fli is distributed on the [DockerHub](https://hub.docker.com/) as a container image called ``clusterhq/fli`` so you just need to runn ```docker pull clusterhq/fli```. You can also download the Go binary directly by running ```curl -L "https://download.clusterhq.com/releases/fli/" > /usr/local/bin/fli +It's easy to get started using Fli because Fli is distributed on the [DockerHub](https://hub.docker.com/) as a container image called ``clusterhq/fli`` so you just need to run ```docker pull clusterhq/fli```. You can also download the Go binary directly by running ```curl -L "https://download.clusterhq.com/releases/fli/" > /usr/local/bin/fli chmod +x /usr/local/bin/fli<``` Using Fli requires a few dependencies so make sure you have these on your system before getting started. @@ -27,6 +27,10 @@ Using Fli requires a few dependencies so make sure you have these on your system [View the complete documentation for Fli](https://fli-docs.clusterhq.com/en/latest/) or read on for some more background on the project. +## Build Fli from source + +Fli can also be built from source. Instruction to build from source can be found [here](https://fli-docs.clusterhq.com/en/latest/Contributing.html#how-to-build-from-source). + # Why use Fli? With increased popularity of microservices and container-based architectures, greater and greater emphasis is being placed on automated testing to ensure that separately created and updated microservices all work together when deployed to production. diff --git a/client/fli/analytics.go b/client/fli/analytics.go index 17ff2c3..b705d03 100644 --- a/client/fli/analytics.go +++ b/client/fli/analytics.go @@ -1,13 +1,17 @@ /* - * Copyright © 2014-2016 ClusterHQ Inc. All rights reserved. + * Copyright 2016 ClusterHQ * - * Proprietary Rights Notice: These files and their contents contain - * material that is the proprietary intellectual property of ClusterHQ Inc. - * or its licensors, and are protected under U.S. and international copyright - * and other intellectual property laws. Except as expressly permitted by - * ClusterHQ Inc. in writing, no part of these files may be reproduced, - * duplicated, disclosed, redistributed or transmitted in any form or by any - * means known or unknown without the prior written permission of ClusterHQ Inc. + * 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. */ package fli