Skip to content

Commit f8b741a

Browse files
committed
Merge pull request #2 from travis-ci/ha-feature-standard-upload-target
Set upload target with OS_NAME and ARCH
2 parents dbc06ce + 2c97466 commit f8b741a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ install:
2424

2525
before_script:
2626
- 'export INSTALL_DEST=${INSTALL_DEST:-/opt/python}'
27-
- 'export LSB_RELEASE=${LSB_RELEASE:-$(lsb_release -rs)}'
27+
- 'export LSB_RELEASE=${LSB_RELEASE:-$(lsb_release -rs || echo ${$(sw_vers -productVersion)%*.*})}'
28+
- 'export OS_NAME=${OS_NAME:-$(lsb_release -is | tr "A-Z" "a-z" || "osx")}'
29+
- 'export ARCH=${ARCH:-$(uname -m)}'
2830
- 'export PACKAGES=${PACKAGES:-pip numpy nose pytest mock wheel}'
2931

3032
script: ./build-python
@@ -39,4 +41,4 @@ addons:
3941
paths:
4042
- $LSB_RELEASE/
4143
target_paths:
42-
- /$LSB_RELEASE
44+
- /binaries/$OS_NAME/$LSB_RELEASE/$ARCH

0 commit comments

Comments
 (0)