From: Cédric Ollivier <cedric.ollivier@orange.com>
Date: Sat, 10 Aug 2019 13:21:38 +0000 (+0200)
Subject: Run Functest unit tests and linters via CircleCI
X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=4616553c95e3ad9a78fae2a52ec256e554eb8807;p=functest.git

Run Functest unit tests and linters via CircleCI

It runs tox and publishes the artifacts.
It's worth mentioning that all docker images are already built via
Travis CI (amd64, arm and arm64) [1].

https://travis-ci.org/collivier/functest

Change-Id: I48720f4f13dd1a93469b042000dd86a01854d8f0
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 17fd4cc911eca9d289fc481ee7a615299f17415a)
---

diff --git a/.circleci/config.yml b/.circleci/config.yml
new file mode 100644
index 000000000..bfdd54dc6
--- /dev/null
+++ b/.circleci/config.yml
@@ -0,0 +1,26 @@
+---
+version: 2
+jobs:
+  build:
+    docker:
+      - image: circleci/python:3.6.9
+    steps:
+      - checkout
+      - run:
+          name: Install dependendencies
+          command: sudo apt-get install python2.7-dev
+      - run:
+          name: Run tox
+          command: sudo pip install tox && tox
+      - store_artifacts:
+          path: api/build
+          destination: api
+      - store_artifacts:
+          path: docs/build
+          destination: docs
+      - store_artifacts:
+          path: cover
+          destination: cover
+      - store_artifacts:
+          path: coverage.xml
+          destination: coverage.xml