Run Xtesting unit tests via CircleCI 33/68333/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Sat, 10 Aug 2019 08:45:11 +0000 (10:45 +0200)
committerCédric Ollivier <cedric.ollivier@orange.com>
Sat, 10 Aug 2019 10:08:02 +0000 (12:08 +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-xtesting

Change-Id: Icc57b6c45062425181230f3ebbdc5d3f7a925f99
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
.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..39d2db3
--- /dev/null
@@ -0,0 +1,23 @@
+---
+version: 2
+jobs:
+  build:
+    docker:
+      - image: circleci/python:3.7.4
+    steps:
+      - checkout
+      - run:
+          name: Install dependendencies
+          command: sudo apt-get install python-dev python3.7-dev
+      - run:
+          name: Run tox
+          command: sudo pip install tox && tox
+      - store_artifacts:
+          path: api/build
+          destination: api
+      - store_artifacts:
+          path: cover
+          destination: cover
+      - store_artifacts:
+          path: coverage.xml
+          destination: coverage.xml