Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-ora2
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-ora2
Commits
03ddfbd1
Commit
03ddfbd1
authored
Jul 31, 2014
by
Will Daly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add script for jenkins acceptance tests
Add nose to the acceptance test reqs
parent
c56853ae
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
1 deletions
+40
-1
requirements/test-acceptance.txt
+1
-0
requirements/test.txt
+0
-1
scripts/jenkins-acceptance-tests.sh
+39
-0
No files found.
requirements/test-acceptance.txt
View file @
03ddfbd1
bok_choy==0.3.1
nose==1.3.0
requirements/test.txt
View file @
03ddfbd1
...
...
@@ -5,7 +5,6 @@ ddt==0.8.0
django-nose==1.2
mock==1.0.1
moto==0.2.22
nose==1.3.0
coverage==3.7.1
pep8==1.4.6
pylint<1.0
...
...
scripts/jenkins-acceptance-tests.sh
0 → 100755
View file @
03ddfbd1
##############################################################################
#
# Run the acceptance tests in Jenkins
#
# This assumes that:
# * Jenkins has Python and virtualenv installed
# * Jenkins has the SauceConnect plugin installed.
# * The Jenkins job provides the environment variables
# - BASIC_AUTH_USER: The basic auth username for the sandbox.
# - BASIC_AUTH_PASSWORD: The basic auth password for the sandbox.
# - TEST_HOST: The hostname of the sandbox (e.g. test.example.com)
#
##############################################################################
set
-x
if
[
-z
"
$BASIC_AUTH_USER
"
]
;
then
echo
"Need to set BASIC_AUTH_USER env variable"
exit
1
;
fi
if
[
-z
"
$BASIC_AUTH_PASSWORD
"
]
;
then
echo
"Need to set BASIC_AUTH_PASSWORD env variable"
exit
1
;
fi
if
[
-z
"
$TEST_HOST
"
]
;
then
echo
"Need to set TEST_HOST env variable"
exit
1
;
fi
export
BASE_URL
=
"https://
${
BASIC_AUTH_USER
}
:
${
BASIC_AUTH_PASSWORD
}
@
${
TEST_HOST
}
"
virtualenv venv
source
venv/bin/activate
pip install
-r
requirements/test-acceptance.txt
cd test
/acceptance
python tests.py
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