Unit testing of a python based project using Jenkinsfile - unit-testing

I am trying to do the unit test of a repository which is based on python. Here is the repo: https://github.com/Alok018/giskardpy/tree/noetic-devel
In jenkins, I have installed python and junit plugin.
This Jenkinsfile is using to build the repo inside the ros workspace. After creating an image, I want to test those python examples.

Related

How to create single dockerfile with node, yarn, python and maven

I'm trying to create a single dockerfile that includes npm, yarn, python, and mvn. Could anyone suggest the best practice to create a dockerfile with these packages.

How to update Bootstrap v3.3.7 to v4.0.0 beta2 in Asp.net core 2.0 mvc project?

I am wondering what is the process to update Bootstrap v3.3.7 to v.4.0.0 beta-2 in Asp.net core 2.0 mvc project.
follow steps for bootstrap 4.0.0 beta.3 version. Most probably for other versions also will work.
Open Node.js Console
Cd Path to your project where package.json is located
run command npm install popper.js --save
run command npm install bootstrap#4.0.0-beta.3
webpack --config webpack.config.vendor.js - update vendor.js and vendor.css files.
rebuild project and test it. If it will not work also run Install-Package bootstrap -Pre in VS Package Manager Console.
Be prepared that styles will not work anymore. And project will not launch due huge changes in bootstrap.
Hope it will help.

How to run a django project?

I have just downloaded some Django samples from Github, but I cannot find "manage.py" in them so I could run the server.
does anyone have any idea about how to run this kind of projects? PLEASE ..enter image description here
Try running,
python setup.py install
You could learn more about installing and how to integrating
django-zinnia in the link here
I'm afraid you need to have an existing project for this application.
You could start one by running
django-admin startproject project_name

Deploying a Django application in Openshift

I have a working Django application in my local machine. I tried hosting this application in Openshift, after following the Openshift official tutorial didn't get any results. Is there any proper resource to deploy local Django applications to openshift
On Openshift you can deploy Django applications using either the Django cartridge or the Python cartridge. Using the Python cartridge is often preferred as it enables you to easily install the latest version of Django using pip.
Are you using the Django or Python cartridge?
To use the Python cartridge you can follow this tutorial:
https://developers.openshift.com/en/python-getting-started.html
You mention that you already have a django application on your local machine. It can be a bit tricky to push an existing project to openshift.
If you create the application using the Python cartridge it will create a git repository for you that you then clone onto your computer. Using the website find the URI for your application repository. You should clone this onto your computer into a separate directory from your existing django project. Look into this new repository and copy the files from that repository into your existing repository. Then you can look at the remote location used in this new repository and set it as a remote in your existing django repository. Then from your existing repository push to the openshift remote using the --force flag.
$ cd /home/user
$ git clone ssh://<user_id_string>#python-yourdomain.rhcloud.com/~/git/python.git/
$ cd python
$ tree . # look at the files in the repository (wsgi.py, etc.)
$ <copy the needed files to your django dir>
$ cd ../<existing_django_dir>
$ git remote add openshift ssh://<user_id_string>#python-yourdomain.rhcloud.com/~/git/python.git/
$ git push -f openshift master
Directions on force push: Force "git push" to overwrite remote files

wso2carbon development environment - mvn eclpse:eclipse or m2ecilpse?

I have checked out the carbon 4.1.0 source code, I now want to set up the source in eclipse.
How is this normally performed by wso2 developers?
Run mvn eclipse:eclipse and import in to eclipse as standard eclipse projects
Do not run mvn eclipse:eclipse, just import into eclipse as maven projects
I presume the first option is performed as it is a more reliable approach?
Use mvn eclipse:eclipse and import all files.