Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
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
edx
edx-platform
Commits
f3327762
Commit
f3327762
authored
Feb 04, 2015
by
Christine Lytwynec
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include jeknins report job as script
parent
e98c5580
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
50 additions
and
38 deletions
+50
-38
scripts/all-tests.sh
+5
-38
scripts/jenkins-common.sh
+36
-0
scripts/jenkins-report.sh
+9
-0
No files found.
scripts/all-tests.sh
View file @
f3327762
...
...
@@ -55,47 +55,14 @@ set -e
#
###############################################################################
# Violations thresholds for failing the build
PYLINT_THRESHOLD
=
6300
PEP8_THRESHOLD
=
0
source
$HOME
/jenkins_env
# Clean up previous builds
git clean
-qxfd
# Clear the mongo database
# Note that this prevents us from running jobs in parallel on a single worker.
mongo
--quiet
--eval
'db.getMongo().getDBNames().forEach(function(i){db.getSiblingDB(i).dropDatabase()})'
# Ensure we have fetched origin/master
# Some of the reporting tools compare the checked out branch to origin/master;
# depending on how the GitHub plugin refspec is configured, this may
# not already be fetched.
git fetch origin master:refs/remotes/origin/master
# Reset the jenkins worker's ruby environment back to
# the state it was in when the instance was spun up.
if
[
-e
$HOME
/edx-rbenv_clean.tar.gz
]
;
then
rm
-rf
$HOME
/.rbenv
tar
-C
$HOME
-xf
$HOME
/edx-rbenv_clean.tar.gz
fi
source
scripts/jenkins-common.sh
# Bootstrap Ruby requirements so we can run the tests
bundle install
# Ensure the Ruby environment contains no stray gems
bundle clean
--force
# Reset the jenkins worker's virtualenv back to the
# state it was in when the instance was spun up.
if
[
-e
$HOME
/edx-venv_clean.tar.gz
]
;
then
rm
-rf
$HOME
/edx-venv
tar
-C
$HOME
-xf
$HOME
/edx-venv_clean.tar.gz
fi
# Activate the Python virtualenv
source
$HOME
/edx-venv/bin/activate
# Violations thresholds for failing the build
PYLINT_THRESHOLD
=
6300
PEP8_THRESHOLD
=
0
# If the environment variable 'SHARD' is not set, default to 'all'.
# This could happen if you are trying to use this script from
...
...
@@ -131,7 +98,7 @@ END
paver test_system
-s
lms
paver coverage
;;
"
other
"
)
"
cms-js-commonlib
"
)
paver test_system
-s
cms
paver test_js
--coverage
--skip_clean
paver test_lib
--skip_clean
...
...
scripts/jenkins-common.sh
0 → 100644
View file @
f3327762
#!/usr/bin/env bash
source
$HOME
/jenkins_env
# Clear the mongo database
# Note that this prevents us from running jobs in parallel on a single worker.
mongo
--quiet
--eval
'db.getMongo().getDBNames().forEach(function(i){db.getSiblingDB(i).dropDatabase()})'
# Ensure we have fetched origin/master
# Some of the reporting tools compare the checked out branch to origin/master;
# depending on how the GitHub plugin refspec is configured, this may
# not already be fetched.
git fetch origin master:refs/remotes/origin/master
# Reset the jenkins worker's ruby environment back to
# the state it was in when the instance was spun up.
if
[
-e
$HOME
/edx-rbenv_clean.tar.gz
]
;
then
rm
-rf
$HOME
/.rbenv
tar
-C
$HOME
-xf
$HOME
/edx-rbenv_clean.tar.gz
fi
# Bootstrap Ruby requirements so we can run the tests
bundle install
# Ensure the Ruby environment contains no stray gems
bundle clean
--force
# Reset the jenkins worker's virtualenv back to the
# state it was in when the instance was spun up.
if
[
-e
$HOME
/edx-venv_clean.tar.gz
]
;
then
rm
-rf
$HOME
/edx-venv
tar
-C
$HOME
-xf
$HOME
/edx-venv_clean.tar.gz
fi
# Activate the Python virtualenv
source
$HOME
/edx-venv/bin/activate
scripts/jenkins-report.sh
0 → 100755
View file @
f3327762
#!/usr/bin/env bash
source
scripts/jenkins-common.sh
# Run coverage again to get the diff coverage report
paver coverage
# JUnit test reporter will fail the build
# if it thinks test results are old
touch
`
find
.
-name
*
.xml
`
||
true
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