require 'bundler/gem_tasks' require 'rake/clean' begin require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) do |spec| spec_out = ENV['SPEC_OUT'] || '../spec-output/helix_web_services_specs.html' spec.rspec_opts = "--format html --out #{File.absolute_path(spec_out, __FILE__)}" end rescue LoadError end begin require 'yard' YARD::Rake::YardocTask.new do |t| t.files = ['lib/**/*'] t.options = ['-o', File.absolute_path('../doc-output', __FILE__), '-m', 'markdown'] end rescue LoadError end desc 'Create lib/helix_web_services/build_version.rb' task :build_version do is_production = ENV['PRODUCTION'] == 'true' product = 'HWS' arch = 'NOARCH' branch = ENV['BRANCH'] || 'DEV' year_rev_base = '2015.1' year_rev = is_production ? year_rev_base : "#{year_rev_base}.#{branch}" changelist = ENV['P4_CHANGELIST'] # Currently, the Jenkins 'p4' plugin doesn't expose the changelist to the # environment. So use the UTC timestamp. We'll use daily builds for the time # being. if changelist.nil? changelist = Time.now.utc.strftime('%Y%m%d%H%M') end #ruby_version = is_production ? "#{year_rev_base}.#{changelist}" : "#{year_rev_base}.0.#{branch}#{changelist}" product_id = "#{product}/#{arch}/#{year_rev}/#{changelist}" IO.write('lib/helix_web_services/build_version.rb', <<-END.gsub(/^[ ]{4}/, '') module HelixWebServices PRODUCT_ID = '#{product_id}' end END ) end
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#2 | 16024 | Doug Scheirer | Some cloud spec forking, got the mock_raymond to spin up in cloud testing, split normal vs cloud spec output | ||
#1 | 15688 | Doug Scheirer |
Populate -o //guest/perforce_software/helix-web-services/... //guest/doug_scheirer/helix-web-services/.... |
||
//guest/perforce_software/helix-web-services/main/source/helix_web_services/Rakefile | |||||
#3 | 15668 | tjuricek | Default to using a timestamp when the changelist is not available. | ||
#2 | 15660 | tjuricek | Altering how the build_version.rb gets generated, and not requiring it at the moment. | ||
#1 | 15622 | tjuricek |
Move source code to 'source/' subdirectory of branch. build/ will remain where it is. |
||
//guest/perforce_software/helix-web-services/main/helix_web_services/Rakefile | |||||
#11 | 15618 | tjuricek |
By default, writing spec results to spec-output, docs to doc-output. The archiving in a 'build' branch will be handled by the CD pipeline. |
||
#10 | 15589 | tjuricek | Update path to test output and update docs. | ||
#9 | 15588 | tjuricek | Write test output to build directory and correct reference to 'all:doc' task | ||
#8 | 15513 | tjuricek |
Add a product ID header for debugging purposes. This will generally display INVALID unless the version file has been created during the build. |
||
#7 | 15032 | tjuricek |
Starting config and doc revisions. System is now broken while revisions underway. Configuration of the p4d connection is now done via a single HWSSettings middleware object injected into the Rack env. The HWSP4Cleanup middleware now cleans up any p4 injected into the Rack env. The Auth::App class now mostly just contains one method to generate a p4 ticket. /auth/v1/login. Added yard documentation for the main project. Yard docs have been reconfigured to dump into build/ directories. This should probably be done with each release. Hm... The top level rake file contains a task, 'all:doc', to update our documentation. This should probably be run for each checkin. Hm... Specs are now using Rack::Test on top of a 'live' p4d. I'd suggest you still use the p4util mechanism, which now dumps to a /tmp folder, so we can safely add P4IGNORE rules back into your local .p4config file. Old 'perforce' application now called 'helix_versioning_engine'. Removing cache data. Helix Sync may be slow. It may also get axed. We'll see. |
||
#6 | 14841 | tjuricek |
Add *very basic* shell script wrappers to configure and launch the unicorn server. hws_configure: post-install script to setup or migrate the DB helix_web_services: bash script to point out the embedded Ruby setup This is far from complete, just the next step in getting to a basic package-based deployment. |
||
#5 | 14192 | tjuricek |
Starting work on running tests via the command line again. The current system seems to run into problems with local .p4config settings. I'm investigating workarounds. We may need to move "working folders" into a location outside of this tree by default. |
||
#4 | 14054 | tjuricek |
Allowing the Qt client to select 'all' vs 'my' projects. Right now, it should default to using "my" projects as a rule. |
||
#3 | 13891 | tjuricek |
Added a 'member' concept to projects. members is the start of a basic project 'role' definition. In Helix sync, this is mostly just used to indicate this is a "my Project" in the UI and a project member can have the ability to leave the project or add someone else. Eventually, we expect "members" to mean more, like, is part of a group that has write access to the files of the project. But that sort of definition is very TBD. |
||
#2 | 13846 | tjuricek | Setup development rules for creating/initializing PostgreSQL, and updated some of the ProjectService specs. | ||
#1 | 13799 | tjuricek |
Start with branch specs hosting in a new monolithic 'helix web services' project. Converting from a microservice to a monolithic architecture due to resource constraints at getting a deployable system running. Additionally, since it's not expected that people will upgrade often, the major benefit of microservices - being able to add services individually without affecting others - is not really a major benefit. The Ruby SDK will be consolidated into a single 'helix web services client' project. It may end up being distributed via Rubygems. This only runs branch specs at the moment. I want to get a CD pipeline setup for the monolithic server before revising more methods. |