mirror of
https://github.com/mtan93/cachet-url-monitor.git
synced 2026-03-08 05:31:58 +00:00
Upgrading to python3 (#60)
* Migrating to python 3.7.2, but docker image is not working properly. Need to continue investigating why it's not properly running. * Trying to fix the build and fixing logging in the scheduler initialization. * Trying to fix the build * Collecting test results * Fixing the dockerfile * Updating the development dependencies
This commit is contained in:
@@ -8,7 +8,7 @@ jobs:
|
||||
docker:
|
||||
# specify the version you desire here
|
||||
# use `-browsers` prefix for selenium tests, e.g. `3.6.1-browsers`
|
||||
- image: circleci/python:2.7
|
||||
- image: circleci/python:3.7.2
|
||||
|
||||
working_directory: ~/repo
|
||||
|
||||
@@ -25,10 +25,11 @@ jobs:
|
||||
- run:
|
||||
name: install dependencies
|
||||
command: |
|
||||
sudo pip install virtualenv
|
||||
sudo pip3 install virtualenv
|
||||
virtualenv .
|
||||
source bin/activate
|
||||
pip install -r dev_requirements.txt
|
||||
pip3 install -r dev_requirements.txt
|
||||
python3 setup.py install
|
||||
|
||||
- save_cache:
|
||||
paths:
|
||||
@@ -39,7 +40,10 @@ jobs:
|
||||
name: run tests
|
||||
command: |
|
||||
. bin/activate
|
||||
py.test tests
|
||||
py.test tests --junitxml=test-reports/junit.xml
|
||||
|
||||
- store_test_results:
|
||||
path: test-reports
|
||||
|
||||
- store_artifacts:
|
||||
path: test-reports
|
||||
|
||||
Reference in New Issue
Block a user