vx-builder 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +3 -1
- data/lib/vx/builder/configuration.rb +1 -1
- data/lib/vx/builder/helper/vxvm_install.rb +19 -0
- data/lib/vx/builder/script_builder/base.rb +1 -0
- data/lib/vx/builder/script_builder/cache.rb +1 -1
- data/lib/vx/builder/script_builder/go.rb +5 -8
- data/lib/vx/builder/script_builder/prepare.rb +2 -2
- data/lib/vx/builder/script_builder/ruby.rb +5 -19
- data/lib/vx/builder/version.rb +1 -1
- data/lib/vx/builder.rb +2 -1
- data/spec/fixtures/integration/go/language/after_script.sh +4 -4
- data/spec/fixtures/integration/go/language/before_script.sh +25 -25
- data/spec/fixtures/integration/ruby/deploy/after_script.sh +15 -0
- data/spec/fixtures/integration/ruby/deploy/before_script.sh +70 -0
- data/spec/fixtures/integration/ruby/deploy/script.sh +8 -0
- data/spec/fixtures/integration/ruby/language/after_script.sh +5 -5
- data/spec/fixtures/integration/ruby/language/before_script.sh +23 -22
- data/spec/fixtures/integration/ruby/matrix/0.after_script.sh +5 -5
- data/spec/fixtures/integration/ruby/matrix/0.before_script.sh +23 -22
- data/spec/fixtures/integration/ruby/matrix/1.after_script.sh +5 -5
- data/spec/fixtures/integration/ruby/matrix/1.before_script.sh +23 -22
- data/spec/fixtures/integration/ruby/matrix/d.after_script.sh +4 -4
- data/spec/fixtures/integration/ruby/matrix/d.before_script.sh +23 -22
- data/spec/fixtures/vx_test_repo_insecure_key +27 -0
- data/spec/fixtures/vx_test_repo_insecure_key.pub +1 -0
- data/spec/integration/clojure_spec.rb +42 -0
- data/spec/integration/go_spec.rb +49 -17
- data/spec/integration/ruby_spec.rb +82 -78
- data/spec/lib/builder/script_builder/prepare_spec.rb +29 -27
- data/spec/lib/builder/task_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -0
- data/spec/support/create.rb +5 -5
- metadata +14 -9
- data/spec/fixtures/insecure_private_key +0 -27
- data/spec/fixtures/integration/ruby/deploy/d.after_script.sh +0 -14
- data/spec/fixtures/integration/ruby/deploy/d.before_script.sh +0 -69
- data/spec/fixtures/integration/ruby/deploy/d.script.sh +0 -8
@@ -9,40 +9,41 @@ export CI_JOB_ID=1
|
|
9
9
|
export CI_JOB_NUMBER=100
|
10
10
|
export CI_BUILD_ID=12
|
11
11
|
export CI_BUILD_NUMBER=101
|
12
|
-
export CI_PROJECT_NAME=
|
13
|
-
export CI_BUILD_SHA=
|
14
|
-
export CI_BRANCH=
|
12
|
+
export CI_PROJECT_NAME=vexor/vx-test-repo
|
13
|
+
export CI_BUILD_SHA=8f53c077072674972e21c82a286acc07fada91f5
|
14
|
+
export CI_BRANCH=test/pull-request
|
15
15
|
export VX_ROOT=$(pwd)
|
16
16
|
export PATH=$VX_ROOT/bin:$PATH
|
17
17
|
mkdir -p $VX_ROOT/bin
|
18
|
-
mkdir -p ${VX_ROOT}/data/
|
19
|
-
mkdir -p ${VX_ROOT}/code/
|
20
|
-
(echo
|
21
|
-
chmod 0600 ${VX_ROOT}/data/
|
22
|
-
export VX_PRIVATE_KEY=${VX_ROOT}/data/
|
23
|
-
(echo
|
24
|
-
chmod 0750 ${VX_ROOT}/data/
|
25
|
-
export GIT_SSH=${VX_ROOT}/data/
|
26
|
-
echo "$ git clone --depth=50 --branch=
|
27
|
-
git clone --depth=50 --branch=
|
28
|
-
echo "$ git checkout -qf
|
29
|
-
( cd ${VX_ROOT}/code/
|
18
|
+
mkdir -p ${VX_ROOT}/data/vexor/vx-test-repo
|
19
|
+
mkdir -p ${VX_ROOT}/code/vexor/vx-test-repo
|
20
|
+
(echo LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQpNSUlFcEFJQkFBS0NBUUVBcE1rYW0rbWh3Q2RDUWRxdHU3VTlwNVZSRm1rcmJpOUhhQTN2YWdwaE12eXJ5V3F4CkM5c1krYW44akNOUlVwZWx5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
+
chmod 0600 ${VX_ROOT}/data/vexor/vx-test-repo/key
|
22
|
+
export VX_PRIVATE_KEY=${VX_ROOT}/data/vexor/vx-test-repo/key
|
23
|
+
(echo IyEvYmluL3NoCmV4ZWMgL3Vzci9iaW4vc3NoIC1BIC1vIExvZ0xldmVsPXF1aWV0IC1vIFN0cmljdEhvc3RLZXlDaGVja2luZz1ubyAtbyBVc2VyS25vd25Ib3N0c0ZpbGU9L2Rldi9udWxsIC1pICR7VlhfUk9PVH0vZGF0YS92ZXhvci92eC10ZXN0LXJlcG8va2V5ICRACg== | base64 --decode) > ${VX_ROOT}/data/vexor/vx-test-repo/git_ssh
|
24
|
+
chmod 0750 ${VX_ROOT}/data/vexor/vx-test-repo/git_ssh
|
25
|
+
export GIT_SSH=${VX_ROOT}/data/vexor/vx-test-repo/git_ssh
|
26
|
+
echo "$ git clone --depth=50 --branch=test/pull-request git@github.com:vexor/vx-test-repo.git ${VX_ROOT}/code/vexor/vx-test-repo"
|
27
|
+
git clone --depth=50 --branch=test/pull-request git@github.com:vexor/vx-test-repo.git ${VX_ROOT}/code/vexor/vx-test-repo
|
28
|
+
echo "$ git checkout -qf 8f53c077072674972e21c82a286acc07fada91f5"
|
29
|
+
( cd ${VX_ROOT}/code/vexor/vx-test-repo && git checkout -qf 8f53c077072674972e21c82a286acc07fada91f5 ) || exit 1
|
30
30
|
unset GIT_SSH
|
31
31
|
echo "starting SSH Agent"
|
32
32
|
eval "$(ssh-agent)" > /dev/null
|
33
33
|
ssh-add $VX_PRIVATE_KEY 2> /dev/null
|
34
|
-
cd ${VX_ROOT}/code/
|
34
|
+
cd ${VX_ROOT}/code/vexor/vx-test-repo
|
35
35
|
echo "download latest version of vxvm"
|
36
|
-
curl --fail --silent --show-error https://raw.githubusercontent.com/vexor/vx-packages/master/vxvm
|
36
|
+
curl --tcp-nodelay --retry 3 --fail --silent --show-error -o $VX_ROOT/bin/vxvm https://raw.githubusercontent.com/vexor/vx-packages/master/vxvm
|
37
37
|
chmod +x $VX_ROOT/bin/vxvm
|
38
|
-
export CASHER_DIR=$HOME/.casher && ( mkdir -p $CASHER_DIR/bin && /usr/bin/curl https://raw2.github.com/dima-exe/casher/master/bin/casher -
|
39
|
-
test -f $HOME/.casher/bin/casher &&
|
40
|
-
test -f $HOME/.casher/bin/casher &&
|
38
|
+
export CASHER_DIR=$HOME/.casher && ( mkdir -p $CASHER_DIR/bin && /usr/bin/curl https://raw2.github.com/dima-exe/casher/master/bin/casher --tcp-nodelay --retry 3 --fail --silent --show-error -o $HOME/.casher/bin/casher && chmod +x $HOME/.casher/bin/casher ) || true
|
39
|
+
test -f $HOME/.casher/bin/casher && casher-ruby $HOME/.casher/bin/casher fetch http://example.com/test/pull-request/rvm-2.0.0-gemfile.tgz http://example.com/master/rvm-2.0.0-gemfile.tgz || true
|
40
|
+
test -f $HOME/.casher/bin/casher && casher-ruby $HOME/.casher/bin/casher add ~/.rubygems || true
|
41
41
|
unset CASHER_DIR
|
42
42
|
|
43
43
|
# before install
|
44
|
-
|
45
|
-
|
44
|
+
echo \$\ sudo\ env\ PATH\=\$PATH\ vxvm\ install\ ruby\ 2.0.0
|
45
|
+
VX_VM_SOURCE="$(sudo env PATH=$PATH vxvm install ruby 2.0.0)"
|
46
|
+
source "$VX_VM_SOURCE"
|
46
47
|
echo \$\ export\ BUNDLE_GEMFILE\=\$\{PWD\}/Gemfile
|
47
48
|
export BUNDLE_GEMFILE=${PWD}/Gemfile
|
48
49
|
echo \$\ export\ GEM_HOME\=\~/.rubygems
|
@@ -5,10 +5,10 @@ export CI_JOB_ID=1
|
|
5
5
|
export CI_JOB_NUMBER=100
|
6
6
|
export CI_BUILD_ID=12
|
7
7
|
export CI_BUILD_NUMBER=101
|
8
|
-
export CI_PROJECT_NAME=
|
9
|
-
export CI_BUILD_SHA=
|
10
|
-
export CI_BRANCH=
|
8
|
+
export CI_PROJECT_NAME=vexor/vx-test-repo
|
9
|
+
export CI_BUILD_SHA=8f53c077072674972e21c82a286acc07fada91f5
|
10
|
+
export CI_BRANCH=test/pull-request
|
11
11
|
export VX_ROOT=$(pwd)
|
12
|
-
cd ${VX_ROOT}/code/
|
12
|
+
cd ${VX_ROOT}/code/vexor/vx-test-repo
|
13
13
|
|
14
14
|
# after script
|
@@ -9,40 +9,41 @@ export CI_JOB_ID=1
|
|
9
9
|
export CI_JOB_NUMBER=100
|
10
10
|
export CI_BUILD_ID=12
|
11
11
|
export CI_BUILD_NUMBER=101
|
12
|
-
export CI_PROJECT_NAME=
|
13
|
-
export CI_BUILD_SHA=
|
14
|
-
export CI_BRANCH=
|
12
|
+
export CI_PROJECT_NAME=vexor/vx-test-repo
|
13
|
+
export CI_BUILD_SHA=8f53c077072674972e21c82a286acc07fada91f5
|
14
|
+
export CI_BRANCH=test/pull-request
|
15
15
|
export VX_ROOT=$(pwd)
|
16
16
|
export PATH=$VX_ROOT/bin:$PATH
|
17
17
|
mkdir -p $VX_ROOT/bin
|
18
|
-
mkdir -p ${VX_ROOT}/data/
|
19
|
-
mkdir -p ${VX_ROOT}/code/
|
20
|
-
(echo
|
21
|
-
chmod 0600 ${VX_ROOT}/data/
|
22
|
-
export VX_PRIVATE_KEY=${VX_ROOT}/data/
|
23
|
-
(echo
|
24
|
-
chmod 0750 ${VX_ROOT}/data/
|
25
|
-
export GIT_SSH=${VX_ROOT}/data/
|
26
|
-
echo "$ git clone --depth=50 --branch=
|
27
|
-
git clone --depth=50 --branch=
|
28
|
-
echo "$ git checkout -qf
|
29
|
-
( cd ${VX_ROOT}/code/
|
18
|
+
mkdir -p ${VX_ROOT}/data/vexor/vx-test-repo
|
19
|
+
mkdir -p ${VX_ROOT}/code/vexor/vx-test-repo
|
20
|
+
(echo LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQpNSUlFcEFJQkFBS0NBUUVBcE1rYW0rbWh3Q2RDUWRxdHU3VTlwNVZSRm1rcmJpOUhhQTN2YWdwaE12eXJ5V3F4CkM5c1krYW44akNOUlVwZWx5ako4ZjZ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 0600 ${VX_ROOT}/data/vexor/vx-test-repo/key
|
22
|
+
export VX_PRIVATE_KEY=${VX_ROOT}/data/vexor/vx-test-repo/key
|
23
|
+
(echo IyEvYmluL3NoCmV4ZWMgL3Vzci9iaW4vc3NoIC1BIC1vIExvZ0xldmVsPXF1aWV0IC1vIFN0cmljdEhvc3RLZXlDaGVja2luZz1ubyAtbyBVc2VyS25vd25Ib3N0c0ZpbGU9L2Rldi9udWxsIC1pICR7VlhfUk9PVH0vZGF0YS92ZXhvci92eC10ZXN0LXJlcG8va2V5ICRACg== | base64 --decode) > ${VX_ROOT}/data/vexor/vx-test-repo/git_ssh
|
24
|
+
chmod 0750 ${VX_ROOT}/data/vexor/vx-test-repo/git_ssh
|
25
|
+
export GIT_SSH=${VX_ROOT}/data/vexor/vx-test-repo/git_ssh
|
26
|
+
echo "$ git clone --depth=50 --branch=test/pull-request git@github.com:vexor/vx-test-repo.git ${VX_ROOT}/code/vexor/vx-test-repo"
|
27
|
+
git clone --depth=50 --branch=test/pull-request git@github.com:vexor/vx-test-repo.git ${VX_ROOT}/code/vexor/vx-test-repo
|
28
|
+
echo "$ git checkout -qf 8f53c077072674972e21c82a286acc07fada91f5"
|
29
|
+
( cd ${VX_ROOT}/code/vexor/vx-test-repo && git checkout -qf 8f53c077072674972e21c82a286acc07fada91f5 ) || exit 1
|
30
30
|
unset GIT_SSH
|
31
31
|
echo "starting SSH Agent"
|
32
32
|
eval "$(ssh-agent)" > /dev/null
|
33
33
|
ssh-add $VX_PRIVATE_KEY 2> /dev/null
|
34
|
-
cd ${VX_ROOT}/code/
|
34
|
+
cd ${VX_ROOT}/code/vexor/vx-test-repo
|
35
35
|
echo "download latest version of vxvm"
|
36
|
-
curl --fail --silent --show-error https://raw.githubusercontent.com/vexor/vx-packages/master/vxvm
|
36
|
+
curl --tcp-nodelay --retry 3 --fail --silent --show-error -o $VX_ROOT/bin/vxvm https://raw.githubusercontent.com/vexor/vx-packages/master/vxvm
|
37
37
|
chmod +x $VX_ROOT/bin/vxvm
|
38
|
-
export CASHER_DIR=$HOME/.casher && ( mkdir -p $CASHER_DIR/bin && /usr/bin/curl https://raw2.github.com/dima-exe/casher/master/bin/casher -
|
39
|
-
test -f $HOME/.casher/bin/casher &&
|
40
|
-
test -f $HOME/.casher/bin/casher &&
|
38
|
+
export CASHER_DIR=$HOME/.casher && ( mkdir -p $CASHER_DIR/bin && /usr/bin/curl https://raw2.github.com/dima-exe/casher/master/bin/casher --tcp-nodelay --retry 3 --fail --silent --show-error -o $HOME/.casher/bin/casher && chmod +x $HOME/.casher/bin/casher ) || true
|
39
|
+
test -f $HOME/.casher/bin/casher && casher-ruby $HOME/.casher/bin/casher fetch http://example.com/test/pull-request/rvm-1.9.3-gemfile.tgz http://example.com/master/rvm-1.9.3-gemfile.tgz || true
|
40
|
+
test -f $HOME/.casher/bin/casher && casher-ruby $HOME/.casher/bin/casher add ~/.rubygems || true
|
41
41
|
unset CASHER_DIR
|
42
42
|
|
43
43
|
# before install
|
44
|
-
|
45
|
-
|
44
|
+
echo \$\ sudo\ env\ PATH\=\$PATH\ vxvm\ install\ ruby\ 1.9.3
|
45
|
+
VX_VM_SOURCE="$(sudo env PATH=$PATH vxvm install ruby 1.9.3)"
|
46
|
+
source "$VX_VM_SOURCE"
|
46
47
|
echo \$\ export\ BUNDLE_GEMFILE\=\$\{PWD\}/Gemfile
|
47
48
|
export BUNDLE_GEMFILE=${PWD}/Gemfile
|
48
49
|
echo \$\ export\ GEM_HOME\=\~/.rubygems
|
@@ -0,0 +1,27 @@
|
|
1
|
+
-----BEGIN RSA PRIVATE KEY-----
|
2
|
+
MIIEpAIBAAKCAQEApMkam+mhwCdCQdqtu7U9p5VRFmkrbi9HaA3vagphMvyryWqx
|
3
|
+
C9sY+an8jCNRUpelyjJ8f6b6/V5h4WcnlwpOvVGGns4HObnYj89GKoBF+QpT28mp
|
4
|
+
CMi0kzHNSWMRZg/d9x3Af2cDIgJhgGKdKLhOb+SJ2iRzKA6ywmyNTrU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QySyYyyWAmye1reGR7anEnvzB7NFdM0roC8
|
20
|
+
M5pV/qeMmdqf4RbD7o45psDiDqruM+ZBxs8RGG8uE+qxNawNh59qKnq8ECEXcijN
|
21
|
+
SKGEELMajSSvH9dZwBQZYwKBgQCcBhiI9bsF2UZm8YMtEm3IXE/8Hn/vGX1re8WY
|
22
|
+
rS4ZHqb10bL8po+3y7SafII3n3dMgleWGYbLdLOnsC9afEpDPhANg6gtyTHAn/vS
|
23
|
+
yXS+UjPbFxEA718JRUhdnfSx8mpDF32IUBQ2AWQIOxkp1aH5pgYn+JCq4RpWx32Y
|
24
|
+
mqYFKQKBgQCbEsvYlfeWJDi+CBH+zhfkfWIY9SiyuHEUQa4hNbaS/DkDMgqN58Cu
|
25
|
+
8gXGSftEiTcLat0a0P6veacgPKuhAHe1K7h84+R0rE/cv1QTBpW38RQgabLs+exy
|
26
|
+
jyF5R1NHI/LXsDBNaiR05srXdiSZumL0awX7riC4DzIk6ZZYRdbnbQ==
|
27
|
+
-----END RSA PRIVATE KEY-----
|
@@ -0,0 +1 @@
|
|
1
|
+
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCkyRqb6aHAJ0JB2q27tT2nlVEWaStuL0doDe9qCmEy/KvJarEL2xj5qfyMI1FSl6XKMnx/pvr9XmHhZyeXCk69UYaezgc5udiPz0YqgEX5ClPbyakIyLSTMc1JYxFmD933HcB/ZwMiAmGAYp0ouE5v5InaJHMoDrLCbI1OtQHi0mGmAn88DWUaVheQZp3YpEB+DuZNy5CuosniqLZd2AAdy0hI33BR1sTXHkcU/LO6TAq4EASHubpVWsnOyQo2sGy45VJm5Dqu/1OKpZdWkBeCta8rO2V/dI0C22YAFvl3a485rb6t4JYTMdtY4WAxANCxexLeuoLd/PDhUwpFDBch dima@dmexe.local
|
@@ -0,0 +1,42 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'yaml'
|
3
|
+
require 'tmpdir'
|
4
|
+
require 'fileutils'
|
5
|
+
|
6
|
+
describe "(integration) go" do
|
7
|
+
let(:path) { Dir.tmpdir + "/vx-builder-test" }
|
8
|
+
|
9
|
+
before do
|
10
|
+
FileUtils.rm_rf(path)
|
11
|
+
FileUtils.mkdir_p(path)
|
12
|
+
end
|
13
|
+
after { FileUtils.rm_rf(path) }
|
14
|
+
|
15
|
+
def build(file, options = {})
|
16
|
+
config = Vx::Builder::BuildConfiguration.from_yaml(file)
|
17
|
+
matrix = Vx::Builder.matrix config
|
18
|
+
options[:task] ||= create(:task)
|
19
|
+
script = Vx::Builder.script(options[:task], matrix.build.first)
|
20
|
+
OpenStruct.new script: script, matrix: matrix
|
21
|
+
end
|
22
|
+
|
23
|
+
it "should succesfuly run lang/clojure", real: true do
|
24
|
+
file = {"language" => "clojure"}.to_yaml
|
25
|
+
task = create(
|
26
|
+
:task,
|
27
|
+
sha: "HEAD",
|
28
|
+
branch: "lang/clojure"
|
29
|
+
)
|
30
|
+
|
31
|
+
b = build(file, task: task)
|
32
|
+
Dir.chdir(path) do
|
33
|
+
File.open("script.sh", "w") do |io|
|
34
|
+
io.write "set -e\n"
|
35
|
+
io.write b.script.to_before_script
|
36
|
+
io.write b.script.to_script
|
37
|
+
end
|
38
|
+
system("env", "-", "USER=$USER", "HOME=#{path}", "bash", "script.sh" )
|
39
|
+
expect($?.to_i).to eq 0
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
data/spec/integration/go_spec.rb
CHANGED
@@ -1,15 +1,19 @@
|
|
1
1
|
require 'spec_helper'
|
2
|
+
require 'yaml'
|
3
|
+
require 'tmpdir'
|
4
|
+
require 'fileutils'
|
2
5
|
|
3
6
|
describe "(integration) go" do
|
4
|
-
let(:
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
def write_script_to_filter(prefix)
|
7
|
+
let(:path) { Dir.tmpdir + "/vx-builder-test" }
|
8
|
+
|
9
|
+
before do
|
10
|
+
FileUtils.rm_rf(path)
|
11
|
+
FileUtils.mkdir_p(path)
|
12
|
+
end
|
13
|
+
after { FileUtils.rm_rf(path) }
|
14
|
+
|
15
|
+
def write_script_to_filter(prefix, script)
|
16
|
+
=begin
|
13
17
|
File.open(fixture_path("integration/go/#{prefix}before_script.sh"), 'w') do |io|
|
14
18
|
io << script.to_before_script
|
15
19
|
end
|
@@ -19,22 +23,50 @@ describe "(integration) go" do
|
|
19
23
|
File.open(fixture_path("integration/go/#{prefix}script.sh"), 'w') do |io|
|
20
24
|
io << script.to_script
|
21
25
|
end
|
26
|
+
=end
|
22
27
|
end
|
23
28
|
|
24
|
-
|
25
|
-
|
26
|
-
|
29
|
+
def build(file, options = {})
|
30
|
+
config = Vx::Builder::BuildConfiguration.from_yaml(file)
|
31
|
+
matrix = Vx::Builder.matrix config
|
32
|
+
options[:task] ||= create(:task)
|
33
|
+
script = Vx::Builder.script(options[:task], matrix.build.first)
|
34
|
+
OpenStruct.new script: script, matrix: matrix
|
35
|
+
end
|
27
36
|
|
28
|
-
|
37
|
+
context "(generation)" do
|
38
|
+
let(:file) { fixture("integration/go/language/config.yml") }
|
39
|
+
let(:b) { build(file) }
|
40
|
+
before { write_script_to_filter "language/", b.script }
|
29
41
|
|
30
42
|
it "should generate one configuration" do
|
31
|
-
expect(matrix.build).to have(1).item
|
43
|
+
expect(b.matrix.build).to have(1).item
|
32
44
|
end
|
33
45
|
|
34
46
|
it "should generate valid scripts" do
|
35
|
-
expect(script.to_before_script).to eq fixture("integration/go/language/before_script.sh")
|
36
|
-
expect(script.to_script).to eq fixture("integration/go/language/script.sh")
|
37
|
-
expect(script.to_after_script).to eq fixture("integration/go/language/after_script.sh")
|
47
|
+
expect(b.script.to_before_script).to eq fixture("integration/go/language/before_script.sh")
|
48
|
+
expect(b.script.to_script).to eq fixture("integration/go/language/script.sh")
|
49
|
+
expect(b.script.to_after_script).to eq fixture("integration/go/language/after_script.sh")
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
it "should succesfuly run lang/go", real: true do
|
54
|
+
file = {"language" => "go"}.to_yaml
|
55
|
+
task = create(
|
56
|
+
:task,
|
57
|
+
sha: "HEAD",
|
58
|
+
branch: "lang/go"
|
59
|
+
)
|
60
|
+
|
61
|
+
b = build(file, task: task)
|
62
|
+
Dir.chdir(path) do
|
63
|
+
File.open("script.sh", "w") do |io|
|
64
|
+
io.write "set -e\n"
|
65
|
+
io.write b.script.to_before_script
|
66
|
+
io.write b.script.to_script
|
67
|
+
end
|
68
|
+
system("env", "-", "USER=$USER", "HOME=#{path}", "bash", "script.sh" )
|
69
|
+
expect($?.to_i).to eq 0
|
38
70
|
end
|
39
71
|
end
|
40
72
|
end
|
@@ -1,16 +1,19 @@
|
|
1
1
|
require 'spec_helper'
|
2
|
+
require 'fileutils'
|
3
|
+
require 'tempfile'
|
4
|
+
require 'yaml'
|
2
5
|
|
3
6
|
describe "(integration) ruby" do
|
4
|
-
let(:
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
7
|
+
let(:path) { Dir.tmpdir + "/vx-builder-test" }
|
8
|
+
|
9
|
+
before do
|
10
|
+
FileUtils.rm_rf(path)
|
11
|
+
FileUtils.mkdir_p(path)
|
12
|
+
end
|
13
|
+
|
14
|
+
after { FileUtils.rm_rf(path) }
|
15
|
+
|
16
|
+
def write_script_to_filter(prefix, script)
|
14
17
|
File.open(fixture_path("integration/ruby/#{prefix}before_script.sh"), 'w') do |io|
|
15
18
|
io << script.to_before_script
|
16
19
|
end
|
@@ -20,93 +23,94 @@ describe "(integration) ruby" do
|
|
20
23
|
File.open(fixture_path("integration/ruby/#{prefix}script.sh"), 'w') do |io|
|
21
24
|
io << script.to_script
|
22
25
|
end
|
23
|
-
=end
|
24
26
|
end
|
25
27
|
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
subject { script }
|
34
|
-
|
35
|
-
before { write_script_to_filter "language/" }
|
36
|
-
|
37
|
-
its(:to_before_script) { should eq fixture("integration/ruby/language/before_script.sh") }
|
38
|
-
its(:to_script) { should eq fixture("integration/ruby/language/script.sh") }
|
39
|
-
its(:to_after_script) { should eq fixture("integration/ruby/language/after_script.sh") }
|
28
|
+
def build(file, options = {})
|
29
|
+
config = Vx::Builder::BuildConfiguration.from_yaml(file)
|
30
|
+
matrix = Vx::Builder.matrix config
|
31
|
+
options[:task] ||= create(:task)
|
32
|
+
rs = OpenStruct.new matrix: matrix, scripts: []
|
33
|
+
matrix.build.each do |b|
|
34
|
+
rs.scripts << Vx::Builder.script(options[:task], b)
|
40
35
|
end
|
36
|
+
rs
|
41
37
|
end
|
42
38
|
|
43
|
-
context "
|
44
|
-
let(:config) { fixture("integration/ruby/
|
45
|
-
|
46
|
-
context "configuration" do
|
47
|
-
let(:task) { create :task, deploy: true }
|
48
|
-
let(:sources) { Vx::Builder.deploy(matrix, branch: "master").build }
|
49
|
-
|
50
|
-
it "should have source" do
|
51
|
-
expect(sources).to have(1).item
|
52
|
-
end
|
53
|
-
|
54
|
-
context "first deploy configuration" do
|
55
|
-
let(:source) { sources.first }
|
56
|
-
before { write_script_to_filter "deploy/d." }
|
57
|
-
subject { script }
|
39
|
+
context "generation" do
|
40
|
+
let(:config) { fixture("integration/ruby/language/config.yml") }
|
58
41
|
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
42
|
+
it "should successfuly generate scripts using language: ruby" do
|
43
|
+
c = fixture("integration/ruby/language/config.yml")
|
44
|
+
b = build(c)
|
45
|
+
expect(b.scripts).to have(1).item
|
46
|
+
script = b.scripts[0]
|
47
|
+
write_script_to_filter("language/", script)
|
48
|
+
expect(script.to_before_script).to eq fixture("integration/ruby/language/before_script.sh")
|
49
|
+
expect(script.to_script).to eq fixture("integration/ruby/language/script.sh")
|
50
|
+
expect(script.to_after_script).to eq fixture("integration/ruby/language/after_script.sh")
|
63
51
|
end
|
64
|
-
end
|
65
|
-
|
66
|
-
context "matrix" do
|
67
|
-
let(:config) { fixture("integration/ruby/matrix/config.yml") }
|
68
52
|
|
69
|
-
|
53
|
+
it "should successfuly generate scripts for deploy" do
|
54
|
+
c = fixture("integration/ruby/deploy/config.yml")
|
55
|
+
b = build(c)
|
56
|
+
expect(b.scripts).to have(1).item
|
57
|
+
script = b.scripts[0]
|
58
|
+
write_script_to_filter("deploy/", script)
|
59
|
+
expect(script.to_before_script).to eq fixture("integration/ruby/deploy/before_script.sh")
|
60
|
+
expect(script.to_script).to eq fixture("integration/ruby/deploy/script.sh")
|
61
|
+
expect(script.to_after_script).to eq fixture("integration/ruby/deploy/after_script.sh")
|
62
|
+
end
|
70
63
|
|
71
|
-
|
72
|
-
|
73
|
-
|
64
|
+
it "should successfuly generate scripts for rvm matrix" do
|
65
|
+
c = fixture("integration/ruby/matrix/config.yml")
|
66
|
+
b = build(c)
|
74
67
|
|
75
|
-
|
68
|
+
expect(b.scripts).to have(2).items
|
76
69
|
|
77
|
-
|
78
|
-
|
79
|
-
its(:to_after_script) { should eq fixture("integration/ruby/matrix/0.after_script.sh") }
|
80
|
-
end
|
70
|
+
script = b.scripts[0]
|
71
|
+
write_script_to_filter("matrix/0.", script)
|
81
72
|
|
82
|
-
|
83
|
-
|
84
|
-
|
73
|
+
expect(script.to_before_script).to eq fixture("integration/ruby/matrix/0.before_script.sh")
|
74
|
+
expect(script.to_script).to eq fixture("integration/ruby/matrix/0.script.sh")
|
75
|
+
expect(script.to_after_script).to eq fixture("integration/ruby/matrix/0.after_script.sh")
|
85
76
|
|
86
|
-
|
77
|
+
script = b.scripts[1]
|
78
|
+
write_script_to_filter("matrix/1.", script)
|
87
79
|
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
end
|
80
|
+
expect(script.to_before_script).to eq fixture("integration/ruby/matrix/1.before_script.sh")
|
81
|
+
expect(script.to_script).to eq fixture("integration/ruby/matrix/1.script.sh")
|
82
|
+
expect(script.to_after_script).to eq fixture("integration/ruby/matrix/1.after_script.sh")
|
92
83
|
|
93
|
-
|
94
|
-
|
95
|
-
let(:sources) { Vx::Builder.deploy(matrix, branch: "master").build }
|
84
|
+
deploy = Vx::Builder.deploy(b.matrix, branch: "master").build
|
85
|
+
expect(deploy).to have(1).item
|
96
86
|
|
97
|
-
|
98
|
-
|
99
|
-
end
|
87
|
+
script = Vx::Builder.script(create(:task), deploy[0])
|
88
|
+
write_script_to_filter("matrix/d.", script)
|
100
89
|
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
90
|
+
expect(script.to_before_script).to eq fixture("integration/ruby/matrix/d.before_script.sh")
|
91
|
+
expect(script.to_script).to eq fixture("integration/ruby/matrix/d.script.sh")
|
92
|
+
expect(script.to_after_script).to eq fixture("integration/ruby/matrix/d.after_script.sh")
|
93
|
+
end
|
94
|
+
end
|
105
95
|
|
106
|
-
|
107
|
-
|
108
|
-
|
96
|
+
it "should succesfuly run lang/ruby", real: true do
|
97
|
+
file = {"language" => "ruby"}.to_yaml
|
98
|
+
task = create(
|
99
|
+
:task,
|
100
|
+
sha: "HEAD",
|
101
|
+
branch: "lang/ruby"
|
102
|
+
)
|
103
|
+
|
104
|
+
b = build(file, task: task)
|
105
|
+
Dir.chdir(path) do
|
106
|
+
File.open("script.sh", "w") do |io|
|
107
|
+
io.write "set -e\n"
|
108
|
+
io.write b.scripts[0].to_before_script
|
109
|
+
io.write b.scripts[0].to_script
|
109
110
|
end
|
111
|
+
system("env", "-", "USER=$USER", "HOME=#{path}", "bash", "script.sh" )
|
112
|
+
expect($?.to_i).to eq 0
|
110
113
|
end
|
111
114
|
end
|
115
|
+
|
112
116
|
end
|
@@ -3,42 +3,44 @@ require 'tmpdir'
|
|
3
3
|
require 'fileutils'
|
4
4
|
|
5
5
|
describe Vx::Builder::ScriptBuilder::Prepare do
|
6
|
-
let(:
|
7
|
-
let(:script) { described_class.new app }
|
8
|
-
let(:env) { create :env }
|
9
|
-
let(:run) { script.call env }
|
10
|
-
let(:path) { Dir.tmpdir }
|
11
|
-
subject { run }
|
6
|
+
let(:path) { Dir.tmpdir }
|
12
7
|
|
13
8
|
before { FileUtils.rm_rf(path) }
|
14
9
|
after { FileUtils.rm_rf(path) }
|
15
10
|
|
16
|
-
|
11
|
+
def new_command(options = {})
|
12
|
+
options[:task] ||= create(:task)
|
13
|
+
options[:env] ||= create(:env, task: options[:task])
|
14
|
+
options[:app] ||= ->(_) { 0 }
|
15
|
+
options[:script] ||= described_class.new options[:app]
|
16
|
+
options[:script].call(options[:env])
|
17
17
|
|
18
|
-
|
19
|
-
|
20
|
-
|
18
|
+
options[:cmd] ||= create(:command_from_env, env: options[:env])
|
19
|
+
options[:cmd]
|
20
|
+
end
|
21
21
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
end
|
27
|
-
expect($?.to_i).to eq 0
|
28
|
-
end
|
22
|
+
it "should successfuly run command" do
|
23
|
+
cmd = new_command
|
24
|
+
Dir.chdir(path) do
|
25
|
+
system( cmd )
|
29
26
|
end
|
27
|
+
expect($?.to_i).to eq 0
|
28
|
+
end
|
29
|
+
|
30
|
+
it "should be fail if reference if not in tree" do
|
31
|
+
cmd = new_command(task: create(:task, sha: '8f53c077072674972e21c82a286acc07fada0000'))
|
32
|
+
Dir.chdir(path) do
|
33
|
+
system( cmd )
|
34
|
+
end
|
35
|
+
expect($?.to_i).to_not eq 0
|
36
|
+
end
|
30
37
|
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
Dir.chdir(path) do
|
36
|
-
system( command )
|
37
|
-
end
|
38
|
-
expect($?.to_i).to eq 0
|
39
|
-
end
|
40
|
-
end
|
38
|
+
it "should successfuly run for pull request" do
|
39
|
+
cmd = new_command task: create(:task, pull_request_id: 1)
|
40
|
+
Dir.chdir(path) do
|
41
|
+
system( cmd )
|
41
42
|
end
|
43
|
+
expect($?.to_i).to eq 0
|
42
44
|
end
|
43
45
|
|
44
46
|
end
|
@@ -6,8 +6,8 @@ describe Vx::Builder::Task do
|
|
6
6
|
subject { task }
|
7
7
|
|
8
8
|
context "just created" do
|
9
|
-
its(:name) { should eq '
|
10
|
-
its(:sha) { should eq '
|
9
|
+
its(:name) { should eq 'vexor/vx-test-repo' }
|
10
|
+
its(:sha) { should eq '8f53c077072674972e21c82a286acc07fada91f5' }
|
11
11
|
its(:deploy_key) { should be }
|
12
12
|
its(:cache_url_prefix){ should eq 'http://example.com' }
|
13
13
|
its(:job_id) { should eq 1 }
|
data/spec/spec_helper.rb
CHANGED