Run Functest unit tests and linters via CircleCI 42/68342/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Sat, 10 Aug 2019 13:21:38 +0000 (15:21 +0200)
committerCédric Ollivier <cedric.ollivier@orange.com>
Sat, 10 Aug 2019 13:23:50 +0000 (15:23 +0200)
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)

.circleci/config.yml [new file with mode: 0644]

diff --git a/.circleci/config.yml b/.circleci/config.yml
new file mode 100644 (file)
index 0000000..bfdd54d
--- /dev/null
@@ -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