Compare commits

...

3 Commits

Author SHA1 Message Date
Tommy Parnell
1625f787d2 build things 2016-07-02 13:25:30 -07:00
Tommy Parnell
b0825b8339 minor build bug 2016-07-01 00:49:05 -07:00
Tommy Parnell
a5af6f4886 fix publish syntax 2016-07-01 00:23:51 -07:00
3 changed files with 8 additions and 29 deletions

View File

@@ -1,26 +0,0 @@
GEM
remote: http://rubygems.org/
specs:
albacore (2.0.4)
map (~> 6.5)
nokogiri (~> 1.5)
rake (> 10)
semver2 (~> 3.4)
map (6.6.0)
mini_portile2 (2.0.0)
nokogiri (1.6.7.2-x64-mingw32)
mini_portile2 (~> 2.0.0.rc2)
os (0.9.6)
rake (11.1.1)
semver2 (3.4.2)
PLATFORMS
x64-mingw32
DEPENDENCIES
albacore
nokogiri
os
BUNDLED WITH
1.12.1

View File

@@ -16,6 +16,7 @@ TOOLS = File.expand_path("tools")
NUGET = File.expand_path("#{TOOLS}/nuget")
NUGET_EXE = File.expand_path("#{TOOLS}/nuget/nuget.exe")
@version = ENV['APPVEYOR_REPO_TAG_NAME'] || '0.0.1-alpha1'
@version = @version.sub "v", ""
PROJECTS = Dir.glob('src/*').select{|dir| File.directory? dir }
desc 'Retrieve things'
@@ -63,15 +64,18 @@ end
desc 'publish nugets'
task :nuspec_publish do
if ENV['APPVEYOR_REPO_TAG'] != 'true'
repoTag = ENV['APPVEYOR_REPO_TAG']
nugetKey = ENV['NUGET_KEY']
puts nugetKey
if repoTag != 'true';
puts 'not publishing since APPVEYOR_REPO_TAG has not been set. Please add a github tag'
else
PROJECTS.each{|dir|
Dir.chdir(dir) do
sh "#{NUGET_EXE} push #{FileList["*.nupkg"].first} -ApiKey #{NUGET_KEY}"
sh "#{NUGET_EXE} push #{FileList["*.nupkg"].first} -ApiKey #{nugetKey}"
end
}
sh "#{NUGET_EXE} push #{FileList["*.nupkg"].first} -ApiKey #{NUGET_KEY}"
sh "#{NUGET_EXE} push #{FileList["*.nupkg"].first} -ApiKey #{nugetKey}"
end

View File

@@ -3,6 +3,7 @@ nuget:
project_feed: true
install:
- set PATH=C:\Ruby22\bin;%PATH%
- set
- bundle install
build_script:
- rake publish