aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2019-08-10 15:21:38 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2019-08-10 15:23:50 +0200
commit4616553c95e3ad9a78fae2a52ec256e554eb8807 (patch)
tree2bf647e63bede8c931a7ca33abbba83da8703596
parente7a7f45e3533e01af50e9e1cd1220ffbf2867842 (diff)
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)
-rw-r--r--.circleci/config.yml26
1 files changed, 26 insertions, 0 deletions
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