Permalink
Browse files

travis yml setup

  • Loading branch information...
lucafuji committed Oct 24, 2018
0 parents commit c0aafb4f2955fb7d56a8d058c1566aed6fcd933b
@@ -0,0 +1,18 @@
vendor
coverage.*
junit.xml
.idea
.gopath
.*.swp
*.coverprofile
*.a
*.o
*.so
gtest
build
goenv
ares
ares-root
default.yaml
bower_components
node_modules
@@ -0,0 +1,72 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="MarkdownProjectSettings">
<PreviewSettings splitEditorLayout="SPLIT" splitEditorPreview="PREVIEW" useGrayscaleRendering="false" zoomFactor="1.0" maxImageWidth="0" showGitHubPageIfSynced="false" allowBrowsingInPreview="false" synchronizePreviewPosition="true" highlightPreviewType="NONE" highlightFadeOut="5" highlightOnTyping="true" synchronizeSourcePosition="true" verticallyAlignSourceAndPreviewSyncPosition="true" showSearchHighlightsInPreview="false" showSelectionInPreview="true">
<PanelProvider>
<provider providerId="com.vladsch.idea.multimarkdown.editor.swing.html.panel" providerName="Default - Swing" />
</PanelProvider>
</PreviewSettings>
<ParserSettings gitHubSyntaxChange="false">
<PegdownExtensions>
<option name="ABBREVIATIONS" value="false" />
<option name="ANCHORLINKS" value="true" />
<option name="ASIDE" value="false" />
<option name="ATXHEADERSPACE" value="true" />
<option name="AUTOLINKS" value="true" />
<option name="DEFINITIONS" value="false" />
<option name="DEFINITION_BREAK_DOUBLE_BLANK_LINE" value="false" />
<option name="FENCED_CODE_BLOCKS" value="true" />
<option name="FOOTNOTES" value="false" />
<option name="HARDWRAPS" value="false" />
<option name="HTML_DEEP_PARSER" value="false" />
<option name="INSERTED" value="false" />
<option name="QUOTES" value="false" />
<option name="RELAXEDHRULES" value="true" />
<option name="SMARTS" value="false" />
<option name="STRIKETHROUGH" value="true" />
<option name="SUBSCRIPT" value="false" />
<option name="SUPERSCRIPT" value="false" />
<option name="SUPPRESS_HTML_BLOCKS" value="false" />
<option name="SUPPRESS_INLINE_HTML" value="false" />
<option name="TABLES" value="true" />
<option name="TASKLISTITEMS" value="true" />
<option name="TOC" value="false" />
<option name="WIKILINKS" value="true" />
</PegdownExtensions>
<ParserOptions>
<option name="COMMONMARK_LISTS" value="true" />
<option name="DUMMY" value="false" />
<option name="EMOJI_SHORTCUTS" value="true" />
<option name="FLEXMARK_FRONT_MATTER" value="false" />
<option name="GFM_LOOSE_BLANK_LINE_AFTER_ITEM_PARA" value="false" />
<option name="GFM_TABLE_RENDERING" value="true" />
<option name="GITBOOK_URL_ENCODING" value="false" />
<option name="GITHUB_EMOJI_URL" value="false" />
<option name="GITHUB_LISTS" value="false" />
<option name="GITHUB_WIKI_LINKS" value="true" />
<option name="JEKYLL_FRONT_MATTER" value="false" />
<option name="SIM_TOC_BLANK_LINE_SPACER" value="true" />
</ParserOptions>
</ParserSettings>
<HtmlSettings headerTopEnabled="false" headerBottomEnabled="false" bodyTopEnabled="false" bodyBottomEnabled="false" embedUrlContent="false" addPageHeader="true">
<GeneratorProvider>
<provider providerId="com.vladsch.idea.multimarkdown.editor.swing.html.generator" providerName="Default Swing HTML Generator" />
</GeneratorProvider>
<headerTop />
<headerBottom />
<bodyTop />
<bodyBottom />
</HtmlSettings>
<CssSettings previewScheme="UI_SCHEME" cssUri="" isCssUriEnabled="false" isCssTextEnabled="false" isDynamicPageWidth="true">
<StylesheetProvider>
<provider providerId="com.vladsch.idea.multimarkdown.editor.swing.html.css" providerName="Default Swing Stylesheet" />
</StylesheetProvider>
<ScriptProviders />
<cssText />
</CssSettings>
<HtmlExportSettings updateOnSave="false" parentDir="$ProjectFileDir$" targetDir="$ProjectFileDir$" cssDir="" scriptDir="" plainHtml="false" imageDir="" copyLinkedImages="false" imageUniquifyType="0" targetExt="" useTargetExt="false" noCssNoScripts="false" linkToExportedHtml="true" exportOnSettingsChange="true" regenerateOnProjectOpen="false" />
<LinkMapSettings>
<textMaps />
</LinkMapSettings>
</component>
</project>
No changes.
@@ -0,0 +1 @@
#!/usr/bin/env bash
@@ -0,0 +1 @@
#!/usr/bin/env bash
No changes.
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
go get github.com/axw/gocov/...
go get github.com/AlekSi/gocov-xml
go get github.com/Masterminds/glide
go install github.com/Masterminds/glide

pushd .
cd vendor/github.com/onsi/ginkgo/ginkgo
go install .
popd
@@ -0,0 +1 @@
#!/usr/bin/env bash
No changes.
@@ -0,0 +1,88 @@
AresDB
==============
AresDB is a GPU-based analytics engine with storage and query. The goal is to develop a real time analytics system with fresh data and interactive response time at low cost.
This repo contains the source code of AresDB and debug UI.

Legal Note
----------
AresDB requires CUDA Toolkit. Please ensure you read, acknowledge, and accept the [CUDA End User License Agreement](https://docs.nvidia.com/cuda/eula/index.html).

Getting started
---------------
To get AresDB:

```
git clone git@github.com:uber/AresDB.git $GOPATH/src/github.com/uber/AresDB.git
```

NVIDIA Driver and CUDA Setup
----------------------------
AresDB needs [NVIDIA driver](https://www.nvidia.com/Download/index.aspx) version >= 390.48 and [CUDA](https://developer.nvidia.com/cuda-91-download-archive) version 9.1.

Environment Variables
---------------------
Make sure following environment variables are correctly set:
```
export PATH=/path/to/cuda/bin:${PATH}
export LD_LIBRARY_PATH=/path/to/cuda/lib64:/path/to/aresdb/lib:${LD_LIBRARY_PATH}
```


Language Requirements
---------------------
Building and running AresDB requires:
* [golang](https://golang.org/) 1.9+
* C++ compiler that support c++11
* [nvcc](https://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/index.html) version 9.1

Build
-----
Following dependencies need to be installed before build the binary.

### glide
We use [glide](https://glide.sh) to manage Go dependencies. Please make sure `glide` is in your PATH before you attempt to build.

###

Local Test
----------
AresDB is written in C++(query engine) and Golang (mem store, disk store, disk store and other query components.) So we break test into 2 parts:
### Test Golang Code
#### ginkgo
We use [ginkgo](https://github.com/onsi/ginkgo) as the test framework for running golang unit test and coverage, install it first and run
```
make test
```

### Test C++ Code
#### google-test
We use [google-test](https://github.com/google/googletest) as the test framework to test c++ code, install it first and set environment variable GTEST_ROOT to the installed location.

And then run
```
make test-cuda
```

Run AresDB Server
-----------------
Following command will start a AresDB server locally, you can start query it using curl command or swagger page
```
make run
```

Contributing
------------

We'd love your help in making AresDB great. If you find a bug or need a new feature, open an issue and we will respond as fast as we can. If you want to implement new feature(s) and/or fix bug(s) yourself, open a pull request with the appropriate unit tests and we will merge it after review.

**Note:** All contributors also need to fill out the [Uber Contributor License Agreement](http://t.uber.com/cla) before we can merge in any of your changes.

Documentation
--------------

Interested in learning more about AresDB? Read the blog post:
[TBD](TBD)

License
-------
Apache 2.0 License, please see [LICENSE](LICENSE) for details.
@@ -0,0 +1,14 @@
package stats

import (
"github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/reporters"
"github.com/onsi/gomega"
"testing"
)

func TestUtils(t *testing.T) {
gomega.RegisterFailHandler(ginkgo.Fail)
junitReporter := reporters.NewJUnitReporter("junit.xml")
ginkgo.RunSpecsWithDefaultAndCustomReporters(t, "Ares Stats Suite", []ginkgo.Reporter{junitReporter})
}
Oops, something went wrong.

0 comments on commit c0aafb4

Please sign in to comment.