Permalink
Browse files

Add jenkins workflow file, and make scripts executable

  • Loading branch information...
1 parent 19f79a6 commit 4cfd791805b34a6a9c2c801ad4cdac4fc6d1f9cf @svanoort committed Oct 6, 2015
View
0 coverage.sh 100644 → 100755
No changes.
View
0 docker/build.sh 100644 → 100755
No changes.
View
0 docker/verify_image.py 100644 → 100755
No changes.
@@ -0,0 +1,31 @@
+def testEnv = docker.image('pyresttest-build-ubuntu-14:0.1')
+def testEnv26 = docker.image('pyresttest-build-centos6:0.1')
+
+// Run unit/functional/additional tests on given image
+def doTest(imageName, unitTestCommand, functionalTestCommand, additionalTestScript) {
+ imageName.inside() {
+ git url: "$repo", branch: "$branch"
+ dir('pyresttest') {
+ sh unitTestCommand
+ sh functionalTestCommand
+ sh additionalTestScript
+ }
+ }
+}
+
+// Define the environments and specific test syntax for each
+env_runs['ubuntu-python27'] = node {
+ doTest(testEnv, "python -m unittest discover -s pyresttest -p 'test_*.py'", 'python pyresttest/functionaltest.py', 'bash test_use_extension.sh')
+}
+
+env_runs['centos6-python26'] = node {
+ doTest(testEnv26, "python -m discover -s pyresttest -p 'test_*.py'", 'python pyresttest/functionaltest.py', 'bash test_use_extension.sh')
+}
+
+parallel env_runs
+
+// Test Python 3 support, which *currently does not work*
+//node {
+// doTest(testEnv, "python3 -m discover -s pyresttest -p 'test_*.py'", 'python3 pyresttest/functionaltest.py',
+// "python pyresttest/resttest.py https://api.github.com extension_use_test.yaml --import_extensions 'sample_extension'")
+//}
View
0 profile_basic_test.py 100644 → 100755
No changes.
View
0 profile_benchmark.py 100644 → 100755
No changes.
View
0 run_tests.sh 100644 → 100755
No changes.
View
0 sample_extension.py 100644 → 100755
No changes.
View
0 setup.py 100644 → 100755
No changes.
View
0 submit_pypi.sh 100644 → 100755
No changes.
View
0 test_schema_validation.py 100644 → 100755
No changes.
View
0 test_use_extension.sh 100644 → 100755
No changes.
View
0 util/docker_scripts.sh 100644 → 100755
No changes.

0 comments on commit 4cfd791

Please sign in to comment.