File tree 6 files changed +20
-22
lines changed
6 files changed +20
-22
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ before_script:
15
15
- if [ $TRAVIS_OS_NAME == osx ]; then travis_retry ./configure; fi
16
16
script : rake ci
17
17
after_success :
18
- - if [ $TRAVIS_BRANCH == $TRAVIS_TAG ]; then rake deploy; fi
18
+ - if [ $TRAVIS_BRANCH == $TRAVIS_TAG ]; then ./script/ deploy.sh ; fi
19
19
branches :
20
20
only :
21
21
- master
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- function rbx_script_path {
2
- local dir
3
- dir=$( dirname " $0 " )
4
-
5
- cd " $dir " && pwd
6
- }
1
+ __dir__=" $( cd $( dirname " $0 " ) && pwd) "
7
2
8
3
function rbx_git_directory {
9
- echo " $( rbx_script_path ) /../.git"
4
+ echo " $__dir__ /../.git"
10
5
}
11
6
12
7
function rbx_revision_file {
13
- echo " $( rbx_script_path ) /../.revision"
8
+ echo " $__dir__ /../.revision"
14
9
}
15
10
16
11
function rbx_get_revision {
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- source " scripts/configuration.sh"
4
- source " scripts/aws.sh"
5
- source " scripts/io.sh"
3
+ __dir__=" $( cd $( dirname " $0 " ) && pwd) "
4
+
5
+ source " $__dir__ /configuration.sh"
6
+ source " $__dir__ /aws.sh"
7
+ source " $__dir__ /io.sh"
6
8
7
9
function rbx_release_bucket {
8
10
echo " rubinius-releases-rubinius-com"
@@ -57,7 +59,7 @@ function rbx_upload_files {
57
59
if [[ $TRAVIS_OS_NAME == osx ]]; then
58
60
echo " Deploying release tarball $( rbx_release_name) ..."
59
61
60
- " $( rbx_script_path ) /release.sh" || fail " unable to build release tarball"
62
+ " $__dir__ /release.sh" || fail " unable to build release tarball"
61
63
62
64
rbx_upload_files " $( rbx_release_bucket) " " $( rbx_release_name) " " $( rbx_release_name) "
63
65
fi
66
68
if [[ $TRAVIS_OS_NAME == osx ]]; then
67
69
echo " Deploying Homebrew binary $( rbx_release_name) ..."
68
70
69
- " $( rbx_script_path ) /package.sh" homebrew || fail " unable to build Homebrew binary"
71
+ " $__dir__ /package.sh" homebrew || fail " unable to build Homebrew binary"
70
72
71
73
rbx_upload_files " $( rbx_binary_bucket) " " $( rbx_release_name) " \
72
74
" $( rbx_release_name) " " /homebrew/"
75
77
# Build and upload a binary to S3.
76
78
echo " Deploying Travis binary $( rbx_release_name) for ${TRAVIS_OS_NAME} ..."
77
79
78
- " $( rbx_script_path ) /package.sh" binary || fail " unable to build binary"
80
+ " $__dir__ /package.sh" binary || fail " unable to build binary"
79
81
80
82
declare -a paths os_releases versions
81
83
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ __dir__=" $( cd $( dirname " $0 " ) && pwd) "
4
+
5
+ source " $__dir__ /configuration.sh"
6
+
3
7
function rbx_digest_file {
4
8
local name digest
5
9
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- source " scripts/configuration.sh "
3
+ __dir__= " $( cd $( dirname " $0 " ) && pwd ) "
4
4
5
- rbx_write_revision_file
5
+ source " $__dir__ /configuration.sh "
6
6
7
- " $( rbx_script_path) /package.sh" tar
7
+ rbx_write_revision_file
8
+ " $__dir__ /package.sh" tar
You can’t perform that action at this time.
0 commit comments