diff options
author | Tristan Gingold <tgingold@free.fr> | 2017-08-17 07:36:01 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2017-08-17 07:36:01 +0200 |
commit | 8b18c354be419a2d3022a70d763fc7a5470fea44 (patch) | |
tree | 4f01c8c23107b58874bd2f1f628b8744b4aca3d4 /dist/linux | |
parent | 16229d80d577d320a600b32f67f4767d763dfc4d (diff) | |
download | ghdl-8b18c354be419a2d3022a70d763fc7a5470fea44.tar.gz ghdl-8b18c354be419a2d3022a70d763fc7a5470fea44.tar.bz2 ghdl-8b18c354be419a2d3022a70d763fc7a5470fea44.zip |
travis-ci: try build on macos x
Diffstat (limited to 'dist/linux')
-rwxr-xr-x | dist/linux/docker-buildtest.sh | 4 | ||||
-rwxr-xr-x | dist/linux/travis-ci.sh | 36 |
2 files changed, 23 insertions, 17 deletions
diff --git a/dist/linux/docker-buildtest.sh b/dist/linux/docker-buildtest.sh index a3f38a32c..f34fc246d 100755 --- a/dist/linux/docker-buildtest.sh +++ b/dist/linux/docker-buildtest.sh @@ -53,7 +53,7 @@ if [ -n "$GRAB_SRCS" ]; then p="$p && mv ghdl-master/* ./ && rm -rf ghdl-master" set +e - docker run --name ghdl_cmp -t "$DOCKER_IMG" sh -c "$p &&./dist/linux/buildtest.sh $ENABLECOLOR-t $TASK -b $BLD -f $PKG_FILE" + docker run --name ghdl_cmp -t "$DOCKER_IMG" sh -c "$p &&./dist/linux/buildtest.sh $ENABLECOLOR -t $TASK -b $BLD -f $PKG_FILE" docker cp "ghdl_cmp:/work/log.log" "./log.log" set -e docker cp "ghdl_cmp:/work/$PKG_FILE" ./ @@ -61,6 +61,6 @@ if [ -n "$GRAB_SRCS" ]; then else - docker run --rm -tv $(pwd):/work:Z -w="/work" "$DOCKER_IMG" sh -c "./dist/linux/buildtest.sh $ENABLECOLOR-t $TASK -b $BLD -f $PKG_FILE" + docker run --rm -tv $(pwd):/work:Z -w="/work" "$DOCKER_IMG" sh -c "./dist/linux/buildtest.sh $ENABLECOLOR -t $TASK -b $BLD -f $PKG_FILE" fi diff --git a/dist/linux/travis-ci.sh b/dist/linux/travis-ci.sh index c79ef222b..55f30d270 100755 --- a/dist/linux/travis-ci.sh +++ b/dist/linux/travis-ci.sh @@ -1,8 +1,28 @@ #! /bin/bash # This script is executed in the travis-ci environment. +. dist/ansi_color.sh +#disable_color + +# Display env (to debug) +printf "$ANSI_YELLOW[TRAVIS] Travis environment $ANSI_NOCOLOR\n" +env | grep TRAVIS + +PKG_SHORTCOMMIT="$(printf $TRAVIS_COMMIT | cut -c1-10)" +PKG_VER=`grep Ghdl_Ver src/version.in | sed -e 's/.*"\(.*\)";/\1/'` +PKG_TAG="$TRAVIS_TAG" +if [ -z "$TRAVIS_TAG" ]; then + PKG_TAG="$(date -u +%Y%m%d)-$PKG_SHORTCOMMIT"; +fi + +# OS-X + if [ "$TRAVIS_OS_NAME" = "osx" ]; then - echo "OS X build not yet supported" + ./dist/macosx/install-ada.sh + PATH=$PWD/gnat/bin:$PATH + DBLD=mcode + DDIST=macosx + ./dist/linux/buildtest.sh $ENABLE_COLOR -t 0 -b "$DBLD" -f "ghdl-$PKG_TAG-$DBLD-$DDIST.tgz" exit fi @@ -24,20 +44,6 @@ thismatrix=regular #--- -. dist/ansi_color.sh -#disable_color - -# Display env (to debug) -printf "$ANSI_YELLOW[TRAVIS] Travis environment $ANSI_NOCOLOR\n" -env | grep TRAVIS - -PKG_SHORTCOMMIT="$(printf $TRAVIS_COMMIT | cut -c1-10)" -PKG_VER=`grep Ghdl_Ver src/version.in | sed -e 's/.*"\(.*\)";/\1/'` -PKG_TAG="$TRAVIS_TAG" -if [ -z "$TRAVIS_TAG" ]; then - PKG_TAG="$(date -u +%Y%m%d)-$PKG_SHORTCOMMIT"; -fi - cloned=$(pwd) #### Per build function |