Skip to content

Commit

Permalink
debugging circle config
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrkarr committed Jan 25, 2018
1 parent 454b296 commit af81079
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions .circleci/config.yml
Expand Up @@ -4,10 +4,6 @@ jobs:
working_directory: /root/project
docker:
- image: karrlab/build:0.0.21
environment:
- TEST_EXIT_CODE_PY2: 1
- TEST_EXIT_CODE_PY3: 1
- OTHER_EXIT_CODE: 1
steps:
# make XPRESS license check exit quickly
- run: sed -i 's/^use_server server=".\?\+"$/use_server server=""/g' /opt/xpressmp/bin/xpauth.xpr
Expand Down Expand Up @@ -63,19 +59,37 @@ jobs:
command: |
set +e
OTHER_EXIT_CODE=0
echo "0" > OTHER_EXIT_CODE
karr_lab_build_utils2 run-tests --with-xunit --with-coverage
TEST_EXIT_CODE_PY2=$?
echo "$?" > TEST_EXIT_CODE_PY2
karr_lab_build_utils3 run-tests --with-xunit --with-coverage
TEST_EXIT_CODE_PY3=$?
echo "$?" > TEST_EXIT_CODE_PY3
# Generate reports, archive results, and send notifications
- run:
name: Generate reports, archive results, and send notifications
when: always
command: |
if [[ -f OTHER_EXIT_CODE ]]; then
OTHER_EXIT_CODE=$(<OTHER_EXIT_CODE)
else
OTHER_EXIT_CODE=1
fi
if [[ -f TEST_EXIT_CODE_PY2 ]]; then
TEST_EXIT_CODE_PY2=$(<TEST_EXIT_CODE_PY2)
else
TEST_EXIT_CODE_PY2=1
fi
if [[ -f TEST_EXIT_CODE_PY3 ]]; then
TEST_EXIT_CODE_PY3=$(<TEST_EXIT_CODE_PY3)
else
TEST_EXIT_CODE_PY3=1
fi
if [[ $TEST_EXIT_CODE_PY2 -eq 0 && $TEST_EXIT_CODE_PY3 -eq 0 ]]; then
TEST_EXIT_CODE=0
else
Expand Down

0 comments on commit af81079

Please sign in to comment.