Skip to content

Commit 76eb3bf

Browse files
committed
Set upload target with OS_NAME and ARCH
1 parent dbc06ce commit 76eb3bf

File tree

1 file changed

+20
-18
lines changed

1 file changed

+20
-18
lines changed

.travis.yml

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,23 @@ install:
2222
- sudo git pull
2323
- popd
2424

25-
before_script:
26-
- 'export INSTALL_DEST=${INSTALL_DEST:-/opt/python}'
27-
- 'export LSB_RELEASE=${LSB_RELEASE:-$(lsb_release -rs)}'
28-
- 'export PACKAGES=${PACKAGES:-pip numpy nose pytest mock wheel}'
29-
30-
script: ./build-python
31-
32-
after_success: ./create-archive
33-
34-
after_failure:
35-
- cat /tmp/python-build.*.log
36-
37-
addons:
38-
artifacts:
39-
paths:
40-
- $LSB_RELEASE/
41-
target_paths:
42-
- /$LSB_RELEASE
25+
before_script:
26+
- 'export INSTALL_DEST=${INSTALL_DEST:-/opt/python}'
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)}'
30+
- 'export PACKAGES=${PACKAGES:-pip numpy nose pytest mock wheel}'
31+
32+
script: ./build-python
33+
34+
after_success: ./create-archive
35+
36+
after_failure:
37+
- cat /tmp/python-build.*.log
38+
39+
addons:
40+
artifacts:
41+
paths:
42+
- $LSB_RELEASE/
43+
target_paths:
44+
- /binaries/$OS_NAME/$LSB_RELEASE/$ARCH

0 commit comments

Comments
 (0)