-
-
Notifications
You must be signed in to change notification settings - Fork 140
Update and enhance the test environment #215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
02e75fd
Update and enhance the test environment
gildegoma 5c0f0f0
Add system-wide tests to CI and modify assertions
gildegoma b78e334
README: Update 'Requirements' section
gildegoma 30c3321
Update CHANGELOG (test environment update - #215)
gildegoma b58aaa9
Travis CI: Parallelize the test matrix
gildegoma f5d48d3
Tests: Use variables for the Ruby versions to be installed
gildegoma 58e5fd4
Cleanup: Sort platform versions in ascending order
gildegoma ae327bd
Update CHANGELOG.md
pkuczynski 943ff23
Travis CI: Fail fast
gildegoma File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,26 +1,35 @@ | ||
| version: "3" | ||
| services: | ||
|
|
||
| centos6: | ||
| build: ./dockerfiles/centos6 | ||
| cap_add: | ||
| - ALL | ||
| cap_add: [ALL] | ||
| centos7: | ||
| build: ./dockerfiles/centos7 | ||
| cap_add: | ||
| - ALL | ||
| cap_add: [ALL] | ||
| centos8: | ||
| build: ./dockerfiles/centos8 | ||
| cap_add: [ALL] | ||
|
|
||
| debian8: | ||
| build: ./dockerfiles/debian8 | ||
| cap_add: | ||
| - ALL | ||
| cap_add: [ALL] | ||
| debian9: | ||
| build: ./dockerfiles/debian9 | ||
| cap_add: | ||
| - ALL | ||
| cap_add: [ALL] | ||
| debian10: | ||
| build: ./dockerfiles/debian10 | ||
| cap_add: [ALL] | ||
|
|
||
| ubuntu14: | ||
| build: ./dockerfiles/ubuntu14 | ||
| cap_add: | ||
| - ALL | ||
| cap_add: [ALL] | ||
| ubuntu16: | ||
| build: ./dockerfiles/ubuntu16 | ||
| cap_add: | ||
| - ALL | ||
| cap_add: [ALL] | ||
| ubuntu18: | ||
| build: ./dockerfiles/ubuntu18 | ||
| cap_add: [ALL] | ||
| ubuntu20: | ||
| build: ./dockerfiles/ubuntu20 | ||
| cap_add: [ALL] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| FROM centos:8 | ||
|
|
||
| RUN yum update -y \ | ||
| && yum install -y \ | ||
| sudo \ | ||
| which \ | ||
| && yum clean all | ||
|
|
||
| RUN useradd -ms /bin/bash user && \ | ||
| echo 'user ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers | ||
|
|
||
| CMD ["/usr/sbin/init"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| FROM debian:10 | ||
|
|
||
| RUN apt-get update \ | ||
| && apt-get install -y \ | ||
| curl \ | ||
| gpg \ | ||
| procps \ | ||
| python \ | ||
| sudo \ | ||
| systemd \ | ||
| && apt-get clean \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| RUN useradd -ms /bin/bash user && \ | ||
| echo 'user ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers | ||
|
|
||
| CMD ["/lib/systemd/systemd"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| FROM ubuntu:18.04 | ||
|
|
||
| RUN apt-get update \ | ||
| && apt-get install -y \ | ||
| curl \ | ||
| gpg \ | ||
| python \ | ||
| sudo \ | ||
| systemd \ | ||
| && apt-get clean \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| RUN useradd -ms /bin/bash user && \ | ||
| echo 'user ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers | ||
|
|
||
| CMD ["/lib/systemd/systemd"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| FROM ubuntu:20.04 | ||
|
|
||
| RUN apt-get update \ | ||
| && apt-get install -y \ | ||
| curl \ | ||
| gpg \ | ||
| python \ | ||
| sudo \ | ||
| systemd \ | ||
| && apt-get clean \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| RUN useradd -ms /bin/bash user && \ | ||
| echo 'user ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers | ||
|
|
||
| CMD ["/lib/systemd/systemd"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| --- | ||
| rvm_tests_mri_version_default: 2.7.1 | ||
| rvm_tests_mri_version_other: 2.6.6 | ||
|
|
||
| # Upcoming | ||
| # rvm_tests_jruby_version_x: 9.2.12.0 | ||
| # ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,15 @@ | ||
| [centos] | ||
| tests_centos6_1 ansible_connection=docker | ||
| tests_centos7_1 ansible_connection=docker | ||
| tests_centos8_1 ansible_connection=docker | ||
|
|
||
| [debian] | ||
| tests_debian8_1 ansible_connection=docker | ||
| tests_debian9_1 ansible_connection=docker | ||
| tests_debian10_1 ansible_connection=docker | ||
|
|
||
| [ubuntu] | ||
| tests_ubuntu14_1 ansible_connection=docker | ||
| tests_ubuntu16_1 ansible_connection=docker | ||
| tests_ubuntu18_1 ansible_connection=docker | ||
| tests_ubuntu20_1 ansible_connection=docker |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,19 +1,23 @@ | ||
| --- | ||
| - hosts: all | ||
| - name: RVM System Wide Setup | ||
| hosts: all | ||
| gather_facts: false | ||
| vars: | ||
| rvm1_user: root | ||
| rvm1_install_flags: '--auto-dotfiles' | ||
| rvm1_install_path: '/home/{{ rvm1_user }}/.rvm' | ||
| rvm1_install_path: '/opt/rvm' | ||
| rvm1_rubies: | ||
| - 'ruby-2.2.5' | ||
| - 'ruby-2.3.1' | ||
| - 'ruby-{{ rvm_tests_mri_version_other }}' | ||
| - 'ruby-{{ rvm_tests_mri_version_default }}' | ||
| roles: | ||
| - role: rvm1-ansible | ||
| - rvm1-ansible | ||
| tags: setup | ||
|
|
||
| # Asserts tasks | ||
| - hosts: all | ||
| - name: RVM Setup Validation | ||
| hosts: all | ||
| gather_facts: false | ||
| vars: | ||
| rvm1_install_path: '/opt/rvm' | ||
| tasks: | ||
| - name: Assert tasks | ||
| import_tasks: assertions.yml | ||
| - import_tasks: assertions.yml | ||
| tags: validate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,21 +1,25 @@ | ||
| --- | ||
| - hosts: all | ||
| - name: RVM Single User Setup | ||
| hosts: all | ||
| gather_facts: false | ||
| remote_user: user | ||
| vars: | ||
| rvm1_user: user | ||
| rvm1_install_path: '/home/{{ rvm1_user }}/.rvm' | ||
| rvm1_rubies: | ||
| - 'ruby-2.2.5' | ||
| - 'ruby-2.3.1' | ||
| - 'ruby-{{ rvm_tests_mri_version_other }}' | ||
| - 'ruby-{{ rvm_tests_mri_version_default }}' | ||
| roles: | ||
| - role: rvm1-ansible | ||
| become: yes | ||
| tags: setup | ||
|
|
||
| # Asserts tasks | ||
| - hosts: all | ||
| - name: RVM Setup Validation | ||
| hosts: all | ||
| gather_facts: false | ||
| remote_user: user | ||
| vars: | ||
| rvm1_install_path: '/home/user/.rvm' | ||
| tasks: | ||
| - name: Assert tasks | ||
| import_tasks: assertions.yml | ||
| - import_tasks: assertions.yml | ||
| tags: validate |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.