Run Functest K8s unit tests via CircleCI 39/68339/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Sat, 10 Aug 2019 12:59:41 +0000 (14:59 +0200)
committerCédric Ollivier <cedric.ollivier@orange.com>
Sat, 10 Aug 2019 13:17:01 +0000 (15:17 +0200)
It runs tox and published 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-kubernetes

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

.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..ee82509
--- /dev/null
@@ -0,0 +1,20 @@
+---
+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: cover
+          destination: cover
+      - store_artifacts:
+          path: coverage.xml
+          destination: coverage.xml