Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
stop testing Python 2 in the automated CircleCI tests
  • Loading branch information
artgoldberg committed Feb 28, 2018
1 parent 20650be commit cc4101f
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions .circleci/config.yml
Expand Up @@ -15,20 +15,6 @@ jobs:
- cache-v3-{{ .Branch }}-
- cache-v3-

# 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

# Python 3 installation tasks
- run:
name: Install pkg_utils (Python 3)
Expand All @@ -47,7 +33,6 @@ jobs:
- save_cache:
key: cache-v3-{{ .Branch }}-{{ checksum "requirements.txt" }}
paths:
- /usr/local/lib/python2.7/site-packages
- /usr/local/lib/python3.6/site-packages

# Test code
Expand All @@ -56,14 +41,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 @@ -88,9 +70,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 cc4101f

Please sign in to comment.