CircleCI try 10

This commit is contained in:
rocky
2020-02-09 10:41:30 -05:00
parent 57bca5102d
commit ef9c34098a

View File

@@ -10,11 +10,10 @@ jobs:
CIRCLE_ARTIFACTS: /tmp/circleci-artifacts
CIRCLE_TEST_REPORTS: /tmp/circleci-test-results
COMPILE: --compile
# To see the list of pre-built images that CircleCI provides for most common languages see
# https://circleci.com/docs/2.0/circleci-images/
docker:
- image: circleci/python:2-jessie
- image: circleci/python:2.7
steps:
# Machine Setup
# If you break your build into multiple jobs with workflows, you will probably want to do the parts of this that are relevant in each
@@ -24,13 +23,6 @@ jobs:
# In many cases you can simplify this from what is generated here.
# 'See docs on artifact collection here https://circleci.com/docs/2.0/artifacts/'
- run: mkdir -p $CIRCLE_ARTIFACTS $CIRCLE_TEST_REPORTS
- run: curl https://pyenv.run | bash
- run:
environment:
PYENV_ROOT: "/home/circleci/.pyenv"
PATH: "/home/circleci/bin:/home/circleci/shims:/home/circleci/.pyenv/bin:/home/circleci/.local/bin:/usr/local/bin:/usr/bin:/bin"
working_directory: ~/rocky/python-uncompyle6
command: pyenv install 2.4.6 && pyenv local 2.4.6 && pyenv rehash && easy_install nose && pyenv rehash
# Dependencies
# This would typically go in either a build or a build-and-test job when using workflows
# Restore the dependency cache
@@ -42,11 +34,7 @@ jobs:
# This is based on your 1.0 configuration file or project settings
- run:
environment:
PYENV_ROOT: "/home/circleci/.pyenv"
PATH: "/home/circleci/bin:/home/circleci/shims:/home/circleci/.pyenv/bin:/home/circleci/.local/bin:/usr/local/bin:/usr/bin:/bin"
working_directory: ~/rocky/python-uncompyle6
command: easy_install xdis spark-parser && pip install -e .
command: sudo easy_install xdis spark-parser && sudo pip install -e .
# Save dependency cache
- save_cache:
@@ -70,14 +58,14 @@ jobs:
PATH: "/home/circleci/bin:/home/circleci/shims:/home/circleci/.pyenv/bin:/home/circleci/.local/bin:/usr/local/bin:/usr/bin:/bin"
working_directory: ~/rocky/python-uncompyle6
command:
python ./setup.py develop && make check-2.4
python ./setup.py develop && make check-2.7
- run:
environment:
PYENV_ROOT: "/home/circleci/.pyenv"
PATH: "/home/circleci/bin:/home/circleci/shims:/home/circleci/.pyenv/bin:/home/circleci/.local/bin:/usr/local/bin:/usr/bin:/bin"
working_directory: ~/rocky/python-uncompyle6
command:
cd ./test/stdlib && pyenv local 2.4.6 && bash ./runtests.sh 'test_[p-z]*.py'
cd ./test/stdlib && bash ./runtests.sh 'test_[p-z]*.py'
# Teardown
# If you break your build into multiple jobs with workflows, you will probably want to do the parts of this that are relevant in each
# Save test results