testswarm

Distributed continuous integration testing for JavaScript.

  • 所有者: jquery/testswarm
  • 平台:
  • 許可證: Other
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

Build Status

TestSwarm - Distributed Continuous Integration for JavaScript

TestSwarm provides distributed continuous integration testing for
JavaScript.

The main instance monitoring jQuery core and related projects runs at
swarm.jquery.org.

Project Status

TestSwarm is still in use in projects of the jQuery Foundation, but it isn't under active development anymore. Although critical issues may be patched in the future, most open issues will remain unaddressed.

Within the jQuery Foundation, we're experimenting with alternative projects, to eventually shut down our own instance of TestSwarm:

We recommend reviewing those and other alternatives.

Quick start

Clone the repo, git clone --recursive git://github.com/jquery/testswarm.git.

Versioning

TestSwarm uses the Semantic Versioning guidelines as much as possible.

Releases will be numbered in the following format:

<major>.<minor>.<patch>

The -alpha suffix is used to indicate unreleased versions in development.

For more information on SemVer, please visit https://semver.org/.

Bug tracker

Found a bug? Please report it using our issue
tracker
!

Installation

Environmental compatibility

To run TestSwarm you will need a web server, a database server and PHP.
At the moment TestSwarm supports the following, but other configurations
may work as well.

  • Apache 2.0+, NGINX 1.2+
  • PHP 5.4+ (or PHP-FPM for NGINX)
  • MySQL 4.0+
  • cURL (for the cleanup action; see step 8)

Steps

  1. Create an empty MySQL database and create a user with read and write access to it.

  2. Copy config/sample-localSettings.php to config/localSettings.php
    Copy config/sample-localSettings.json to config/localSettings.json.
    Edit localSettings.json and replace the sample settings with your own.
    Refer to the Settings page for more information.

  3. For Apache:
    Copy config/sample-.htaccess to .htaccess.
    To run TestSwarm from a non-root directory, set web.contextpath in localSettings.json to the
    correct path from the web root and update RewriteBase in .htaccess.
    Verify that .htaccess is working properly by opening a page other than the HomePage (e.g.
    /testswarm/projects) in your browser.Required Apache configuration:

    • AllowOverride is set to All (or ensure FileInfo is included).
    • mod_rewrite installed and loaded.

    For NGINX:
    Copy config/sample-nginx.conf to /etc/nginx/sites-available.
    The file name should match your domain e.g. for swarm.example.org:
    cp config/sample-nginx.conf /etc/nginx/sites-available/swarm.example.org.conf
    Open this conf file in your editor and replace the "example" values with the correct values.
    Make sure your install is located at /var/www/testswarm
    (otherwise update the file to match the correct location).
    Now you need to link the sites-available config to the sites-enabled config:
    (replace the "swarm.example.org" with your own file name):
    ln -s /etc/nginx/sites-available/swarm.example.org.conf /etc/nginx/sites-enabled/swarm.example.org.conf
    Now make sure that php-fpm is running: /etc/init.d/php-fpm status
    if is not running start it: /etc/init.d/php-fpm start

  4. Copy config/sample-robots.txt to robots.txt
    Or, if TestSwarm is not in the root directory, add similar rules to your root robots.txt.

  5. Set storage.cacheDir to a writable directory that is not readable from the
    web. Either set it to a custom path outside the document root, or use the
    default cache directory (protected with .htaccess).Chmod it:
    chmod 777 cache.

  6. Install dependencies
    composer install --no-dev

  7. Install the TestSwarm database by running:
    php scripts/install.php

  8. Create an entry in your crontab for action=cleanup. This performs various
    cleaning duties such as making timed-out runs available again.
    * * * * * curl -s http://swarm.example.org/api.php?action=cleanup > /dev/null

  9. Create a project and submit jobs.

Get involved

You're welcome to use the GitHub issue tracker
to start discussions.

Some of us are also on Gitter at jquery/dev.

Documentation

See LICENSE.txt.

History

TestSwarm was originally created by John Resig as a
basic tool to support unit testing of the jQuery JavaScript
library
. It later become a Mozilla Labs project,
and has since moved again to become a jQuery Foundation project.

主要指標

概覽
名稱與所有者jquery/testswarm
主編程語言PHP
編程語言PHP (語言數: 3)
平台
許可證Other
所有者活动
創建於2009-02-03 22:17:23
推送於2024-10-11 02:26:21
最后一次提交
發布數4
最新版本名稱v1.1.0 (發布於 2018-06-04 01:06:36)
第一版名稱v0.1.0 (發布於 )
用户参与
星數1k
關注者數40
派生數154
提交數827
已啟用問題?
問題數219
打開的問題數2
拉請求數52
打開的拉請求數0
關閉的拉請求數55
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?