travis-ci bits: try to avoid failure-flagging on transient connectivity issues

Attempt to test whether Lua fetch succeeded (and pdcurses for windows
and msdos as well)

If those prerequisite fetches and untars didn't work, just exit without
marking the travis-ci build as a failure so that the development team
isn't notified about something transient that they don't need to fix
in the code.
This commit is contained in:
nhmall
2020-01-20 11:10:16 -05:00
parent b444698005
commit 57e0e30d10
4 changed files with 81 additions and 32 deletions
+64 -27
View File
@@ -1,21 +1,37 @@
language: c language: c
matrix: matrix:
include: include:
- os: linux - name: linux-xenial-gcc
env: DESCR=linux-xenial-gcc HINTS=linux os: linux
env: HINTS=linux LUA_VERSION=5.3.5
compiler: gcc compiler: gcc
script: "cd sys/unix/ && sh setup.sh hints/$HINTS && cd ../../ && make fetch-lua && make install" script:
- os: linux - cd sys/unix/ && sh setup.sh hints/$HINTS && cd ../../
env: DESCR=linux-bionic-gcc HINTS=linux - make fetch-lua
- test -d "lib/lua-$LUA_VERSION/src" || exit 0
- make install
- name: linux-bionic-gcc
os: linux
env: HINTS=linux LUA_VERSION=5.3.5
dist: bionic dist: bionic
compiler: gcc compiler: gcc
script: "cd sys/unix/ && sh setup.sh hints/$HINTS && cd ../../ && make fetch-lua && make install" script:
- os: linux - cd sys/unix/ && sh setup.sh hints/$HINTS && cd ../../
env: DESCR=linux-xenial-clang HINTS=linux - make fetch-lua
- test -d "lib/lua-$LUA_VERSION/src" || exit 0
- make install
- name: linux-xenial-clang
os: linux
env: HINTS=linux LUA_VERSION=5.3.5
compiler: clang compiler: clang
script: "cd sys/unix/ && sh setup.sh hints/$HINTS && cd ../../ && make fetch-lua && make install" script:
- os: linux - cd sys/unix/ && sh setup.sh hints/$HINTS && cd ../../
env: DESCR=linux-xenial-gcc-x11 HINTS=linux-x11 - make fetch-lua
- test -d "lib/lua-$LUA_VERSION/src" || exit 0
- make install
- name: linux-xenial-gcc-x11
os: linux
env: HINTS=linux-x11 LUA_VERSION=5.3.5
compiler: gcc compiler: gcc
addons: addons:
apt: apt:
@@ -23,9 +39,14 @@ matrix:
- libx11-dev - libx11-dev
- libxaw7-dev - libxaw7-dev
- xfonts-utils - xfonts-utils
script: "cd sys/unix/ && sh setup.sh hints/$HINTS && cd ../../ && make fetch-lua && make install" script:
- os: linux - cd sys/unix/ && sh setup.sh hints/$HINTS && cd ../../
env: DESCR=linux-xenial-gcc-qt5 HINTS=linux-qt5 - make fetch-lua
- test -d "lib/lua-$LUA_VERSION/src" || exit 0
- make install
- name: linux-xenial-gcc-qt5
os: linux
env: HINTS=linux-qt5 LUA_VERSION=5.3.5
compiler: gcc compiler: gcc
addons: addons:
apt: apt:
@@ -36,9 +57,14 @@ matrix:
- qtbase5-dev - qtbase5-dev
- qtmultimedia5-dev - qtmultimedia5-dev
- qtbase5-dev-tools - qtbase5-dev-tools
script: "cd sys/unix/ && sh setup.sh hints/$HINTS && cd ../../ && make fetch-lua && make QT_SELECT=5 MOC=moc install" script:
- os: linux - cd sys/unix/ && sh setup.sh hints/$HINTS && cd ../../
env: DESCR=linux-bionic-gcc-x11 HINTS=linux-x11 - make fetch-lua
- test -d "lib/lua-$LUA_VERSION/src" || exit 0
- make QT_SELECT=5 MOC=moc install
- name: linux-bionic-gcc-x11
os: linux
env: HINTS=linux-x11 LUA_VERSION=5.3.5
dist: bionic dist: bionic
compiler: gcc compiler: gcc
addons: addons:
@@ -47,9 +73,14 @@ matrix:
- libx11-dev - libx11-dev
- libxaw7-dev - libxaw7-dev
- xfonts-utils - xfonts-utils
script: "cd sys/unix/ && sh setup.sh hints/$HINTS && cd ../../ && make fetch-lua && make install" script:
- os: linux - cd sys/unix/ && sh setup.sh hints/$HINTS && cd ../../
env: DESCR=linux-xenial-gcc-minimal HINTS=linux-minimal - make fetch-lua
- test -d "lib/lua-$LUA_VERSION/src" || exit 0
- make install
- name: linux-xenial-gcc-minimal
os: linux
env: HINTS=linux-minimal LUA_VERSION=5.3.5
compiler: gcc compiler: gcc
script: | script: |
cd sys/unix/ && sh setup.sh hints/$HINTS && cd ../../ cd sys/unix/ && sh setup.sh hints/$HINTS && cd ../../
@@ -72,31 +103,37 @@ matrix:
sed -i '/^#define SHELL/d' include/unixconf.h sed -i '/^#define SHELL/d' include/unixconf.h
sed -i '/^#define SUSPEND/d' include/unixconf.h sed -i '/^#define SUSPEND/d' include/unixconf.h
sed -i 's/^#define TEXTCOLOR//' include/unixconf.h sed -i 's/^#define TEXTCOLOR//' include/unixconf.h
make fetch-lua && make install make fetch-lua
test -d "lib/lua-$LUA_VERSION/src" || exit 0
make install
cat dat/options cat dat/options
- os: windows - name: windows-visualstudio
env: DESCR=windows-visualstudio os: windows
language: shell language: shell
script: script:
- ./win/win32/vs2017/travisci.sh - ./win/win32/vs2017/travisci.sh
- os: windows - name: windows-mingw
os: windows
# install: choco install mingw # install: choco install mingw
env: DESCR=windows-mingw
script: script:
- sh sys/winnt/travis-gcc.sh - sh sys/winnt/travis-gcc.sh
- test -d "lib/lua-$LUA_VERSION/src" || exit 0
- test -d "lib/pdcurses" || exit 0
- export ADD_CURSES=Y - export ADD_CURSES=Y
- export PDCURSES_TOP=../lib/pdcurses - export PDCURSES_TOP=../lib/pdcurses
- export LUA_VERSION=5.3.5 - export LUA_VERSION=5.3.5
- cd src - cd src
- cp ../sys/winnt/Makefile.gcc ./Makefile - cp ../sys/winnt/Makefile.gcc ./Makefile
- mingw32-make install - mingw32-make install
- os: linux - name: msdos crosscompile on linux
env: DESCR=msdos-cross-on-linux HINTS=linux LUA_VERSION=5.3.5 os: linux
env: HINTS=linux LUA_VERSION=5.3.5
compiler: gcc compiler: gcc
script: script:
# - export # - export
- cd sys/unix/ && sh setup.sh hints/$HINTS && cd ../../ - cd sys/unix/ && sh setup.sh hints/$HINTS && cd ../../
- make fetch-lua - make fetch-lua
- test -d "lib/lua-$LUA_VERSION/src" || exit 0
- cd lib/lua-$LUA_VERSION/src && make a && cd ../../.. - cd lib/lua-$LUA_VERSION/src && make a && cd ../../..
- sh sys/msdos/msdos-cross-compile.sh - sh sys/msdos/msdos-cross-compile.sh
exclude: exclude:
+6
View File
@@ -74,6 +74,12 @@ fi
cd ../ cd ../
# Don't fail the build if lua fetch failed because we cannot do anything about it
# but don't bother proceeding forward either
if [ ! -d "lib/lua-$LUA_VERSION/src" ]; then
exit 0
fi
#echo after dos extender #echo after dos extender
cd src cd src
+1 -1
View File
@@ -2,7 +2,7 @@ set -x
mkdir -p lib mkdir -p lib
cd lib cd lib
git clone --depth 1 https://github.com/wmcbrine/PDCurses.git pdcurses git clone --depth 1 https://github.com/wmcbrine/PDCurses.git pdcurses
git clone --depth 1 https://github.com/universal-ctags/ctags.git ctags #git clone --depth 1 https://github.com/universal-ctags/ctags.git ctags
curl -R -O http://www.lua.org/ftp/lua-5.3.5.tar.gz curl -R -O http://www.lua.org/ftp/lua-5.3.5.tar.gz
tar zxf lua-5.3.5.tar.gz tar zxf lua-5.3.5.tar.gz
cd ../ cd ../
+10 -4
View File
@@ -24,15 +24,21 @@ export LIB=/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio/$VSVER/$TOOLSVER
export LIB=/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio/$VSVER/$TOOLSVER/VC/Tools/MSVC/$MSVER/lib/x86:$LIB export LIB=/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio/$VSVER/$TOOLSVER/VC/Tools/MSVC/$MSVER/lib/x86:$LIB
export LIB=/c/Program\ Files\ \(x86\)/Windows\ Kits/10/lib/$WKITVER/ucrt/x86:$LIB export LIB=/c/Program\ Files\ \(x86\)/Windows\ Kits/10/lib/$WKITVER/ucrt/x86:$LIB
export LIB=/c/Program\ Files\ \(x86\)/Windows\ Kits/10/lib/$WKITVER/um/x86:$LIB export LIB=/c/Program\ Files\ \(x86\)/Windows\ Kits/10/lib/$WKITVER/um/x86:$LIB
export LUA_VERSION=5.3.5
mkdir -p lib mkdir -p lib
cd lib cd lib
git clone --depth 1 https://github.com/wmcbrine/PDCurses.git pdcurses git clone --depth 1 https://github.com/wmcbrine/PDCurses.git pdcurses
git clone --depth 1 https://github.com/universal-ctags/ctags.git ctags #git clone --depth 1 https://github.com/universal-ctags/ctags.git ctags
curl -R -O http://www.lua.org/ftp/lua-5.3.5.tar.gz curl -R -O http://www.lua.org/ftp/lua-5.3.5.tar.gz
tar zxf lua-5.3.5.tar.gz tar zxf lua-5.3.5.tar.gz
cd ctags #cd ctags
nmake -f mk_mvc.mak #nmake -f mk_mvc.mak
cd ../../ #cd ../../
cd ../
test -d "lib/lua-$LUA_VERSION/src" || echo "Lua-$LUA_VERSION fetch failed"
test -d "lib/pdcurses" || echo "pdcurses fetch failed"
test -d "lib/pdcurses" || exit 0
test -d "lib/lua-$LUA_VERSION/src" || exit 0
export ADD_CURSES=Y export ADD_CURSES=Y
export PDCURSES_TOP=../lib/pdcurses export PDCURSES_TOP=../lib/pdcurses
export export