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_ARTIFACTS: /tmp/circleci-artifacts
CIRCLE_TEST_REPORTS: /tmp/circleci-test-results CIRCLE_TEST_REPORTS: /tmp/circleci-test-results
COMPILE: --compile COMPILE: --compile
# To see the list of pre-built images that CircleCI provides for most common languages see # To see the list of pre-built images that CircleCI provides for most common languages see
# https://circleci.com/docs/2.0/circleci-images/ # https://circleci.com/docs/2.0/circleci-images/
docker: docker:
- image: circleci/python:2-jessie - image: circleci/python:2.7
steps: steps:
# Machine Setup # 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 # 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. # 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/' # 'See docs on artifact collection here https://circleci.com/docs/2.0/artifacts/'
- run: mkdir -p $CIRCLE_ARTIFACTS $CIRCLE_TEST_REPORTS - 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 # Dependencies
# This would typically go in either a build or a build-and-test job when using workflows # This would typically go in either a build or a build-and-test job when using workflows
# Restore the dependency cache # Restore the dependency cache
@@ -42,11 +34,7 @@ jobs:
# This is based on your 1.0 configuration file or project settings # This is based on your 1.0 configuration file or project settings
- run: - run:
environment: command: sudo easy_install xdis spark-parser && sudo pip install -e .
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 .
# Save dependency cache # Save dependency cache
- save_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" 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 working_directory: ~/rocky/python-uncompyle6
command: command:
python ./setup.py develop && make check-2.4 python ./setup.py develop && make check-2.7
- run: - run:
environment: environment:
PYENV_ROOT: "/home/circleci/.pyenv" 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" 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 working_directory: ~/rocky/python-uncompyle6
command: 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 # 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 # 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 # Save test results