Commit 6dd092d4 authored by Jeremy Bokobza's avatar Jeremy Bokobza

Added OS name and version to the output files for OSX releases

parent 4898e328
...@@ -6,28 +6,31 @@ matrix: ...@@ -6,28 +6,31 @@ matrix:
- os: linux # Ubuntu 14.04 - os: linux # Ubuntu 14.04
dist: trusty dist: trusty
sudo: required sudo: required
env: os_version=ubuntu14.04
- os: osx # OSX 10.11 - os: osx # OSX 10.11
osx_image: xcode7.3 osx_image: xcode7.3
env: os_version=10.11
- os: osx # OSX 10.12 - os: osx # OSX 10.12
osx_image: xcode8.1 osx_image: xcode8.1
env: os_version=10.12
# branches to build # branches to build
branches: branches:
only: only:
- master - master
env: env:
global: global:
- log_prefix="[$TRAVIS_OS_NAME]" - log_prefix=[$TRAVIS_OS_NAME]
- arch=x64 - arch=x64
- configuration="Release" - configuration=Release
- app_output_name="breeze-$arch-$TRAVIS_OS_NAME-Release"
- api_output_name="api-$arch-$TRAVIS_OS_NAME-Release"
- os_platform=linux - os_platform=linux
- TRAVIS_TAG=cd-unstable - TRAVIS_TAG=cd-unstable
# Work around NuGet issue #2163 # Work around NuGet issue #2163
# https://github.com/NuGet/Home/issues/2163 # https://github.com/NuGet/Home/issues/2163
# https://github.com/travis-ci/travis-ci/issues/7728 # https://github.com/travis-ci/travis-ci/issues/7728
before_install: before_install:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then ulimit -n 1024 ; os_platform=darwin ; fi - if [ "$TRAVIS_OS_NAME" = "osx" ]; then ulimit -n 1024 ; os_platform=darwin ; fi
......
...@@ -3,15 +3,21 @@ ...@@ -3,15 +3,21 @@
# exit if error # exit if error
set -o errexit set -o errexit
# define a few variables
app_output_name="breeze-$TRAVIS_OS_NAME.$os_version-$arch-$configuration"
api_output_name="api-$TRAVIS_OS_NAME.$os_version-$arch-$configuration"
echo "current environment variables:" echo "current environment variables:"
echo "OS name:" $TRAVIS_OS_NAME echo "OS name:" $TRAVIS_OS_NAME
echo "OS version:" $os_version
echo "Platform:" $os_platform echo "Platform:" $os_platform
echo "Build directory:" $TRAVIS_BUILD_DIR echo "Build directory:" $TRAVIS_BUILD_DIR
echo "Node version:" $TRAVIS_NODE_VERSION echo "Node version:" $TRAVIS_NODE_VERSION
echo "Architecture:" $arch echo "Architecture:" $arch
echo "Configuration:" $configuration echo "Configuration:" $configuration
echo "App output name" $app_output_name echo "App output name:" $app_output_name
echo "Api output name" $api_output_name echo "Api output name:" $api_output_name
dotnet --info dotnet --info
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment