Skip to content

Commit

Permalink
Merge pull request twisted#1056 from altendky/9445-altendky-reenable-…
Browse files Browse the repository at this point in the history
…macos-circleci

Author: altendky, adiroiban

Reviewer: glyph

Fixes: ticket:9445

Re-enable macOS continuous integration configuration on CircleCI.
  • Loading branch information
glyph authored Mar 3, 2019
2 parents 7d78d1f + 5f4ad3f commit c20f019
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,74 @@ jobs:
command: |
tox -r -e apidocs
#
# MacOS with Python2.7 and default reactor.
#
macos_py27_default_reactor:
macos:
# We don't use the xcode, but we need to put something here.
xcode: "10.0.0"

working_directory: ~/repo
steps:
# Get the source.
- checkout

- run:
name: Prepare the macOS environment.
command: |
echo 'export PATH=/usr/local/bin:$PATH:/Users/distiller/Library/Python/2.7/bin' >> $BASH_ENV
python2 --version
pip2 install -q --user --ignore-installed --upgrade virtualenv
pip2 install -q tox --user
# Run tests with tox without any cached dependencies.
- run:
name: Test with the default reactor.
command: |
tox -r -e py27-alldeps-withcov-posix twisted
#
# MacOS with Python3.7 and default reactor.
#
macos_py37_default_reactor:
macos:
# We don't use the xcode, but we need to put something here.
xcode: "10.0.0"

working_directory: ~/repo
steps:
# Get the source.
- checkout

- run:
name: Prepare the macOS environment.
command: |
echo 'export PATH=/usr/local/bin:$PATH:/Users/distiller/Library/Python/3.7/bin' >> $BASH_ENV
python3 --version
pip3 install -q --user --ignore-installed --upgrade virtualenv
pip3 install -q tox --user
# Run tests with tox without any cached dependencies.
- run:
name: Test with the default reactor.
command: |
tox -r -e py37-alldeps-withcov-posix twisted
# First we run the static checkers, and only if they pass we spin the macOS.
# in this way we should save some macOS minutes as we only have 1000h per month.
workflows:
version: 2
all-tests:
jobs:
- static_checkers
- documentation
- macos_py27_default_reactor:
requires:
- static_checkers
- documentation
- macos_py37_default_reactor:
requires:
- static_checkers
- documentation
Empty file.

0 comments on commit c20f019

Please sign in to comment.