Meego Wiki
Views

Getting started with OBS

From MeeGo wiki
(Difference between revisions)
Jump to: navigation, search
m (Pre-requisites: Formatting)
m (Adding files to a sub-project and building them: Minor tweaks)
Line 24: Line 24:
==Adding files to a sub-project and building them==
==Adding files to a sub-project and building them==
-
From the terminal:
+
===From the terminal===
-
* Checkout your empty project (like SVN)
+
* Checkout (like SVN) your home project, which will contain your newly created sub-project
   osc -A https://api.pub.meego.com co home:[username]
   osc -A https://api.pub.meego.com co home:[username]
* Add files to your local copy
* Add files to your local copy
-
** For Meego this will be a .spec file and a tarball containing your source code, etc.
+
** For MeeGo this will be a .spec file and a tarball containing your source code, etc.
-
** For Harmattan this will be a .dsc file, source tarball plus debian.tar.gz (this allows one to keep the debian directory out of the source)
+
** For Harmattan this will be a <code>.dsc</code> file, source tarball and <code>debian.tar.gz</code> (this allows one to keep the debian directory out of the source)
   osc -A https://api.pub.meego.com add [filename]
   osc -A https://api.pub.meego.com add [filename]
Line 38: Line 38:
At this point the OBS will try to build your project remotely. You can also build locally by doing <code>osc build</code>
At this point the OBS will try to build your project remotely. You can also build locally by doing <code>osc build</code>
-
Using the webinterface:
+
===Using the webinterface===
* Add the correct files as listed above and they will be automatically built for you
* Add the correct files as listed above and they will be automatically built for you

Revision as of 14:23, 22 June 2011

The Meego Online Build System (OBS) seems rather complicated, this page will attempt to make it nice and easy to get started.

It's a work in progress, feel free to add and modify!


Contents

Pre-requisites

  • You need a meego.com login to be able to access the OBS
  • You need to be running one of the supported OSes
  • Install osc (for example, apt-get install osc may work out-of-the-box on recent versions of Ubuntu & Debian, other repositories are available on openSUSE tools)

Setting up your home project

Your home project is like a home directory in which you can create sub-projects, repositories, etc.


Setting up a sub-project

  • In the overview tab, click on Actions and select "Create subproject".

Adding files to a sub-project and building them

From the terminal

  • Checkout (like SVN) your home project, which will contain your newly created sub-project
 osc -A https://api.pub.meego.com co home:[username]
  • Add files to your local copy
    • For MeeGo this will be a .spec file and a tarball containing your source code, etc.
    • For Harmattan this will be a .dsc file, source tarball and debian.tar.gz (this allows one to keep the debian directory out of the source)
 osc -A https://api.pub.meego.com add [filename]
  • Commit the files
 osc -A https://api.pub.meego.com commit

At this point the OBS will try to build your project remotely. You can also build locally by doing osc build

Using the webinterface

  • Add the correct files as listed above and they will be automatically built for you
Personal tools