Skip to content

Commit

Permalink
disabled Python 2 testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrkarr committed May 3, 2018
1 parent b3bd639 commit 3b73ea5
Showing 1 changed file with 2 additions and 23 deletions.
25 changes: 2 additions & 23 deletions .circleci/config.yml
Expand Up @@ -16,21 +16,7 @@ jobs:
keys:
- cache-v7-{{ .Branch }}-{{ checksum "requirements.txt" }}
- cache-v7-{{ .Branch }}-
- cache-v7-

# Python 2 installation tasks
- run:
name: Install pkg_utils (Python 2)
command: pip2 install -U --process-dependency-links git+https://github.com/KarrLab/pkg_utils.git#egg=pkg_utils
- run:
name: Install karr_lab_build_utils (Python 2)
command: pip2 install -U --process-dependency-links git+https://github.com/KarrLab/karr_lab_build_utils.git#egg=karr_lab_build_utils
- run:
name: Install package (Python 2)
command: pip2 install -U --process-dependency-links -e .[all]
- run:
name: Upgrade requirements (Python 2)
command: karr_lab_build_utils2 upgrade-requirements
- cache-v7-

# Python 3 installation tasks
- run:
Expand All @@ -50,7 +36,6 @@ jobs:
- save_cache:
key: cache-v7-{{ .Branch }}-{{ checksum "requirements.txt" }}
paths:
- /usr/local/lib/python2.7/site-packages
- /usr/local/lib/python3.6/site-packages

# Test code
Expand All @@ -59,14 +44,11 @@ jobs:
command: |
set +e
karr_lab_build_utils2 run-tests --with-xunit --with-coverage
TEST_EXIT_CODE_PY2=$?
karr_lab_build_utils3 run-tests --with-xunit --with-coverage
TEST_EXIT_CODE_PY3=$?
# Calculate exit code and save to file for reading by the next step
if [[ $TEST_EXIT_CODE_PY2 -eq 0 && $TEST_EXIT_CODE_PY3 -eq 0 ]]; then
if [[ $TEST_EXIT_CODE_PY3 -eq 0 ]]; then
echo "0" > TEST_EXIT_CODE
exit 0
else
Expand All @@ -91,9 +73,6 @@ jobs:
- store_test_results:
path: /root/project/tests/reports
- store_artifacts:
path: /root/project/.coverage.2.7.14
destination: .coverage.2.7.14
- store_artifacts:
path: /root/project/.coverage.3.6.4
destination: .coverage.3.6.4
Expand Down

0 comments on commit 3b73ea5

Please sign in to comment.