Skip to content

Commit

Permalink
Add osx build/release
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardt committed Aug 9, 2019
1 parent e271182 commit 874b64f
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 20 deletions.
48 changes: 29 additions & 19 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,29 @@
dist: trusty
language: c++
compiler:
- clang
- gcc
sudo: true
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
- verilator
matrix:
include:
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
- verilator
env:
- CC=gcc-7
- CXX=g++-7
- os: osx
osx_image: xcode10.2
before_install:
# install conda for py 3.7
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh
else
# install conda for py 3.7
wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
fi
- chmod +x miniconda.sh
- ./miniconda.sh -b -p $TRAVIS_BUILD_DIR/miniconda
- export PATH=$TRAVIS_BUILD_DIR/miniconda/bin:$PATH
Expand All @@ -25,7 +35,6 @@ before_install:
- conda install pip
# End install conda
- export CXX="g++-7";
- export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
- cd build
- cmake ..
- make -j2
Expand All @@ -37,20 +46,21 @@ script:
- pytest tests/binary
- make -j2 installtest
- cd build && sudo make -j2 uninstall && cd ..
- export LD_LIBRARY_PATH=`pwd`/lib:$LD_LIBRARY_PATH
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
export LD_LIBRARY_PATH=`pwd`/lib:$LD_LIBRARY_PATH
else
export DYLD_LIBRARY_PATH=`pwd`/lib:$DYLD_LIBRARY_PATH
fi
- make -j2 test
- cd build && ctest -V && cd ..
compiler:
- gcc
os:
- linux
before_deploy:
- ./tools/scripts/release.sh
deploy:
provider: releases
api_key:
secure: ov1UJzIPDhQpIFlItxEI1d+1YZmW2UU83cXZTLm+Wl4m+Uanab1r3s9UakGW8OqwTDmKu1JHba876lC1YWcO6K9o6iAx8YVqTFKh89kOGs1V2vfkgMHVkV+x+AcxwUJJDOv0J2KCntLU6O7babm5peLMkctqsyfiOHK4muedKxpMLG6ZFyKit42yqXp2uLKJF7SvLtSBV7hSFST8fnt05Whxu4m8YP5qAQEKLkfo77dPS4/RXjo02ac5mTVEXklB8xvNvuPDNq1rWS/+0H83XMO3dJcDKYD6hOV48/pE17Imli6SEVMUwXsTAoGHRocfKXQRZS36mMD139YhDydZTckmlDVMN1P/+yKzsGg58cX9Z6AAp0fu2i/5myqbqH/m14JBlyZrvL8KuDL1uJvzwr6mbrlQGphOAOoGLNN3ziPAmJRdw4y73UCJjaK5I875O+YtCDmgadtlZp3QfTCUj9u/WsS8lFKv72tggWLf2gri3krfUQaFxHni2gMJY2DMeqFXh6g5/QY+naCoYQ2tFt6ORZZiB7K3iLe7hSh3BPq7/gvC/BV+pjaQMvH3YA8K9jDhn+SObhykR1yB2EAi8JpjOm2HfSHK2wvjPlwzsQQ2/0K9j8SwzChMJ+4s9gbPGOjiYatAMXIl61OlT8KkTrDfJp+lOMasLBaQDMYthfs=
file: coreir.tar.gz
file: coreir-${TRAVIS_OS_NAME}
skip_cleanup: true
on:
repo: rdaly525/coreir
Expand Down
3 changes: 2 additions & 1 deletion tools/scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ cp -r lib release/.
#cmake -DCMAKE_BUILD_TYPE=release ..
#make -j8
#cd ..
tar -zcvf coreir.tar.gz release
cp -r release coreir-${TRAVIS_OS_NAME}
tar -zcvf coreir-${TRAVIS_OS_NAME}.tar.gz coreir-${TRAVIS_OS_NAME}

0 comments on commit 874b64f

Please sign in to comment.