Initial CI checkin
This commit is contained in:
Родитель
3917fc6df1
Коммит
66cb243c93
|
@ -0,0 +1,50 @@
|
|||
*.doc diff=astextplain
|
||||
*.DOC diff=astextplain
|
||||
*.docx diff=astextplain
|
||||
*.DOCX diff=astextplain
|
||||
*.dot diff=astextplain
|
||||
*.DOT diff=astextplain
|
||||
*.pdf diff=astextplain
|
||||
*.PDF diff=astextplain
|
||||
*.rtf diff=astextplain
|
||||
*.RTF diff=astextplain
|
||||
|
||||
*.jpg binary
|
||||
*.png binary
|
||||
*.gif binary
|
||||
|
||||
*.cs text=auto diff=csharp
|
||||
*.vb text=auto
|
||||
*.resx text=auto
|
||||
*.c text=auto
|
||||
*.cpp text=auto
|
||||
*.cxx text=auto
|
||||
*.h text=auto
|
||||
*.hxx text=auto
|
||||
*.py text=auto
|
||||
*.rb text=auto
|
||||
*.java text=auto
|
||||
*.html text=auto
|
||||
*.htm text=auto
|
||||
*.css text=auto
|
||||
*.scss text=auto
|
||||
*.sass text=auto
|
||||
*.less text=auto
|
||||
*.js text=auto
|
||||
*.lisp text=auto
|
||||
*.clj text=auto
|
||||
*.sql text=auto
|
||||
*.php text=auto
|
||||
*.lua text=auto
|
||||
*.m text=auto
|
||||
*.asm text=auto
|
||||
*.erl text=auto
|
||||
*.fs text=auto
|
||||
*.fsx text=auto
|
||||
*.hs text=auto
|
||||
|
||||
*.csproj text=auto
|
||||
*.vbproj text=auto
|
||||
*.fsproj text=auto
|
||||
*.dbproj text=auto
|
||||
*.sln text=auto eol=crlf
|
|
@ -0,0 +1,27 @@
|
|||
language: csharp
|
||||
sudo: required
|
||||
dist: trusty
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- gettext
|
||||
- unzip
|
||||
- curl
|
||||
- libcurl4-openssl-dev
|
||||
- libicu-dev
|
||||
- libssl-dev
|
||||
- libunwind8
|
||||
- uuid-dev
|
||||
- zlib1g
|
||||
os:
|
||||
- linux
|
||||
- osx
|
||||
osx_image: xcode7.1
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
- dev
|
||||
script:
|
||||
- ./scripts/travis_install.sh
|
||||
- ./scripts/travis_build.sh
|
||||
- ./scripts/travis_test.sh
|
|
@ -0,0 +1,45 @@
|
|||
version: '1.0.0-{branch}-{scripts}'
|
||||
init:
|
||||
- git config --global core.autocrlf true
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
- dev
|
||||
install:
|
||||
- scripts\appveyor_install.cmd
|
||||
test_script:
|
||||
- scripts\appveyor_tests.cmd
|
||||
cache:
|
||||
- C:\Users\appveyor\.dnx
|
||||
scripts_script:
|
||||
- scripts\appveyor_scripts.cmd
|
||||
artifacts:
|
||||
- path: 'src\SteelToe.Extensions.Configuration.ConfigServer\bin\Release\*.nupkg'
|
||||
- path: 'src\SteelToe.Extensions.Configuration.CloudFoundry\bin\Release\*.nupkg'
|
||||
deploy:
|
||||
- provider: NuGet
|
||||
skip_symbols: true
|
||||
artifact: /.*\.nupkg/
|
||||
server: https://www.myget.org/F/steeltoemaster/api/v2/package
|
||||
api_key:
|
||||
secure: 246ApObnMYYvzDo9Ki72CxxuKfuoqYbrbUK2HLevGIGHXYY6f0OkAdE3EWCwNJ7g
|
||||
on:
|
||||
branch: master
|
||||
appveyor_repo_tag: false
|
||||
- provider: NuGet
|
||||
skip_symbols: true
|
||||
artifact: /.*\.nupkg/
|
||||
server: https://www.myget.org/F/steeltoedev/api/v2/package
|
||||
api_key:
|
||||
secure: 246ApObnMYYvzDo9Ki72CxxuKfuoqYbrbUK2HLevGIGHXYY6f0OkAdE3EWCwNJ7g
|
||||
on:
|
||||
branch: dev
|
||||
appveyor_repo_tag: false
|
||||
- provider: NuGet
|
||||
skip_symbols: true
|
||||
artifact: /.*\.nupkg/
|
||||
api_key:
|
||||
secure: RGkpu8xIMDC75IAd1qPRdueeTaYj+ddW2bNEw8S7e81940ELu+WV04uWAzqV34/C
|
||||
on:
|
||||
branch: master
|
||||
appveyor_repo_tag: true
|
|
@ -0,0 +1,25 @@
|
|||
:: @ECHO OFF
|
||||
:: Target (x64 CLR)
|
||||
call dnvm use 1.0.0-rc1-update1 -a x64 -r clr
|
||||
|
||||
:: Patch project.json files
|
||||
cd %APPVEYOR_BUILD_FOLDER%\build
|
||||
call npm install
|
||||
call node patch-project-json.js ../src/SteelToe.Extensions.Configuration.CloudFoundry/project.json %APPVEYOR_BUILD_VERSION% %APPVEYOR_REPO_TAG_NAME%
|
||||
call node patch-project-json.js ../src/SteelToe.Extensions.Configuration.ConfigServer/project.json %APPVEYOR_BUILD_VERSION% %APPVEYOR_REPO_TAG_NAME%
|
||||
cd %APPVEYOR_BUILD_FOLDER%
|
||||
|
||||
:: Restore packages
|
||||
cd src
|
||||
call dnu restore
|
||||
cd ..\test
|
||||
call dnu restore
|
||||
cd ..
|
||||
|
||||
:: Build packages
|
||||
cd src\SteelToe.Extensions.Configuration.CloudFoundry
|
||||
call dnu pack --configuration Release
|
||||
cd %APPVEYOR_BUILD_FOLDER%
|
||||
cd src\SteelToe.Extensions.Configuration.ConfigServer
|
||||
call dnu pack --configuration Release
|
||||
cd %APPVEYOR_BUILD_FOLDER%
|
|
@ -0,0 +1,11 @@
|
|||
@ECHO OFF
|
||||
:: Install (x64 CLR)
|
||||
call dnvm install 1.0.0-rc1-update1 -a x64 -r clr
|
||||
:: Install & target (x86 CLR)
|
||||
call dnvm install 1.0.0-rc1-update1 -a x86 -r clr
|
||||
:: Install & target (x64 CoreCLR)
|
||||
call dnvm install 1.0.0-rc1-update1 -a x64 -r coreclr
|
||||
:: Install & target (x86 CoreCLR)
|
||||
call dnvm install 1.0.0-rc1-update1 -a x86 -r coreclr
|
||||
:: For patching project.json's
|
||||
call npm install jsonfile -g
|
|
@ -0,0 +1,45 @@
|
|||
@ECHO OFF
|
||||
|
||||
:: Target (x64 CLR)
|
||||
call dnvm use 1.0.0-rc1-update1 -a x64 -r clr
|
||||
|
||||
:: Run unit tests (x64 CLR)
|
||||
cd test\SteelToe.Extensions.Configuration.CloudFoundry.Test
|
||||
dnx test
|
||||
cd ..\..
|
||||
cd test\SteelToe.Extensions.Configuration.ConfigServer.Test
|
||||
dnx test
|
||||
cd ..\..
|
||||
|
||||
:: Target (x86 CLR)
|
||||
call dnvm use 1.0.0-rc1-update1 -a x86 -r clr
|
||||
|
||||
:: Run unit tests (x86 CLR)
|
||||
cd test\SteelToe.Extensions.Configuration.CloudFoundry.Test
|
||||
dnx test
|
||||
cd ..\..
|
||||
cd test\SteelToe.Extensions.Configuration.ConfigServer.Test
|
||||
dnx test
|
||||
cd ..\..
|
||||
|
||||
:: Target (x64 CoreCLR)
|
||||
call dnvm use 1.0.0-rc1-update1 -a x64 -r coreclr
|
||||
|
||||
:: Run unit tests (x64 CoreCLR)
|
||||
cd test\SteelToe.Extensions.Configuration.CloudFoundry.Test
|
||||
dnx test
|
||||
cd ..\..
|
||||
cd test\SteelToe.Extensions.Configuration.ConfigServer.Test
|
||||
dnx test
|
||||
cd ..\..
|
||||
|
||||
:: Target (x86 CoreCLR)
|
||||
call dnvm use 1.0.0-rc1-update1 -a x86 -r coreclr
|
||||
|
||||
:: Run unit tests (x86 CoreCLR)
|
||||
cd test\SteelToe.Extensions.Configuration.CloudFoundry.Test
|
||||
dnx test
|
||||
cd ..\..
|
||||
cd test\SteelToe.Extensions.Configuration.ConfigServer.Test
|
||||
dnx test
|
||||
cd ..\..
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"name": "patch-project-json",
|
||||
"version": "0.0.2",
|
||||
"private": true,
|
||||
"description": "Patches the version number on .NET Core project.json files",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": ""
|
||||
},
|
||||
"main": "patch-project-json.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"dependencies": {
|
||||
"jsonfile": "^2.2.3"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,33 @@
|
|||
var jsonfile = require('jsonfile');
|
||||
|
||||
// Read in the file to be patched
|
||||
var file = process.argv[2]; // e.g. '../src/MyProject/project.json'
|
||||
if (!file)
|
||||
console.log("No filename provided");
|
||||
console.log("File: " + file);
|
||||
|
||||
// Read in the build version (this is provided by the CI server)
|
||||
var version = process.argv[3]; // e.g. '1.0.0-master-10'
|
||||
var tag = process.argv[4]; // e.g. '', or '1.0.0-rc1'
|
||||
|
||||
if (!version)
|
||||
console.log("No version provided");
|
||||
|
||||
if (tag) {
|
||||
// Turn version into tag + '-' + buildnumber
|
||||
var lastDash = version.lastIndexOf("-");
|
||||
var buildNumber = version.substring(lastDash + 1, version.length);
|
||||
version = tag + '-' + buildNumber;
|
||||
}
|
||||
|
||||
jsonfile.readFile(file, function (err, project) {
|
||||
|
||||
console.log("Version: " + version);
|
||||
|
||||
// Patch the project.version
|
||||
project.version = version;
|
||||
jsonfile.writeFile(file, project, {spaces: 2}, function(err) {
|
||||
if (err)
|
||||
console.error(err);
|
||||
});
|
||||
})
|
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
source /home/travis/.dnx/dnvm/dnvm.sh
|
||||
dnvm use 1.0.0-rc1-update1 -a x64 -r coreclr
|
||||
cd src
|
||||
dnu restore
|
||||
cd ../test
|
||||
dnu restore
|
||||
cd ..
|
||||
cd src/SteelToe.Extensions.Configuration.CloudFoundry
|
||||
dnu pack --framework dnxcore50 --configuration Release
|
||||
cd ../..
|
||||
cd src/SteelToe.Extensions.Configuration.ConfigServer
|
||||
dnu pack --framework dnxcore50 --configuration Release
|
||||
cd ../..
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
curl -sSL https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.sh | DNX_BRANCH=dev sh && source ~/.dnx/dnvm/dnvm.sh
|
||||
dnvm install 1.0.0-rc1-update1 -a x64 -r coreclr
|
|
@ -0,0 +1,24 @@
|
|||
#!/bin/bash
|
||||
source /home/travis/.dnx/dnvm/dnvm.sh
|
||||
|
||||
# Target (x64 CoreCLR)
|
||||
dnvm use 1.0.0-rc1-update1 -a x64 -r coreclr
|
||||
|
||||
# Run unit tests (x64 CoreCLR)
|
||||
cd test/SteelToe.Extensions.Configuration.CloudFoundry.Test
|
||||
dnx test
|
||||
cd ../..
|
||||
cd test/SteelToe.Extensions.Configuration.ConfigServer.Test
|
||||
dnx test
|
||||
cd ../..
|
||||
|
||||
# Target (x86 CoreCLR)
|
||||
# dnvm use 1.0.0-rc1-update1 -a x86 -r coreclr
|
||||
|
||||
# Run unit tests (x86 CoreCLR)
|
||||
# cd test/SteelToe.Extensions.Configuration.CloudFoundry.Test
|
||||
# dnx test
|
||||
# cd ../..
|
||||
# cd test/SteelToe.Extensions.Configuration.ConfigServer.Test
|
||||
# dnx test
|
||||
# cd ../..
|
|
@ -1,15 +1,22 @@
|
|||
{
|
||||
{
|
||||
"version": "1.0.0",
|
||||
"description": "ASP.NET 5 CloudFoundry Environment Variable Configuration Provider",
|
||||
"authors": [ "Pivotal", "dtillman" ],
|
||||
"tags": [ "CloudFoundry", "ASPNET5", "Spring", "Spring Cloud" ],
|
||||
"authors": [
|
||||
"Pivotal",
|
||||
"dtillman"
|
||||
],
|
||||
"tags": [
|
||||
"CloudFoundry",
|
||||
"ASPNET5",
|
||||
"Spring",
|
||||
"Spring Cloud"
|
||||
],
|
||||
"projectUrl": "http://steeltoe.io",
|
||||
"licenseUrl": "http://www.apache.org/licenses/LICENSE-2.0",
|
||||
"copyright": "Copyright 2015 the original authors",
|
||||
"frameworks": {
|
||||
"net451": {
|
||||
"dependencies": {
|
||||
}
|
||||
"dependencies": {}
|
||||
},
|
||||
"dnxcore50": {
|
||||
"dependencies": {
|
||||
|
@ -27,4 +34,3 @@
|
|||
"Newtonsoft.Json": "7.0.1"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,15 +1,22 @@
|
|||
{
|
||||
{
|
||||
"version": "1.0.0",
|
||||
"description": "ASP.NET 5 Spring Cloud Config Server Configuration Provider",
|
||||
"authors": [ "Pivotal", "dtillman" ],
|
||||
"tags": [ "ASPNET5", "Spring", "Spring Cloud", "Spring Cloud Config Server" ],
|
||||
"authors": [
|
||||
"Pivotal",
|
||||
"dtillman"
|
||||
],
|
||||
"tags": [
|
||||
"ASPNET5",
|
||||
"Spring",
|
||||
"Spring Cloud",
|
||||
"Spring Cloud Config Server"
|
||||
],
|
||||
"projectUrl": "http://steeltoe.io",
|
||||
"licenseUrl": "http://www.apache.org/licenses/LICENSE-2.0",
|
||||
"copyright": "Copyright 2015 the original authors",
|
||||
"frameworks": {
|
||||
"net451": {
|
||||
"dependencies": {
|
||||
}
|
||||
"dependencies": {}
|
||||
},
|
||||
"dnxcore50": {
|
||||
"dependencies": {
|
||||
|
|
Загрузка…
Ссылка в новой задаче