GithubHelp home page GithubHelp logo

testtracker's Introduction

TestTracker

Track Perl module and test relationships so you can guess what are the best tests to run.

Building the Ubuntu Lucid Package

These notes are a work in progress and specific to my environment. PSEUDO CODE:

SRC_VERSION="0.006"
PKG_VERSION="$SRC_VERSION-1"
DISTRO="ubuntu-lucid"

dzil release
rm -rf TestTracker-$SRC_VERSION # Removed "temp" directory...
mv TestTracker-$SRC_VERSION.tar.gz /tmp/
git tag -a -m '' v$SRC_VERSION # If you don't upload the release we still need to tag...

# import the dist using git-buildpackage
git checkout $DISTRO
git-import-orig /tmp/TestTracker-$SRC_VERSION.tar.gz
rm -f /tmp/TestTracker-$SRC_VERSION.tar.gz

# update the changelog
dch -v $PKG_VERSION
git commit -m "Updated changelog for $PKG_VERSION." debian/changelog
git tag -a -m "" $DISTRO/$PKG_VERSION
git push --all
git push --tags

# build package
ssh vmpool39
PKG_VERSION=$PKG_VERSION
cd ~/git-buildpackage/TestTracker
git pull --ff-only
git-buildpackage -us -uc -S
rm -rf ~/sbuild/build/*
cd ..
sbuild --source --dist=lucid-amd64 --arch-all libtesttracker-perl_$PKG_VERSION.dsc
rsync -av --delete /home/vmuser/sbuild/build/ nnutter@linus43:~/pkg/
logout

# Test package locally.
dpkg -i ~/pkg/libtesttracker-perl_$PKG_VERSION*.deb

# Push package to repo.
cd ~/pkg
tgi-dput libtesttracker-perl_$PKG_VERSION*.changes

SCHEMA

For Postgres, assuming a test_tracker_admin owns the database and a test_tracker user for running TestTracker:

CREATE TABLE test_tracker.test (
  id SERIAL,
  name text,
  duration integer,
  PRIMARY KEY (id)
);
CREATE TABLE test_tracker.module (
  id SERIAL,
  name text,
  PRIMARY KEY (id)
);
CREATE TABLE test_tracker.module_test (
  module_id integer,
  test_id integer,
  FOREIGN KEY (module_id) REFERENCES test_tracker.module(id),
  FOREIGN KEY (test_id) REFERENCES test_tracker.test(id)
);

CREATE INDEX idx_test_tracker_module_name ON test_tracker.module ("name");
CREATE INDEX idx_test_tracker_test_name ON test_tracker.test ("name");
CREATE INDEX idx_test_tracker_test_duration ON test_tracker.test ("duration");
CREATE INDEX idx_test_tracker_module_test_module_id ON test_tracker.module_test ("module_id");
CREATE INDEX idx_test_tracker_module_test_test_id ON test_tracker.module_test ("test_id");

GRANT USAGE ON SCHEMA test_tracker TO test_tracker;
GRANT USAGE ON ALL SEQUENCES IN SCHEMA test_tracker TO test_tracker;
GRANT SELECT, INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA test_tracker TO test_tracker;

testtracker's People

Contributors

brummett avatar davidlmorton avatar nnutter avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.