Skip to content

Commit

Permalink
Add travis_build.sh PLATFORM=mingw_on_linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Coman authored and Ben Coman committed Jan 8, 2019
1 parent 1754361 commit 42444f2
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 27 deletions.
62 changes: 37 additions & 25 deletions .travis.yml
@@ -1,3 +1,5 @@
dist: xenial

language: c

sudo: required
Expand Down Expand Up @@ -74,7 +76,7 @@ jobs:
# <<: *mac-build
#
- stage: "Stack builds"
env: ARCH="build.mingw32x86-on-linux" FLAVOR="squeak.stack.spur"
env: ARCH="mingw32x86-on-linux" FLAVOR="squeak.stack.spur"
# env: ARCH="linux64x64" FLAVOR="newspeak.stack.spur"
# - env: ARCH="linux64x64" FLAVOR="squeak.stack.spur"
# - env: ARCH="linux32x86" FLAVOR="newspeak.stack.spur"
Expand Down Expand Up @@ -139,27 +141,37 @@ script: ./scripts/ci/travis_test.sh
after_success: (cd deploy && ./filter-exec.sh pack-vm.sh)

deploy:
- provider: script # Deploy bleeding edge to Bintray
script: (cd deploy && ./bintray.sh)
skip_cleanup: true
on:
repo: OpenSmalltalk/opensmalltalk-vm
branch: Cog
- provider: script # Deploy to files.pharo.org
script: (cd deploy/pharo && ./filter-exec.sh ./deploy.sh)
skip_cleanup: true
on:
repo: OpenSmalltalk/opensmalltalk-vm
branch: Cog
condition: $FLAVOR == pharo*
- provider: releases # Deploy stable tags to GitHub releases
api_key:
secure: ASzbVm1ootfvzfAYm50rWCfIvwp/O+6N1NMv2lymvswj/sGW7MxmYGHj2UNtLg9OAD+lL9YyElyy94MCpSK496+pD7GrOdRAitilMreWR6jGab0D92pPcujMAsDDSRTPNZsui1kvK1skWGMCN41mXLlwtCxSqWdhQ1viMmjXeK29TJbHykFEdfgZc6RcB97NdMyz6Pp9uqbxXSA656UxeLJzsKX88mXFcd5983pVt1ME8dfeUC9dwTihG5IAEg3Uz6HDxcR3uero0alLXycer5zI1kHLede03aNNvcRcUnVjBa5rNY8ON884DblDC+lcc+8b104MQTAGKWbyibjpm+9b0oWJV/tB20VdJUxZ2MpuktLzUrFBjVFjSrB5NmkITtJ1o+eYmjJOzWZNqFueNIsEkbGItDQJkKhNySBnUZ3/gyxnTBwmulUF2i8dimdwAuZlMiTN5mqpSLzLCE9ZrGWz9zuuCCombvpNIAc2IMsaTlpj391TjQfqGvu+Z88hmJOmDwpdUsGwNHo+Cz1N+KivAfySgj1T+CfE4xnuKOQzVbUK1Aqv/uGl1ieS1MfgyrqfgvRWEcGQh7/35n6yxG5s2z1qrs9Vl0e0rN261GQuK5ElNsQSLVRNH13+PdDwTCEZ/APzo+0uGRGTmGKJtzAofmkeAsrwmgGJPAuip/0=
file_glob: true
file: "./products/*.{dmg,gz,zip}"
skip_cleanup: true
on:
repo: OpenSmalltalk/opensmalltalk-vm
tags: true

after_deploy: (cd deploy && ./filter-exec.sh bintray-cleanup.sh)
provider: releases
api_key:
secure: EFljC5ULmJB72SoG1z2gpCaViUTAkkYVdqlgw9RIi6GawRnoeOarnl+9ejDL8o2wMcWFioqfiYlgzThMuzU4YHUQUsW1IS4QIihtOCu6oWx2VpWp4PjpEi2Z1AYWVDVjKxckil2GTyu+LVSPf7tKyLjw9whEQOV9R/GJ8fLaTEXysholWvQy87AepsMDi1G3REuGJv8sL7fB+5iSRCZlJPR06I9Cu6nCwueCZh70QQlCs+IA/d40nYu7p77CQoo27Pe5PhNiNAVmp4hC6ENHNjKiJ/66/BIbrWVc8NESa0Kvw5LYiQO++1YetH0t7uNy+IARAQMoPbSmD2+Gjsl5aTogZMbDSEpFiHav+pqFRhkime+K9n+HOXIiKQ7ym3EiVJ/3cx/9qv7iYMoRBZOI5AkmEfJeIyxnqtsK97aaTBk55e4ezrat4pduUykwFdYio+yHshkziXj72id3q4JzRJYavm1tlDhrLvObkTati0aXAoWE+iPAttcIKPB8f40GpF9LRYqRmyWwYYSVFTCHTu/YEx8VuOr/8rny6PgXhoM9CedsaZ6YZ4O14h9HIYsRSxWTxS5eZrrsdtPGKMYgNzpcaMHuZ82zw+A6Lc8aBfVzoscu/YAH3fxJHo2fq+ZqcBj3joYX5X+ZAxKE9C/Q2T0bQKELG89rgY8rLpBgg38=
skip_cleanup: true
file_glob: true
file:
- artifacts/*
on:
tags: true
repo: bencoman/travis-mingw-test
# - provider: script # Deploy bleeding edge to Bintray
# script: (cd deploy && ./bintray.sh)
# skip_cleanup: true
# on:
# repo: OpenSmalltalk/opensmalltalk-vm
# branch: Cog
# - provider: script # Deploy to files.pharo.org
# script: (cd deploy/pharo && ./filter-exec.sh ./deploy.sh)
# skip_cleanup: true
# on:
# repo: OpenSmalltalk/opensmalltalk-vm
# branch: Cog
# condition: $FLAVOR == pharo*
# - provider: releases # Deploy stable tags to GitHub releases
# api_key:
# secure: ASzbVm1ootfvzfAYm50rWCfIvwp/O+6N1NMv2lymvswj/sGW7MxmYGHj2UNtLg9OAD+lL9YyElyy94MCpSK496+pD7GrOdRAitilMreWR6jGab0D92pPcujMAsDDSRTPNZsui1kvK1skWGMCN41mXLlwtCxSqWdhQ1viMmjXeK29TJbHykFEdfgZc6RcB97NdMyz6Pp9uqbxXSA656UxeLJzsKX88mXFcd5983pVt1ME8dfeUC9dwTihG5IAEg3Uz6HDxcR3uero0alLXycer5zI1kHLede03aNNvcRcUnVjBa5rNY8ON884DblDC+lcc+8b104MQTAGKWbyibjpm+9b0oWJV/tB20VdJUxZ2MpuktLzUrFBjVFjSrB5NmkITtJ1o+eYmjJOzWZNqFueNIsEkbGItDQJkKhNySBnUZ3/gyxnTBwmulUF2i8dimdwAuZlMiTN5mqpSLzLCE9ZrGWz9zuuCCombvpNIAc2IMsaTlpj391TjQfqGvu+Z88hmJOmDwpdUsGwNHo+Cz1N+KivAfySgj1T+CfE4xnuKOQzVbUK1Aqv/uGl1ieS1MfgyrqfgvRWEcGQh7/35n6yxG5s2z1qrs9Vl0e0rN261GQuK5ElNsQSLVRNH13+PdDwTCEZ/APzo+0uGRGTmGKJtzAofmkeAsrwmgGJPAuip/0=
# file_glob: true
# file: "./products/*.{dmg,gz,zip}"
# skip_cleanup: true
# on:
# repo: OpenSmalltalk/opensmalltalk-vm
# tags: true
#
#after_deploy: (cd deploy && ./filter-exec.sh bintray-cleanup.sh)
25 changes: 24 additions & 1 deletion scripts/ci/travis_build.sh
@@ -1,5 +1,5 @@
#!/bin/bash -x
set -e
set -e

env

Expand All @@ -19,6 +19,8 @@ if [[ "${APPVEYOR}" ]]; then
echo
test -d /usr/i686-w64-mingw32/sys-root/mingw/lib || echo "No lib dir"
test -d /usr/i686-w64-mingw32/sys-root/mingw/include || echo "No inc dir"
elif [[ "${ARCH}" == "mingw"*"on-linux" ]]; then
PLATFORM="mingw_on_linux"
else
PLATFORM="${TRAVIS_OS_NAME}"
fi
Expand Down Expand Up @@ -116,6 +118,27 @@ build_windows() {
popd
}

build_mingw_on_linux() {
[[ ! -d "${BUILD_DIRECTORY}" ]] && exit 150

pushd "${BUILD_DIRECTORY}"
travis_fold start build_vm "Building OpenSmalltalk VM..."
find /usr/bin | grep mingw | grep gcc
echo PATH=${PATH}
bash -e ./mvm -f
travis_fold end build_vm

pwd
ls -F
ZIPFILE="Squeak-${ARCH}-${FLAVOUR}Windows"
zip -r $ZIPFILE . build/
popd
mkdir -p artifacts
mv `find . -name "${ZIPFILE}*"` artifacts
ls -F
ls -F artifacts
}

if [[ ! $(type -t build_$PLATFORM) ]]; then
echo "Unsupported platform '$(uname -s)'." 1>&2
exit 99
Expand Down
6 changes: 5 additions & 1 deletion scripts/ci/travis_test.sh
Expand Up @@ -2,8 +2,12 @@
set -e

# Don't run tests on ARM (ARM builds already take a long time)
[[ "${ARCH}" == *"ARM"* ]] && exit 0
[[ "${ARCH}" == *"ARM"* ]] && exit 0

# Can't test a Windows executable on a Linux box
[[ "${ARCH}" == *"mingw"* ]] && exit 0

# Test these...
case "${FLAVOR}" in
"squeak"*|"pharo"*)
"./tests/smalltalkCI.sh"
Expand Down

0 comments on commit 42444f2

Please sign in to comment.