Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
configuration
Commits
bd714c38
Commit
bd714c38
authored
Aug 21, 2014
by
clytwynec
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1443 from edx/bp-cl/add-test-build-role
Bp cl/add test build role
parents
b15a2960
baa01d7d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
130 additions
and
0 deletions
+130
-0
playbooks/roles/test_build_server/defaults/main.yml
+18
-0
playbooks/roles/test_build_server/files/test-development-environment.sh
+45
-0
playbooks/roles/test_build_server/meta/main.yml
+26
-0
playbooks/roles/test_build_server/tasks/main.yml
+41
-0
No files found.
playbooks/roles/test_build_server/defaults/main.yml
0 → 100644
View file @
bd714c38
---
#
# edX Configuration
#
# github: https://github.com/edx/configuration
# wiki: https://github.com/edx/configuration/wiki
# code style: https://github.com/edx/configuration/wiki/Ansible-Coding-Conventions
# license: https://github.com/edx/configuration/blob/master/LICENSE.TXT
#
##
# Defaults for role test_build_server
#
#
# vars are namespace with the module name.
#
test_build_server_user
:
jenkins
test_build_server_repo_path
:
/home/jenkins
playbooks/roles/test_build_server/files/test-development-environment.sh
0 → 100644
View file @
bd714c38
#!/usr/bin/env bash
################################################################################
# This executes a small subset of the edx-platform tests. It is intended as
# a means of testing newly provisioned AMIs for our jenkins workers.
#
# The two main things that happen here:
# 1. The setup from edx-platform/scripts/all-tests.sh, the script that is
# run by the jenkins workers to kick off tests.
# 2. The paver command for tests, coverage and quality reports are run.
# For the tests, it runs only a small number of test cases for each
# test suite.
###############################################################################
# Doing this rather than copying the file into the scripts folder so that
# this file doesn't get cleaned out by the 'git clean' in all-tests.sh.
cd
edx-platform-clone
# This will run all of the setup it usually runs, but none of the
# tests because TEST_SUITE isn't defined.
source
scripts/all-tests.sh
# Now we can run a subset of the tests via paver.
# Run some of the common/lib unit tests
paver test_lib
-t
common/lib/xmodule/xmodule/tests/test_stringify.py
# Generate some coverage reports
paver coverage
# Run some of the djangoapp unit tests
paver test_system
-t
lms/djangoapps/courseware/tests/tests.py
paver test_system
-t
cms/djangoapps/course_creators/tests/test_views.py
# Run some of the javascript unit tests
paver test_js_run
-s
xmodule
# Run some of the bok-choy tests
paver test_bokchoy
-t
test_lms.py:RegistrationTest
# Run some of the lettuce acceptance tests
paver test_acceptance
-s
lms
--extra_args
=
"lms/djangoapps/courseware/features/problems.feature"
paver test_acceptance
-s
cms
--extra_args
=
"cms/djangoapps/contentstore/features/html-editor.feature"
# Generate quality reports
paver run_quality
playbooks/roles/test_build_server/meta/main.yml
0 → 100644
View file @
bd714c38
---
#
# edX Configuration
#
# github: https://github.com/edx/configuration
# wiki: https://github.com/edx/configuration/wiki
# code style: https://github.com/edx/configuration/wiki/Ansible-Coding-Conventions
# license: https://github.com/edx/configuration/blob/master/LICENSE.TXT
#
##
# Role includes for role test_build_server
#
# Example:
#
# dependencies:
# - {
# role: my_role
# my_role_var0: "foo"
# my_role_var1: "bar"
# }
#### INTENTIONALLY LEFT BLANK ####
# Since this is a test role, it should not install anything extra onto the
# target machine, thus altering the system under test. Be careful when
# adding dependencies.
playbooks/roles/test_build_server/tasks/main.yml
0 → 100644
View file @
bd714c38
---
#
# edX Configuration
#
# github: https://github.com/edx/configuration
# wiki: https://github.com/edx/configuration/wiki
# code style: https://github.com/edx/configuration/wiki/Ansible-Coding-Conventions
# license: https://github.com/edx/configuration/blob/master/LICENSE.TXT
#
#
#
# Tasks for role test_build_server
#
# Overview:
#
#
# Dependencies:
#
#
# Example play:
#
-
name
:
Create clone of edx-platform
git
:
>
repo=https://github.com/edx/edx-platform.git
dest={{ test_build_server_repo_path }}/edx-platform-clone
version=master
sudo_user
:
"
{{
test_build_server_user
}}"
-
name
:
Copy test-development-environment.sh to somewhere the jenkins user can access it
copy
:
>
src=test-development-environment.sh
dest="{{ test_build_server_repo_path }}"
mode=0755
sudo_user
:
"
{{
test_build_server_user
}}"
-
name
:
Validate build environment
shell
:
"
bash
test-development-environment.sh"
args
:
chdir
:
"
{{
test_build_server_repo_path
}}/"
sudo_user
:
"
{{
test_build_server_user
}}"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment