Rakefile
author Jan Vrany <jan.vrany@fit.cvut.cz>
Tue, 02 Jan 2018 10:25:15 +0000
branchstx-8.0.0
changeset 212 6899f0183a0d
parent 130 834bf4be5407
child 296 11c9383642c1
permissions -rw-r--r--
Rakefiles: distribute demos in the "toy" archive ...so people can have a look. Beware that these demos are not maintained even by eXept and many, many of them are actually broken or depend on some obscure packages that are not maintained. Too bad. See https://swing.fit.cvut.cz/projects/stx-jv/ticket/189

$:.push('.')
require 'rakelib/support.rb'

import 'rakelib/info.rake'
import 'rakelib/setup.rake'
import 'rakelib/checkout.rake'
import 'rakelib/compile.rake'
import 'rakelib/test.rake'
import 'rakelib/install.rake'
import 'rakelib/dist-jv.rake'
import 'rakelib/clean.rake'
import 'rakelib/workflow.rake'

# Automatically perform task :'setup' to create and define
# tasks based on current spec. This allows user to invoke
# generated tasks manually without having to manually run
# task `setup`
Rake.application.load_imports()
Rake::Task[:'setup'].invoke()


desc "Fetch sources and compiles project (default task)"
task :'default' => [ :'setup', :'checkout', :'compile' ]

task :'pre'

task :'post'                  

task :'jenkins:job' => [ :'setup', :'checkout', :'update', :'compile', :'test', :'lint', :'artifacts' ]

desc "Run interactive Ruby shell with project loaded and all tasks defined"
task :'shell' => [:'setup' ] do 
  begin
    require 'pry'
    begin
      require 'pry-byebug'
    rescue LoadError
      warn("`pry-byebug` not installed, run `gem install pry-byebug` to install it")
    end
    binding.pry
  rescue LoadError 
    error("`pry` not installed, run `gem install pry` to install it")
  end
end