Skip to content

Commit bac00f1

Browse files
author
Clement Champetier
committed
Travis: add TUTTLE_DEPLOY env variable
Warning: ${CC} is defined after 'global' scope.
1 parent 5a3e4ae commit bac00f1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ env:
2020
- DEPENDENCIES_INSTALL=${TRAVIS_BUILD_DIR}/install-dependencies
2121
- TUTTLE_BUILD=${TRAVIS_BUILD_DIR}/build-tuttle
2222
- TUTTLE_INSTALL=${TRAVIS_BUILD_DIR}/install-tuttle
23+
- TUTTLE_DEPLOY=tuttle-${_system_name}-${_system_version}-${_system_arch}
2324
- CI_NODE_TOTAL=2
2425

2526
matrix:
@@ -123,7 +124,7 @@ deploy:
123124
provider: releases
124125
api_key:
125126
secure: ${GITHUB_RELEASE_API_KEY}
126-
file: tuttle-${_system_name}-${_system_version}-${_system_arch}-${CC}.tgz
127+
file: ${TUTTLE_DEPLOY}-${CC}.tgz
127128
skip_cleanup: true
128129
on:
129130
branch: master

tools/travis/deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ fi
1313

1414
# Create archive
1515
cd ${TRAVIS_BUILD_DIR}
16-
tar -czf tuttle-${_system_name}-${_system_version}-${_system_arch}-${CC}.tgz install-tuttle
16+
tar -czf ${TUTTLE_DEPLOY}-${CC}.tgz install-tuttle

0 commit comments

Comments
 (0)