vx-builder 0.5.28 → 0.5.29
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vx/builder/build_configuration.rb +2 -0
- data/lib/vx/builder/matrix_builder.rb +1 -0
- data/lib/vx/builder/script_builder/nodejs.rb +1 -0
- data/lib/vx/builder/script_builder/python.rb +61 -0
- data/lib/vx/builder/script_builder.rb +2 -0
- data/lib/vx/builder/version.rb +1 -1
- data/spec/fixtures/integration/go/language/before_script.sh +1 -1
- data/spec/fixtures/integration/ruby/deploy/before_script.sh +10 -10
- data/spec/fixtures/integration/ruby/language/before_script.sh +10 -10
- data/spec/fixtures/integration/ruby/matrix/0.before_script.sh +7 -9
- data/spec/fixtures/integration/ruby/matrix/1.before_script.sh +7 -9
- data/spec/fixtures/integration/ruby/matrix/d.before_script.sh +11 -11
- data/spec/fixtures/python.yml +4 -0
- data/spec/fixtures/travis.yml +2 -0
- data/spec/integration/python_spec.rb +44 -0
- data/spec/lib/builder/build_configuration_spec.rb +1 -0
- data/spec/lib/builder/script_builder/python_spec.rb +32 -0
- metadata +9 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9591c46cfa06bdbecf6fc6d27e859f5c2d4f39f7
|
4
|
+
data.tar.gz: 64bc6ef51248ca86196855017b670e68b546f0f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 090ae02c55745c7551eb71fb253d6ba99d1d3ca04f5171c763ad84396a6f5879644a1e59007173acd5c818df65dbaf2bdab55fbb2797361284bf5b5a84d0bdce
|
7
|
+
data.tar.gz: 2cb5a93d6125177a7960e79fe0802c1b9c7293298de93ab76bfb711c1e53d5ea97e3445be3fb1a587c619fbbbcfaac8a897e609b0bd1838df49b525ff4d6ce95
|
@@ -26,6 +26,7 @@ module Vx
|
|
26
26
|
i << "mkdir -p #{NPM_PACKAGES}"
|
27
27
|
i << "mkdir -p #{BOWER_COMPONENTS}"
|
28
28
|
i << trace_sh_command("npm config set prefix=#{NPM_PACKAGES}")
|
29
|
+
i << trace_sh_command("npm config set spin false")
|
29
30
|
i << "test -f .bowerrc || (" + trace_sh_command("export bower_directory=#{BOWER_COMPONENTS}") + ")"
|
30
31
|
i << "export PATH=$PATH:#{NPM_PACKAGES}/bin"
|
31
32
|
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
module Vx
|
2
|
+
module Builder
|
3
|
+
class ScriptBuilder
|
4
|
+
|
5
|
+
class Python < Base
|
6
|
+
|
7
|
+
DEFAULT_PYTHON = '2.7'
|
8
|
+
|
9
|
+
def call(env)
|
10
|
+
if enabled?(env)
|
11
|
+
|
12
|
+
vxvm_install(env, 'python', python_version(env))
|
13
|
+
|
14
|
+
do_cache_key(env) do |i|
|
15
|
+
ruby_v = python_version(env) || DEFAULT_PYTHON
|
16
|
+
i << "python-#{ruby_v}"
|
17
|
+
end
|
18
|
+
|
19
|
+
do_announce(env) do |i|
|
20
|
+
i << trace_sh_command("python --version")
|
21
|
+
i << trace_sh_command("pip --version")
|
22
|
+
end
|
23
|
+
|
24
|
+
do_install(env) do |i|
|
25
|
+
i << "if [ -f Requirements.txt ] ; then \n #{trace_sh_command "sudo pip install -r Requirements.txt"}\nfi"
|
26
|
+
i << "if [ -f requirements.txt ] ; then \n #{trace_sh_command "sudo pip install -r requirements.txt"}\nfi"
|
27
|
+
i << "if [ -f setup.py ] ; then \n #{trace_sh_command "sudo python setup.py install"}\nfi"
|
28
|
+
end
|
29
|
+
|
30
|
+
do_script(env) do |i|
|
31
|
+
script =<<EOF
|
32
|
+
if [[ -f manage.py ]] ; then
|
33
|
+
#{trace_sh_command 'python manage.py test'}
|
34
|
+
elif [[ -f setup.py ]] ; then
|
35
|
+
#{trace_sh_command 'python setup.py test'}
|
36
|
+
else
|
37
|
+
#{trace_sh_command 'nosetest'}
|
38
|
+
fi
|
39
|
+
EOF
|
40
|
+
i << script
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
app.call(env)
|
45
|
+
end
|
46
|
+
|
47
|
+
private
|
48
|
+
|
49
|
+
def enabled?(env)
|
50
|
+
env.source.python.first || env.source.language == 'python'
|
51
|
+
end
|
52
|
+
|
53
|
+
def python_version(env)
|
54
|
+
v = env.source.rvm.first
|
55
|
+
v || DEFAULT_PYTHON
|
56
|
+
end
|
57
|
+
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
@@ -13,6 +13,7 @@ module Vx
|
|
13
13
|
autoload :Scala, File.expand_path("../script_builder/scala", __FILE__)
|
14
14
|
autoload :Clojure, File.expand_path("../script_builder/clojure", __FILE__)
|
15
15
|
autoload :Rust, File.expand_path("../script_builder/rust", __FILE__)
|
16
|
+
autoload :Python, File.expand_path("../script_builder/python", __FILE__)
|
16
17
|
autoload :Prepare, File.expand_path("../script_builder/prepare", __FILE__)
|
17
18
|
autoload :Databases, File.expand_path("../script_builder/databases", __FILE__)
|
18
19
|
autoload :Cache, File.expand_path("../script_builder/cache", __FILE__)
|
@@ -39,6 +40,7 @@ module Vx
|
|
39
40
|
use Builder::ScriptBuilder::Go
|
40
41
|
use Builder::ScriptBuilder::Nodejs
|
41
42
|
use Builder::ScriptBuilder::Rust
|
43
|
+
use Builder::ScriptBuilder::Python
|
42
44
|
|
43
45
|
use Builder::ScriptBuilder::Deploy
|
44
46
|
use Builder::ScriptBuilder::Defaults
|
data/lib/vx/builder/version.rb
CHANGED
@@ -22,7 +22,7 @@ mkdir -p ${VX_ROOT}/code/vexor/vx-test-repo
|
|
22
22
|
chmod 0750 $(pwd)/bin/parallel_rspec
|
23
23
|
(echo IyEvYmluL2Jhc2gKCmk9MApmaWxlcz0oKQoKQkxBQ0s9IlwwMzNbMzBtIgpSRUQ9IlwwMzNbMzFtIgpHUkVFTj0iXDAzM1szMm0iCllFTExPVz0iXDAzM1szM20iCkJMVUU9IlwwMzNbMz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1TENCenBKVEVzandHWmNUUDBBT3Y2ZHF3SndMUHBtCnlzaVRyTEZCSDVTZFZzVE10OFVKRnhaMzNzRFdIWnZTbzBwMjFJc0NnWUI2ODhyTWs3Mmp2cEU4UkpMcERSWTIKbkg4NjVVTWJjSHNBSWw0ZWQrRElWMFlGMVpMRDBReVN5WXl5V0FteWUxcmVHUjdhbkVudnpCN05GZE0wcm9DOApNNXBWL3FlTW1kcWY0UmJEN280NXBzRGlEcXJ1TStaQnhzOFJHRzh1RStxeE5hd05oNTlxS25xOEVDRVhjaWpOClNLR0VFTE1halNTdkg5ZFp3QlFaWXdLQmdRQ2NCaGlJOWJzRjJVWm04WU10RW0zSVhFLzhIbi92R1gxcmU4V1kKclM0WkhxYjEwYkw4cG8rM3k3U2FmSUkzbjNkTWdsZVdHWWJMZExPbnNDOWFmRXBEUGhBTmc2Z3R5VEhBbi92Uwp5WFMrVWpQYkZ4RUE3MThKUlVoZG5mU3g4bXBERjMySVVCUTJBV1FJT3hrcDFhSDVwZ1luK0pDcTRScFd4MzJZCm1xWUZLUUtCZ1FDYkVzdllsZmVXSkRpK0NCSCt6aGZrZldJWTlTaXl1SEVVUWE0aE5iYVMvRGtETWdxTjU4Q3UKOGdYR1NmdEVpVGNMYXQwYTBQNnZlYWNnUEt1aEFIZTFLN2g4NCtSMHJFL2N2MVFUQnBXMzhSUWdhYkxzK2V4eQpqeUY1UjFOSEkvTFhzREJOYWlSMDVzclhkaVNadW1MMGF3WDdyaUM0RHpJazZaWllSZGJuYlE9PQotLS0tLUVORCBSU0EgUFJJVkFURSBLRVktLS0tLQo= | base64 --decode) > ${VX_ROOT}/data/vexor/vx-test-repo/key
|
28
28
|
chmod 0600 ${VX_ROOT}/data/vexor/vx-test-repo/key
|
@@ -26,7 +26,7 @@ mkdir -p ${VX_ROOT}/code/vexor/vx-test-repo
|
|
26
26
|
chmod 0750 $(pwd)/bin/parallel_rspec
|
27
27
|
(echo IyEvYmluL2Jhc2gKCmk9MApmaWxlcz0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 cd ${VX_ROOT}/code/vexor/vx-test-repo
|
|
46
46
|
echo "download latest version of vxvm"
|
47
47
|
curl --tcp-nodelay --retry 3 --fail --silent --show-error -o $VX_ROOT/bin/vxvm https://raw.githubusercontent.com/vexor/vx-packages/master/vxvm
|
48
48
|
chmod +x $VX_ROOT/bin/vxvm
|
49
|
-
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
|
50
|
-
test -f $HOME/.casher/bin/casher && casher-ruby $HOME/.casher/bin/casher fetch http://example.com/test/pull-request/rvm-default-gemfile.tgz http://example.com/master/rvm-default-gemfile.tgz || true
|
51
|
-
test -f $HOME/.casher/bin/casher && casher-ruby $HOME/.casher/bin/casher add ~/.rubygems || true
|
52
|
-
unset CASHER_DIR
|
53
|
-
|
54
|
-
# before install
|
55
49
|
echo \$\ export\ RAILS_ENV\=test
|
56
50
|
export RAILS_ENV=test
|
57
51
|
echo \$\ export\ RACK_ENV\=test
|
@@ -60,6 +54,12 @@ echo \$\ export\ BUNDLE_GEMFILE\=\$\{PWD\}/Gemfile
|
|
60
54
|
export BUNDLE_GEMFILE=${PWD}/Gemfile
|
61
55
|
echo \$\ export\ GEM_HOME\=\~/.rubygems
|
62
56
|
export GEM_HOME=~/.rubygems
|
57
|
+
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
|
58
|
+
test -f $HOME/.casher/bin/casher && casher-ruby $HOME/.casher/bin/casher fetch http://example.com/test/pull-request/rvm-default-gemfile.tgz http://example.com/master/rvm-default-gemfile.tgz || true
|
59
|
+
test -f $HOME/.casher/bin/casher && casher-ruby $HOME/.casher/bin/casher add ~/.rubygems || true
|
60
|
+
unset CASHER_DIR
|
61
|
+
|
62
|
+
# before install
|
63
63
|
echo \$\ vx_builder\ ruby:install\
|
64
64
|
vx_builder ruby:install
|
65
65
|
source $(cat .ruby-activate)
|
@@ -75,7 +75,7 @@ bundle --version
|
|
75
75
|
# install
|
76
76
|
echo \$\ bundle\ install\ --clean\ --retry\=3\ --jobs\=4
|
77
77
|
bundle install --clean --retry=3 --jobs=4
|
78
|
-
echo \$\ vx_builder\ ruby:rails:install
|
79
|
-
vx_builder ruby:rails:install
|
80
78
|
|
81
|
-
# before script
|
79
|
+
# before script
|
80
|
+
echo \$\ vx_builder\ ruby:rails:install
|
81
|
+
vx_builder ruby:rails:install
|
@@ -22,7 +22,7 @@ mkdir -p ${VX_ROOT}/code/vexor/vx-test-repo
|
|
22
22
|
chmod 0750 $(pwd)/bin/parallel_rspec
|
23
23
|
(echo IyEvYmluL2Jhc2gKCmk9MApmaWxlcz0oKQoKQkxBQ0s9IlwwMzNbMzBtIgpSRUQ9IlwwMzNbMzFtIgpHUkVFTj0iXDAzM1szMm0iCllFTExPVz0iXDAzM1szM20iCkJMVUU9IlwwMzNbMzRtIgpQSU5LPSJcMDMzWzM1bSIKQ1lBTj0iXDAzM1szNm0iCldISVRFPSJcMDMzWzM3bSIKTk9STUFMPSJcMDMzWzA7MzltIgoKSk9CUz0ke0NJX1BBUkFMTEVMX0pPQlM6LTF9CkpPQl9OVU1CRVI9JHtDSV9QQVJBTExFTF9KT0JfTlVNQkVSOi0wfQoKZm9yIGZpbGUgaW4gJChmaW5kIC4vZmVhdHVyZXMgLW5hbWUgIiouZmVhdHVyZSIgfCBzb3J0KQpkbwogIGlmIFsgJCgoJGkgJSAkSk9CUykpIC1lcSAkSk9CX05VTUJFUiBdCiAgdGhlbgogICAgZmlsZXMrPSIgJGZpbGUiCiAgZmkKICAoKGkrKykpCmRvbmUKCmVjaG8gLWUgIiR7R1JFRU59UGFyYWxsZWwgcnV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ZVdHWWJMZExPbnNDOWFmRXBEUGhBTmc2Z3R5VEhBbi92Uwp5WFMrVWpQYkZ4RUE3MThKUlVoZG5mU3g4bXBERjMySVVCUTJBV1FJT3hrcDFhSDVwZ1luK0pDcTRScFd4MzJZCm1xWUZLUUtCZ1FDYkVzdllsZmVXSkRpK0NCSCt6aGZrZldJWTlTaXl1SEVVUWE0aE5iYVMvRGtETWdxTjU4Q3UKOGdYR1NmdEVpVGNMYXQwYTBQNnZlYWNnUEt1aEFIZTFLN2g4NCtSMHJFL2N2MVFUQnBXMzhSUWdhYkxzK2V4eQpqeUY1UjFOSEkvTFhzREJOYWlSMDVzclhkaVNadW1MMGF3WDdyaUM0RHpJazZaWllSZGJuYlE9PQotLS0tLUVORCBSU0EgUFJJVkFURSBLRVktLS0tLQo= | base64 --decode) > ${VX_ROOT}/data/vexor/vx-test-repo/key
|
28
28
|
chmod 0600 ${VX_ROOT}/data/vexor/vx-test-repo/key
|
@@ -42,12 +42,6 @@ cd ${VX_ROOT}/code/vexor/vx-test-repo
|
|
42
42
|
echo "download latest version of vxvm"
|
43
43
|
curl --tcp-nodelay --retry 3 --fail --silent --show-error -o $VX_ROOT/bin/vxvm https://raw.githubusercontent.com/vexor/vx-packages/master/vxvm
|
44
44
|
chmod +x $VX_ROOT/bin/vxvm
|
45
|
-
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
|
46
|
-
test -f $HOME/.casher/bin/casher && casher-ruby $HOME/.casher/bin/casher fetch http://example.com/test/pull-request/rvm-default-gemfile.tgz http://example.com/master/rvm-default-gemfile.tgz || true
|
47
|
-
test -f $HOME/.casher/bin/casher && casher-ruby $HOME/.casher/bin/casher add ~/.rubygems || true
|
48
|
-
unset CASHER_DIR
|
49
|
-
|
50
|
-
# before install
|
51
45
|
echo \$\ export\ RAILS_ENV\=test
|
52
46
|
export RAILS_ENV=test
|
53
47
|
echo \$\ export\ RACK_ENV\=test
|
@@ -56,6 +50,12 @@ echo \$\ export\ BUNDLE_GEMFILE\=\$\{PWD\}/Gemfile
|
|
56
50
|
export BUNDLE_GEMFILE=${PWD}/Gemfile
|
57
51
|
echo \$\ export\ GEM_HOME\=\~/.rubygems
|
58
52
|
export GEM_HOME=~/.rubygems
|
53
|
+
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
|
54
|
+
test -f $HOME/.casher/bin/casher && casher-ruby $HOME/.casher/bin/casher fetch http://example.com/test/pull-request/rvm-default-gemfile.tgz http://example.com/master/rvm-default-gemfile.tgz || true
|
55
|
+
test -f $HOME/.casher/bin/casher && casher-ruby $HOME/.casher/bin/casher add ~/.rubygems || true
|
56
|
+
unset CASHER_DIR
|
57
|
+
|
58
|
+
# before install
|
59
59
|
echo \$\ vx_builder\ ruby:install\
|
60
60
|
vx_builder ruby:install
|
61
61
|
source $(cat .ruby-activate)
|
@@ -71,7 +71,7 @@ bundle --version
|
|
71
71
|
# install
|
72
72
|
echo \$\ bundle\ install\ --clean\ --retry\=3\ --jobs\=4
|
73
73
|
bundle install --clean --retry=3 --jobs=4
|
74
|
-
echo \$\ vx_builder\ ruby:rails:install
|
75
|
-
vx_builder ruby:rails:install
|
76
74
|
|
77
|
-
# before script
|
75
|
+
# before script
|
76
|
+
echo \$\ vx_builder\ ruby:rails:install
|
77
|
+
vx_builder ruby:rails:install
|
@@ -22,7 +22,7 @@ mkdir -p ${VX_ROOT}/code/vexor/vx-test-repo
|
|
22
22
|
chmod 0750 $(pwd)/bin/parallel_rspec
|
23
23
|
(echo IyEvYmluL2Jhc2gKCmk9MApmaWxlcz0oKQoKQkxBQ0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}/code/vexor/vx-test-repo
|
|
42
42
|
echo "download latest version of vxvm"
|
43
43
|
curl --tcp-nodelay --retry 3 --fail --silent --show-error -o $VX_ROOT/bin/vxvm https://raw.githubusercontent.com/vexor/vx-packages/master/vxvm
|
44
44
|
chmod +x $VX_ROOT/bin/vxvm
|
45
|
-
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
|
46
|
-
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
|
47
|
-
test -f $HOME/.casher/bin/casher && casher-ruby $HOME/.casher/bin/casher add ~/.rubygems || true
|
48
|
-
unset CASHER_DIR
|
49
|
-
|
50
|
-
# before install
|
51
45
|
echo \$\ export\ RAILS_ENV\=test
|
52
46
|
export RAILS_ENV=test
|
53
47
|
echo \$\ export\ RACK_ENV\=test
|
@@ -56,6 +50,12 @@ echo \$\ export\ BUNDLE_GEMFILE\=\$\{PWD\}/Gemfile
|
|
56
50
|
export BUNDLE_GEMFILE=${PWD}/Gemfile
|
57
51
|
echo \$\ export\ GEM_HOME\=\~/.rubygems
|
58
52
|
export GEM_HOME=~/.rubygems
|
53
|
+
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
|
54
|
+
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
|
55
|
+
test -f $HOME/.casher/bin/casher && casher-ruby $HOME/.casher/bin/casher add ~/.rubygems || true
|
56
|
+
unset CASHER_DIR
|
57
|
+
|
58
|
+
# before install
|
59
59
|
echo \$\ vx_builder\ ruby:install\ 1.9.3
|
60
60
|
vx_builder ruby:install 1.9.3
|
61
61
|
source $(cat .ruby-activate)
|
@@ -71,8 +71,6 @@ bundle --version
|
|
71
71
|
# install
|
72
72
|
echo \$\ bundle\ install\ --clean\ --retry\=3\ --jobs\=4
|
73
73
|
bundle install --clean --retry=3 --jobs=4
|
74
|
-
echo \$\ vx_builder\ ruby:rails:install
|
75
|
-
vx_builder ruby:rails:install
|
76
74
|
|
77
75
|
# before script
|
78
76
|
echo \$\ echo\ before\ script
|
@@ -22,7 +22,7 @@ mkdir -p ${VX_ROOT}/code/vexor/vx-test-repo
|
|
22
22
|
chmod 0750 $(pwd)/bin/parallel_rspec
|
23
23
|
(echo IyEvYmluL2Jhc2gKCmk9MApmaWxlcz0oKQoKQkxBQ0s9IlwwMzNbMzBtIgpSRUQ9IlwwMzNbMzFtIgpHUkVFTj0iXDAzM1szMm0iCllFTExPVz0iXDAzM1szM20iCkJMVUU9IlwwMzNbMzRtIgpQSU5LPSJcMDMzWzM1bSIKQ1lBTj0iXDAzM1szNm0iCldISVRFPSJcMDMzWzM3bSIKTk9STUFMPSJcMDMzWzA7MzltIgoKSk9CUz0ke0NJX1BBUkFMTEVMX0pPQlM6LTF9CkpPQl9OVU1CRVI9JHtDSV9QQVJBTExFTF9KT0JfTlVNQkVSOi0wfQoKZm9yIGZpbGUgaW4gJChmaW5kIC4vZmVhdHVyZXMgLW5hbWUgIiouZmVhdHVyZSIgfCBzb3J0KQpkbwogIGlmIFsgJCgoJGkgJSAkSk9CUykpIC1lcSAkSk9CX05VTUJFUiBdCiAgdGhlbgogICAgZmlsZXMrPSIgJGZpbGUiCiAgZmkKICAoKGkrKykpCmRvbmUKCmVjaG8gLWUgIiR7R1JFRU59UGFyYWxsZWwgcnVubmluZyAkKCgke0pPQl9OVU1CRV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GhBTmc2Z3R5VEhBbi92Uwp5WFMrVWpQYkZ4RUE3MThKUlVoZG5mU3g4bXBERjMySVVCUTJBV1FJT3hrcDFhSDVwZ1luK0pDcTRScFd4MzJZCm1xWUZLUUtCZ1FDYkVzdllsZmVXSkRpK0NCSCt6aGZrZldJWTlTaXl1SEVVUWE0aE5iYVMvRGtETWdxTjU4Q3UKOGdYR1NmdEVpVGNMYXQwYTBQNnZlYWNnUEt1aEFIZTFLN2g4NCtSMHJFL2N2MVFUQnBXMzhSUWdhYkxzK2V4eQpqeUY1UjFOSEkvTFhzREJOYWlSMDVzclhkaVNadW1MMGF3WDdyaUM0RHpJazZaWllSZGJuYlE9PQotLS0tLUVORCBSU0EgUFJJVkFURSBLRVktLS0tLQo= | base64 --decode) > ${VX_ROOT}/data/vexor/vx-test-repo/key
|
28
28
|
chmod 0600 ${VX_ROOT}/data/vexor/vx-test-repo/key
|
@@ -42,12 +42,6 @@ cd ${VX_ROOT}/code/vexor/vx-test-repo
|
|
42
42
|
echo "download latest version of vxvm"
|
43
43
|
curl --tcp-nodelay --retry 3 --fail --silent --show-error -o $VX_ROOT/bin/vxvm https://raw.githubusercontent.com/vexor/vx-packages/master/vxvm
|
44
44
|
chmod +x $VX_ROOT/bin/vxvm
|
45
|
-
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
|
46
|
-
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
|
47
|
-
test -f $HOME/.casher/bin/casher && casher-ruby $HOME/.casher/bin/casher add ~/.rubygems || true
|
48
|
-
unset CASHER_DIR
|
49
|
-
|
50
|
-
# before install
|
51
45
|
echo \$\ export\ RAILS_ENV\=test
|
52
46
|
export RAILS_ENV=test
|
53
47
|
echo \$\ export\ RACK_ENV\=test
|
@@ -56,6 +50,12 @@ echo \$\ export\ BUNDLE_GEMFILE\=\$\{PWD\}/Gemfile
|
|
56
50
|
export BUNDLE_GEMFILE=${PWD}/Gemfile
|
57
51
|
echo \$\ export\ GEM_HOME\=\~/.rubygems
|
58
52
|
export GEM_HOME=~/.rubygems
|
53
|
+
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
|
54
|
+
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
|
55
|
+
test -f $HOME/.casher/bin/casher && casher-ruby $HOME/.casher/bin/casher add ~/.rubygems || true
|
56
|
+
unset CASHER_DIR
|
57
|
+
|
58
|
+
# before install
|
59
59
|
echo \$\ vx_builder\ ruby:install\ 2.0.0
|
60
60
|
vx_builder ruby:install 2.0.0
|
61
61
|
source $(cat .ruby-activate)
|
@@ -71,8 +71,6 @@ bundle --version
|
|
71
71
|
# install
|
72
72
|
echo \$\ bundle\ install\ --clean\ --retry\=3\ --jobs\=4
|
73
73
|
bundle install --clean --retry=3 --jobs=4
|
74
|
-
echo \$\ vx_builder\ ruby:rails:install
|
75
|
-
vx_builder ruby:rails:install
|
76
74
|
|
77
75
|
# before script
|
78
76
|
echo \$\ echo\ before\ script
|
@@ -22,7 +22,7 @@ mkdir -p ${VX_ROOT}/code/vexor/vx-test-repo
|
|
22
22
|
chmod 0750 $(pwd)/bin/parallel_rspec
|
23
23
|
(echo IyEvYmluL2Jhc2gKCmk9MApmaWxlcz0oKQoKQkxBQ0s9IlwwMzNbMzBtIgpSRUQ9IlwwMzNbMzFtI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RrNjRRdjJuNDRKUApVK2tiWFNqdm5DeUlUQ2pUZXZESXNLeEh0TzB3T0xFd0I1TENCenBKVEVzandHWmNUUDBBT3Y2ZHF3SndMUHBtCnlzaVRyTEZCSDVTZFZzVE10OFVKRnhaMzNzRFdIWnZTbzBwMjFJc0NnWUI2ODhyTWs3Mmp2cEU4UkpMcERSWTIKbkg4NjVVTWJjSHNBSWw0ZWQrRElWMFlGMVpMRDBReVN5WXl5V0FteWUxcmVHUjdhbkVudnpCN05GZE0wcm9DOApNNXBWL3FlTW1kcWY0UmJEN280NXBzRGlEcXJ1TStaQnhzOFJHRzh1RStxeE5hd05oNTlxS25xOEVDRVhjaWpOClNLR0VFTE1halNTdkg5ZFp3QlFaWXdLQmdRQ2NCaGlJOWJzRjJVWm04WU10RW0zSVhFLzhIbi92R1gxcmU4V1kKclM0WkhxYjEwYkw4cG8rM3k3U2FmSUkzbjNkTWdsZVdHWWJMZExPbnNDOWFmRXBEUGhBTmc2Z3R5VEhBbi92Uwp5WFMrVWpQYkZ4RUE3MThKUlVoZG5mU3g4bXBERjMySVVCUTJBV1FJT3hrcDFhSDVwZ1luK0pDcTRScFd4MzJZCm1xWUZLUUtCZ1FDYkVzdllsZmVXSkRpK0NCSCt6aGZrZldJWTlTaXl1SEVVUWE0aE5iYVMvRGtETWdxTjU4Q3UKOGdYR1NmdEVpVGNMYXQwYTBQNnZlYWNnUEt1aEFIZTFLN2g4NCtSMHJFL2N2MVFUQnBXMzhSUWdhYkxzK2V4eQpqeUY1UjFOSEkvTFhzREJOYWlSMDVzclhkaVNadW1MMGF3WDdyaUM0RHpJazZaWllSZGJuYlE9PQotLS0tLUVORCBSU0EgUFJJVkFURSBLRVktLS0tLQo= | base64 --decode) > ${VX_ROOT}/data/vexor/vx-test-repo/key
|
28
28
|
chmod 0600 ${VX_ROOT}/data/vexor/vx-test-repo/key
|
@@ -42,13 +42,6 @@ cd ${VX_ROOT}/code/vexor/vx-test-repo
|
|
42
42
|
echo "download latest version of vxvm"
|
43
43
|
curl --tcp-nodelay --retry 3 --fail --silent --show-error -o $VX_ROOT/bin/vxvm https://raw.githubusercontent.com/vexor/vx-packages/master/vxvm
|
44
44
|
chmod +x $VX_ROOT/bin/vxvm
|
45
|
-
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
|
46
|
-
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
|
47
|
-
test -f $HOME/.casher/bin/casher && casher-ruby $HOME/.casher/bin/casher add ~/.rubygems || true
|
48
|
-
test -f $HOME/.casher/bin/casher && casher-ruby $HOME/.casher/bin/casher add ~/.rubygems || true
|
49
|
-
unset CASHER_DIR
|
50
|
-
|
51
|
-
# before install
|
52
45
|
echo \$\ export\ RAILS_ENV\=test
|
53
46
|
export RAILS_ENV=test
|
54
47
|
echo \$\ export\ RACK_ENV\=test
|
@@ -57,6 +50,13 @@ echo \$\ export\ BUNDLE_GEMFILE\=\$\{PWD\}/Gemfile
|
|
57
50
|
export BUNDLE_GEMFILE=${PWD}/Gemfile
|
58
51
|
echo \$\ export\ GEM_HOME\=\~/.rubygems
|
59
52
|
export GEM_HOME=~/.rubygems
|
53
|
+
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
|
54
|
+
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
|
55
|
+
test -f $HOME/.casher/bin/casher && casher-ruby $HOME/.casher/bin/casher add ~/.rubygems || true
|
56
|
+
test -f $HOME/.casher/bin/casher && casher-ruby $HOME/.casher/bin/casher add ~/.rubygems || true
|
57
|
+
unset CASHER_DIR
|
58
|
+
|
59
|
+
# before install
|
60
60
|
echo \$\ vx_builder\ ruby:install\ 1.9.3
|
61
61
|
vx_builder ruby:install 1.9.3
|
62
62
|
source $(cat .ruby-activate)
|
@@ -72,7 +72,7 @@ bundle --version
|
|
72
72
|
# install
|
73
73
|
echo \$\ bundle\ install\ --clean\ --retry\=3\ --jobs\=4
|
74
74
|
bundle install --clean --retry=3 --jobs=4
|
75
|
-
echo \$\ vx_builder\ ruby:rails:install
|
76
|
-
vx_builder ruby:rails:install
|
77
75
|
|
78
|
-
# before script
|
76
|
+
# before script
|
77
|
+
echo \$\ vx_builder\ ruby:rails:install
|
78
|
+
vx_builder ruby:rails:install
|
data/spec/fixtures/travis.yml
CHANGED
@@ -0,0 +1,44 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'yaml'
|
3
|
+
require 'tmpdir'
|
4
|
+
require 'fileutils'
|
5
|
+
|
6
|
+
describe "(integration) python" 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 do
|
14
|
+
system "sudo rm -rf #{path}"
|
15
|
+
end
|
16
|
+
|
17
|
+
def build(file, options = {})
|
18
|
+
config = Vx::Builder::BuildConfiguration.from_yaml(file)
|
19
|
+
matrix = Vx::Builder.matrix config
|
20
|
+
options[:task] ||= create(:task)
|
21
|
+
script = Vx::Builder.script(options[:task], matrix.build.first)
|
22
|
+
OpenStruct.new script: script, matrix: matrix
|
23
|
+
end
|
24
|
+
|
25
|
+
it "should succesfuly run lang/python", real: true do
|
26
|
+
file = {"language" => "python"}.to_yaml
|
27
|
+
task = create(
|
28
|
+
:task,
|
29
|
+
sha: "HEAD",
|
30
|
+
branch: "lang/python"
|
31
|
+
)
|
32
|
+
|
33
|
+
b = build(file, task: task)
|
34
|
+
Dir.chdir(path) do
|
35
|
+
File.open("script.sh", "w") do |io|
|
36
|
+
io.write "set -e\n"
|
37
|
+
io.write b.script.to_before_script
|
38
|
+
io.write b.script.to_script
|
39
|
+
end
|
40
|
+
system("env", "-", "USER=$USER", "HOME=#{path}", "bash", "script.sh" )
|
41
|
+
expect($?.to_i).to eq 0
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Vx::Builder::ScriptBuilder::Python do
|
4
|
+
let(:app) { ->(env) { env } }
|
5
|
+
let(:script) { described_class.new app }
|
6
|
+
let(:source) { create :source, name: "python.yml" }
|
7
|
+
let(:env) { create :env, source: source }
|
8
|
+
let(:run) { script.call env }
|
9
|
+
subject { run }
|
10
|
+
|
11
|
+
it { should eq env }
|
12
|
+
|
13
|
+
context "run it" do
|
14
|
+
subject { env }
|
15
|
+
|
16
|
+
context "should be success" do
|
17
|
+
before { run }
|
18
|
+
its(:announce) { should_not be_empty }
|
19
|
+
its(:install) { should_not be_empty }
|
20
|
+
its(:script) { should be_empty }
|
21
|
+
end
|
22
|
+
|
23
|
+
context "when script is empty" do
|
24
|
+
before do
|
25
|
+
env.source.script.clear
|
26
|
+
run
|
27
|
+
end
|
28
|
+
its(:script) { should_not be_empty }
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vx-builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.29
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitry Galinsky
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: vx-common
|
@@ -157,6 +157,7 @@ files:
|
|
157
157
|
- lib/vx/builder/script_builder/nodejs.rb
|
158
158
|
- lib/vx/builder/script_builder/parallel.rb
|
159
159
|
- lib/vx/builder/script_builder/prepare.rb
|
160
|
+
- lib/vx/builder/script_builder/python.rb
|
160
161
|
- lib/vx/builder/script_builder/ruby.rb
|
161
162
|
- lib/vx/builder/script_builder/rust.rb
|
162
163
|
- lib/vx/builder/script_builder/scala.rb
|
@@ -187,6 +188,7 @@ files:
|
|
187
188
|
- spec/fixtures/integration/ruby/matrix/d.after_script.sh
|
188
189
|
- spec/fixtures/integration/ruby/matrix/d.before_script.sh
|
189
190
|
- spec/fixtures/integration/ruby/matrix/d.script.sh
|
191
|
+
- spec/fixtures/python.yml
|
190
192
|
- spec/fixtures/scala.yml
|
191
193
|
- spec/fixtures/simple.yml
|
192
194
|
- spec/fixtures/travis.yml
|
@@ -197,6 +199,7 @@ files:
|
|
197
199
|
- spec/integration/clojure_spec.rb
|
198
200
|
- spec/integration/go_spec.rb
|
199
201
|
- spec/integration/nodejs_spec.rb
|
202
|
+
- spec/integration/python_spec.rb
|
200
203
|
- spec/integration/ruby_spec.rb
|
201
204
|
- spec/integration/rust_spec.rb
|
202
205
|
- spec/lib/builder/build_configuration/cache_spec.rb
|
@@ -215,6 +218,7 @@ files:
|
|
215
218
|
- spec/lib/builder/script_builder/env_spec.rb
|
216
219
|
- spec/lib/builder/script_builder/java_spec.rb
|
217
220
|
- spec/lib/builder/script_builder/prepare_spec.rb
|
221
|
+
- spec/lib/builder/script_builder/python_spec.rb
|
218
222
|
- spec/lib/builder/script_builder/ruby_spec.rb
|
219
223
|
- spec/lib/builder/script_builder/scala_spec.rb
|
220
224
|
- spec/lib/builder/script_builder_spec.rb
|
@@ -272,6 +276,7 @@ test_files:
|
|
272
276
|
- spec/fixtures/integration/ruby/matrix/d.after_script.sh
|
273
277
|
- spec/fixtures/integration/ruby/matrix/d.before_script.sh
|
274
278
|
- spec/fixtures/integration/ruby/matrix/d.script.sh
|
279
|
+
- spec/fixtures/python.yml
|
275
280
|
- spec/fixtures/scala.yml
|
276
281
|
- spec/fixtures/simple.yml
|
277
282
|
- spec/fixtures/travis.yml
|
@@ -282,6 +287,7 @@ test_files:
|
|
282
287
|
- spec/integration/clojure_spec.rb
|
283
288
|
- spec/integration/go_spec.rb
|
284
289
|
- spec/integration/nodejs_spec.rb
|
290
|
+
- spec/integration/python_spec.rb
|
285
291
|
- spec/integration/ruby_spec.rb
|
286
292
|
- spec/integration/rust_spec.rb
|
287
293
|
- spec/lib/builder/build_configuration/cache_spec.rb
|
@@ -300,6 +306,7 @@ test_files:
|
|
300
306
|
- spec/lib/builder/script_builder/env_spec.rb
|
301
307
|
- spec/lib/builder/script_builder/java_spec.rb
|
302
308
|
- spec/lib/builder/script_builder/prepare_spec.rb
|
309
|
+
- spec/lib/builder/script_builder/python_spec.rb
|
303
310
|
- spec/lib/builder/script_builder/ruby_spec.rb
|
304
311
|
- spec/lib/builder/script_builder/scala_spec.rb
|
305
312
|
- spec/lib/builder/script_builder_spec.rb
|