Skip to content

Commit

Permalink
Add shared release script for osx and linux
Browse files Browse the repository at this point in the history
Also: Use DEPLOY_NAME value as the name of the release package.
  • Loading branch information
rqelibari committed Sep 17, 2018
1 parent dace711 commit 81247d5
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 11 deletions.
9 changes: 5 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ matrix:
- name: MacOS Python Interface Build
os: osx
osx_image: xcode9.4
env:
- DEPLOY_NAME="osx-python"
- name: Linux Python Interface Build
os: linux
dist: trusty
env:
- CXX="g++-6" CC="gcc-6" SWIG_PYTHON=ON SWIG_MATLAB=OFF # no MATLAB support for gcc>=5
- CXX="g++-5" CC="gcc-5" SWIG_PYTHON=ON SWIG_MATLAB=OFF
- CXX="g++-4.9" CC="gcc-4.9" SWIG_PYTHON=ON SWIG_MATLAB=ON COVERAGE="lcov"
- CXX="clang++-3.7" CC="clang-3.7" SWIG_PYTHON=ON SWIG_MATLAB=OFF
- DEPLOY_NAME="linux-python"
- CXX="g++-6"
- CC="gcc-6"

cache:
ccache: true
Expand Down
4 changes: 3 additions & 1 deletion ci/linux/after_success.sh
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
#!/bin/bash -e
#!/bin/bash -e

source "${SHARED_SCRIPT_DIR}/after_success_package_release.sh";
7 changes: 1 addition & 6 deletions ci/osx/after_success.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
#!/bin/bash -e

ACADOS_INSTALL_DIR="${ACADOS_INSTALL_DIR:-${HOME}/acados}";
DEPLOY_FOLDER="${DEPLOY_FOLDER:-${HOME}/deploy}";

pushd "${ACADOS_INSTALL_DIR}";
tar -zcf ${DEPLOY_FOLDER}/osx.tar.gz ./lib ./include;
popd;
source "${SHARED_SCRIPT_DIR}/after_success_package_release.sh";
9 changes: 9 additions & 0 deletions ci/shared/after_success_package_release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash -e

ACADOS_INSTALL_DIR="${ACADOS_INSTALL_DIR:-${HOME}/acados}";
DEPLOY_FOLDER="${DEPLOY_FOLDER:-${HOME}/deploy}";
DEPLOY_NAME="${DEPLOY_NAME:-default}";

pushd "${ACADOS_INSTALL_DIR}";
tar -zcf ${DEPLOY_FOLDER}/${DEPLOY_NAME}.tar.gz ./lib ./include;
popd;

0 comments on commit 81247d5

Please sign in to comment.