From a0201ddd2b8d9d5b97e4a3fb216d71788c96d706 Mon Sep 17 00:00:00 2001 From: Sushant Hiray Date: Fri, 4 Aug 2017 14:13:51 +0530 Subject: [PATCH 1/5] Testing circleci config --- .circleci/config.yml | 52 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..783ba55 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,52 @@ +# Python CircleCI 2.0 configuration file +# +# Check https://circleci.com/docs/2.0/language-python/ for more details +# +version: 2 +jobs: + build: + docker: + # specify the version you desire here + # use `-browsers` prefix for selenium tests, e.g. `3.6.1-browsers` + - image: circleci/python:3.6.1 + + # Specify service dependencies here if necessary + # CircleCI maintains a library of pre-built images + # documented at https://circleci.com/docs/2.0/circleci-images/ + # - image: circleci/postgres:9.4 + + working_directory: ~/repo + + steps: + - checkout + + # Download and cache dependencies + - restore_cache: + keys: + - v1-dependencies-{{ checksum "requirements.txt" }} + # fallback to using the latest cache if no exact match is found + - v1-dependencies- + + - run: + name: install dependencies + command: | + python3 -m venv venv + . venv/bin/activate + pip install -r requirements.txt + + - save_cache: + paths: + - ./venv + key: v1-dependencies-{{ checksum "requirements.txt" }} + + # run tests! + - run: + name: run tests + command: | + . venv/bin/activate + python manage.py test + + - store_artifacts: + path: test-reports + destination: test-reports + From 1adda4b39ec87db7a3a07e07f8dc48d18da8b52f Mon Sep 17 00:00:00 2001 From: Sushant Hiray Date: Fri, 4 Aug 2017 14:28:44 +0530 Subject: [PATCH 2/5] Install mediainfo --- .circleci/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 783ba55..8dd628c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -32,6 +32,7 @@ jobs: command: | python3 -m venv venv . venv/bin/activate + apt-get install mediainfo pip install -r requirements.txt - save_cache: From 682bf1d3d932b1dffe6db1e6af1f71401740603a Mon Sep 17 00:00:00 2001 From: Sushant Hiray Date: Fri, 4 Aug 2017 14:29:57 +0530 Subject: [PATCH 3/5] Configured root perms --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 8dd628c..44071fe 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -32,7 +32,7 @@ jobs: command: | python3 -m venv venv . venv/bin/activate - apt-get install mediainfo + sudo apt-get install mediainfo pip install -r requirements.txt - save_cache: From bf6e079ea9971d0433357b7c8e6a45ac95530af5 Mon Sep 17 00:00:00 2001 From: Sushant Hiray Date: Fri, 4 Aug 2017 14:31:55 +0530 Subject: [PATCH 4/5] Use nostests --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 44071fe..7b6c45a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -45,7 +45,7 @@ jobs: name: run tests command: | . venv/bin/activate - python manage.py test + nosetests - store_artifacts: path: test-reports From e46fe0e385eabeca501f3710e00b1ff71efd1eac Mon Sep 17 00:00:00 2001 From: Sushant Hiray Date: Fri, 4 Aug 2017 14:33:52 +0530 Subject: [PATCH 5/5] Add nostests --- requirements.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index a9c1db9..905133b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,4 +3,5 @@ six >= 1.10 python_dateutil >= 2.5.3 setuptools >= 21.0.0 urllib3 >= 1.15.1 -pymediainfo >= 2.1.9 \ No newline at end of file +pymediainfo >= 2.1.9 +nose >= 1.3.7