Skip to content

Commit f17776a

Browse files
authored
Merge pull request #47 from elliotweiser/updates
Mojave support + stability updates
2 parents 849c475 + e8b34b4 commit f17776a

File tree

7 files changed

+67
-54
lines changed

7 files changed

+67
-54
lines changed

.travis.yml

Lines changed: 34 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -3,66 +3,71 @@ sudo: required
33
language: generic
44
matrix:
55
include:
6+
# High Sierra
67
- os: osx
7-
osx_image: xcode10
8+
osx_image: xcode10.1
9+
env: ANSIBLE_VERSION='<2.8.0'
10+
# High Sierra
11+
- os: osx
12+
osx_image: xcode10.1
813
env: ANSIBLE_VERSION='<2.7.0'
14+
# High Sierra
915
- os: osx
10-
osx_image: xcode10
16+
osx_image: xcode10.1
1117
env: ANSIBLE_VERSION='<2.6.0'
18+
# High Sierra
1219
- os: osx
13-
osx_image: xcode10
20+
osx_image: xcode10.1
1421
env: ANSIBLE_VERSION='<2.5.0'
22+
# Sierra
1523
- os: osx
1624
osx_image: xcode9.2
17-
env: ANSIBLE_VERSION='<2.7.0'
25+
env: ANSIBLE_VERSION='<2.8.0'
26+
# El Capitan
1827
- os: osx
1928
osx_image: xcode8
20-
env: ANSIBLE_VERSION='<2.7.0'
21-
- os: osx
22-
osx_image: xcode6.4
23-
env: ANSIBLE_VERSION='<2.7.0'
29+
env: ANSIBLE_VERSION='<2.8.0'
2430

2531
branches:
2632
only:
2733
- master
2834
- /^\d+\.\d+(\.\d+)?(-\S*)?$/
2935

3036
before_install:
31-
# Check Python version
32-
- which python
33-
- ls -l $(which python)
34-
- /usr/bin/python --version
37+
# Unwind the developer environment
38+
- URL=https://raw.githubusercontent.com/Homebrew/install/master/uninstall
39+
- curl -sLO "${URL}"
40+
- chmod +x uninstall
41+
- ./uninstall --force
42+
- rm -rf /usr/local/Homebrew
43+
- sudo rm -rf /usr/local/Caskroom
44+
- sudo rm -rf /usr/local/bin/brew
45+
- sudo rm -rf /Library/Developer/CommandLineTools
3546

3647
# Install pip
3748
- curl https://bootstrap.pypa.io/get-pip.py | sudo -H /usr/bin/python
49+
- which pip
3850
- pip --version
3951

4052
# Setup virtualenv
41-
- brew cleanup
4253
- sudo -H pip install -U virtualenv
4354
- virtualenv --version
4455
- virtualenv .venv
4556
- source .venv/bin/activate
46-
- pip install -U 'pip'
57+
58+
install:
59+
# Upgrade setuptools and install setuptools_scm (for testinfra)
60+
- pip install -U setuptools setuptools_scm
61+
62+
# Dependencies
4763
- pip install "ansible${ANSIBLE_VERSION}"
48-
- pip install 'ansible-lint'
49-
- pip install 'testinfra'
50-
- pip install 'yamllint'
64+
- pip install ansible-lint
65+
- pip install testinfra
66+
- pip install yamllint
5167

52-
# For version_check.py
68+
# Requests, required for version_check.py
5369
- pip install requests
5470

55-
# Unwind the developer environment
56-
- URL=https://raw.githubusercontent.com/Homebrew/install/master/uninstall
57-
- curl -sLO "${URL}"
58-
- chmod +x uninstall
59-
- ./uninstall --force
60-
- rm -rf /usr/local/Homebrew
61-
- sudo rm -rf /usr/local/Caskroom
62-
- sudo rm -rf /usr/local/bin/brew
63-
- sudo rm -rf /Library/Developer/CommandLineTools
64-
65-
install:
6671
# Check versions
6772
- ansible --version
6873
- ansible-lint --version

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ pip install --no-deps -r tests/test-requirements.txt
4343
```
4444

4545
Run the full lifecycle test on a given `<PLATFORM>`. Allowed values for
46-
`<PLATFORM>` are `highsierra`, `sierra`, `elcapitan`, and `yosemite`.
46+
`<PLATFORM>` are `mojave`, `highsierra`, `sierra`, `elcapitan`, and `yosemite`.
4747

4848
```bash
4949
source molecule/<PLATFORM>.sh

meta/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
galaxy_info:
33
author: Elliot Weiser
44
description: Installs OS X Command Line Tools
5+
company: None
56

67
license: MIT
78

@@ -10,6 +11,8 @@ galaxy_info:
1011
platforms:
1112
- name: MacOSX
1213
versions:
14+
- '10.14'
15+
- '10.13'
1316
- '10.12'
1417
- '10.11'
1518
- '10.10'
@@ -19,8 +22,10 @@ galaxy_info:
1922
- development
2023
- elcapitan
2124
- headless
25+
- highsierra
2226
- line
2327
- mac
28+
- mojave
2429
- osx
2530
- sierra
2631
- tools

molecule/default/molecule.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ lint:
1010
platforms:
1111
- name: ${MOLECULE_NAME}
1212
box: ${MOLECULE_BOX}
13-
box_version: ${MOLECULE_BOX_VERSION}
13+
box_version: "${MOLECULE_BOX_VERSION}"
1414
memory: 2048
1515
cpus: 4
1616
config_options:
@@ -22,6 +22,7 @@ provisioner:
2222
create: create.yml
2323
converge: ../../tests/playbook.yml
2424
destroy: destroy.yml
25+
prepare: prepare.yml
2526
config_options:
2627
defaults:
2728
callback_whitelist: profile_tasks,timer

molecule/default/prepare.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
22
- name: Prepare
3-
hosts: localhost
4-
connection: local
5-
gather_facts: False
6-
no_log: "{{ not lookup('env', 'MOLECULE_DEBUG') | bool }}"
3+
hosts: all
74
tasks:
8-
- name: Nothing to prepare
9-
debug:
10-
msg: Nothing to do! Moving on...
5+
- name: Remove existing Command Line Tools installation
6+
file:
7+
path: /Library/Developer/CommandLineTools
8+
state: absent
9+
become: yes

molecule/mojave.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export MOLECULE_NAME=mojave
2+
export MOLECULE_BOX=ashiq/osx-10.14
3+
export MOLECULE_BOX_VERSION='0.1'

tests/test-requirements.txt

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ansible==2.6.4
1+
ansible==2.7.2
22
ansible-lint==3.4.23
33
anyconfig==0.9.7
44
arrow==0.12.1
@@ -9,57 +9,57 @@ backports.functools-lru-cache==1.5
99
bcrypt==3.1.4
1010
binaryornot==0.4.4
1111
Cerberus==1.2
12-
certifi==2018.8.24
12+
certifi==2018.10.15
1313
cffi==1.11.5
1414
chardet==3.0.4
1515
click==6.7
1616
click-completion==0.3.1
1717
colorama==0.3.9
1818
configparser==3.5.0
1919
cookiecutter==1.6.0
20-
cryptography==2.3.1
20+
cryptography==2.4.2
2121
enum34==1.1.6
2222
fasteners==0.14.1
2323
flake8==3.5.0
2424
funcsigs==1.0.2
25-
future==0.16.0
25+
future==0.17.1
2626
git-url-parse==1.1.0
2727
idna==2.7
2828
ipaddress==1.0.22
2929
Jinja2==2.10
3030
jinja2-time==0.2.0
31-
MarkupSafe==1.0
31+
MarkupSafe==1.1.0
3232
mccabe==0.6.1
33-
molecule==2.18.1
33+
molecule==2.19.0
3434
monotonic==1.5
3535
more-itertools==4.3.0
3636
paramiko==2.4.2
3737
pathlib2==2.3.2
3838
pathspec==0.5.9
3939
pbr==4.1.0
4040
pexpect==4.6.0
41-
pluggy==0.7.1
42-
poyo==0.4.1
41+
pluggy==0.8.0
42+
poyo==0.4.2
4343
psutil==5.4.6
4444
ptyprocess==0.6.0
45-
py==1.6.0
45+
py==1.7.0
4646
pyasn1==0.4.4
4747
pycodestyle==2.3.1
4848
pycparser==2.19
4949
pyflakes==1.6.0
50-
PyNaCl==1.2.1
51-
pytest==3.8.1
52-
python-dateutil==2.7.3
50+
PyNaCl==1.3.0
51+
pytest==4.0.1
52+
python-dateutil==2.7.5
5353
python-gilt==1.2.1
5454
python-vagrant==0.5.15
5555
PyYAML==3.13
56-
requests==2.19.1
56+
requests==2.20.1
5757
scandir==1.9.0
5858
sh==1.12.14
5959
six==1.11.0
6060
tabulate==0.8.2
61-
testinfra==1.14.1
61+
testinfra==1.16.0
6262
tree-format==0.1.2
63-
urllib3==1.23
64-
whichcraft==0.4.1
63+
urllib3==1.24.1
64+
whichcraft==0.5.2
6565
yamllint==1.11.1

0 commit comments

Comments
 (0)