Skip to content

Commit ee83c69

Browse files
committed
feat(Build): Basic CI integration
1 parent 69f66e5 commit ee83c69

File tree

7 files changed

+50
-75
lines changed

7 files changed

+50
-75
lines changed

.gitignore

Lines changed: 6 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,6 @@
1-
# Xcode
2-
#
3-
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
4-
5-
## Build generated
6-
build/
7-
DerivedData/
8-
9-
## Various settings
10-
*.pbxuser
11-
!default.pbxuser
12-
*.mode1v3
13-
!default.mode1v3
14-
*.mode2v3
15-
!default.mode2v3
16-
*.perspectivev3
17-
!default.perspectivev3
18-
xcuserdata/
19-
20-
## Other
21-
*.moved-aside
22-
*.xccheckout
23-
*.xcscmblueprint
24-
25-
## Obj-C/Swift specific
26-
*.hmap
27-
*.ipa
28-
*.dSYM.zip
29-
*.dSYM
30-
31-
## Playgrounds
32-
timeline.xctimeline
33-
playground.xcworkspace
34-
35-
# Swift Package Manager
36-
#
37-
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
38-
# Packages/
39-
# Package.pins
40-
# Package.resolved
41-
.build/
42-
43-
# CocoaPods
44-
#
45-
# We recommend against adding the Pods directory to your .gitignore. However
46-
# you should judge for yourself, the pros and cons are mentioned at:
47-
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
48-
#
49-
# Pods/
50-
51-
# Carthage
52-
#
53-
# Add this line if you want to avoid checking in source code from Carthage dependencies.
54-
# Carthage/Checkouts
55-
56-
Carthage/Build
57-
58-
# fastlane
59-
#
60-
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
61-
# screenshots whenever they are needed.
62-
# For more information about the recommended setup visit:
63-
# https://docs.fastlane.tools/best-practices/source-control/#source-control
64-
65-
fastlane/report.xml
66-
fastlane/Preview.html
67-
fastlane/screenshots/**/*.png
68-
fastlane/test_output
1+
.idea
2+
*.retry
3+
*.iml
4+
target/*
5+
*.pyc
6+
__pycache__

.travis.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
language: python
3+
services: docker
4+
5+
env:
6+
global:
7+
- ROLE_NAME: secure-docker
8+
matrix:
9+
- MOLECULE_DISTRO: centos7
10+
- MOLECULE_DISTRO: fedora29
11+
- MOLECULE_DISTRO: ubuntu1804
12+
- MOLECULE_DISTRO: debian9
13+
14+
install:
15+
# Install test dependencies.
16+
- pip install molecule docker
17+
18+
before_script:
19+
# Use actual Ansible Galaxy role name for the project directory.
20+
- cd ../
21+
- mv ansible-$ROLE_NAME hypery2k.$ROLE_NAME
22+
- cd hypery2k.$ROLE_NAME
23+
24+
script:
25+
# Run tests.
26+
- molecule test
27+
28+
notifications:
29+
webhooks: https://galaxy.ansible.com/api/v1/notifications/

meta/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ galaxy_info:
66

77
license: MIT
88

9-
min_ansible_version: 2.7.1
9+
min_ansible_version: 2.0
1010

1111

1212
platforms:

molecule/default/prepare.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@
33
gather_facts: true
44

55
tasks:
6-
- name: Install Docker
7-
apt:
8-
name: docker
9-
state: present
6+
7+
- name: Setup docker role
8+
shell: 'ansible-galaxy install --roles-path roles geerlingguy.docker'
9+
delegate_to: localhost
10+
11+
- include_role:
12+
name: geerlingguy.docker
1013

1114
- name: Install setuptools
1215
apt:
@@ -18,9 +21,14 @@
1821
name: python-pip
1922
state: present
2023

21-
- name: Install Docker PIP
24+
- name: Ensure pip_install_packages are installed.
2225
pip:
23-
name: docker
26+
name: "{{ item.name | default(item) }}"
27+
version: "{{ item.version | default(omit) }}"
28+
with_items:
29+
- name: docker
30+
- name: requests
31+
version: 2.5.3
2432

2533
- name: Create /etc/modules
2634
file:
Binary file not shown.
Binary file not shown.
-1.02 KB
Binary file not shown.

0 commit comments

Comments
 (0)