Skip to content
Snippets Groups Projects

Reduce ci overhead

1 file
+ 31
122
Compare changes
  • Side-by-side
  • Inline
+ 31
122
stages:
- build
- unit-tests
- functional-tests
variables:
variables:
GIT_SUBMODULE_STRATEGY: normal
GIT_SUBMODULE_STRATEGY: normal
build:linux:
linux:
image: registry.videolan.org/medialibrary:20190121111050
image: registry.videolan.org/medialibrary:20190121111050
tags:
tags:
- debian
- debian
- amd64
- amd64
except:
- schedules
stage: build
script:
script:
- ./bootstrap
- ./bootstrap
- ./configure --enable-tests
- ./configure --enable-tests
- make -j4
- make -j4
- make -j4 check
- make -j4 check
artifacts:
- ./unittest
paths:
- ./samples -v
- unittest
- samples
- .libs/
unit-tests:linux:
win32:
image: registry.videolan.org/medialibrary:20190121111050
tags:
- debian
- amd64
except:
- schedules
stage: unit-tests
dependencies:
- build:linux
script:
- ./unittest
functional-tests:linux:
image: registry.videolan.org/medialibrary:20190121111050
tags:
- debian
- amd64
except:
- schedules
stage: functional-tests
dependencies:
- build:linux
script:
- ./samples -v
build:win32:
image: registry.videolan.org/medialibrary-win32:20190121122230
image: registry.videolan.org/medialibrary-win32:20190121122230
tags:
tags:
- win32
- win32
except:
- schedules
stage: build
script:
script:
- export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/prefix/lib/pkgconfig"
- export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/prefix/lib/pkgconfig"
- ./bootstrap
- ./bootstrap
- ./configure --enable-tests --host=i686-w64-mingw32 --disable-shared
- ./configure --enable-tests --host=i686-w64-mingw32 --disable-shared
- make -j4
- make -j4
- make -j4 check
- make -j4 check
artifacts:
- cp /prefix/dll/libvlc.dll .
paths:
- cp /prefix/dll/libvlccore.dll .
- unittest.exe
- ln -s /prefix/lib/vlc/plugins/ .
- samples.exe
- wine unittest.exe
- .libs/
- wine samples.exe -v
unit-tests:win32:
image: registry.videolan.org/medialibrary-win32:20190121122230
tags:
- win32
except:
- schedules
stage: unit-tests
dependencies:
- build:win32
script:
- cp /prefix/dll/libvlc.dll .
- cp /prefix/dll/libvlccore.dll .
- ln -s /prefix/lib/vlc/plugins/ .
- file libvlc.dll
- file unittest.exe
- wine unittest.exe
functional-tests:win32:
image: registry.videolan.org/medialibrary-win32:20190121122230
tags:
- win32
except:
- schedules
stage: functional-tests
dependencies:
- build:win32
script:
- cp /prefix/dll/libvlc.dll .
- cp /prefix/dll/libvlccore.dll .
- ln -s /prefix/lib/vlc/plugins/ .
- wine samples.exe -v
build:win64:
win64:
image: registry.videolan.org/medialibrary-win64:20190121124804
image: registry.videolan.org/medialibrary-win64:20190121124804
tags:
tags:
- win64
- win64
stage: build
except:
- schedules
script:
script:
- export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/prefix/lib/pkgconfig"
- export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/prefix/lib/pkgconfig"
- ./bootstrap
- ./bootstrap
- ./configure --enable-tests --host=x86_64-w64-mingw32 --disable-shared
- ./configure --enable-tests --host=x86_64-w64-mingw32 --disable-shared
- make -j4
- make -j4
- make -j4 check
- make -j4 check
artifacts:
- cp /prefix/dll/libvlc.dll .
paths:
- cp /prefix/dll/libvlccore.dll .
- unittest.exe
- ln -s /prefix/lib/vlc/plugins/ .
- samples.exe
- wine unittest.exe
- .libs/
- wine samples.exe -v
unit-tests:win64:
coverage:
image: registry.videolan.org/medialibrary-win64:20190121124804
tags:
- win64
except:
- schedules
stage: unit-tests
dependencies:
- build:win64
script:
- cp /prefix/dll/libvlc.dll .
- cp /prefix/dll/libvlccore.dll .
- ln -s /prefix/lib/vlc/plugins/ .
- wine unittest.exe
functional-tests:win64:
image: registry.videolan.org/medialibrary-win64:20190121124804
tags:
- win64
except:
- schedules
stage: functional-tests
dependencies:
- build:win64
script:
- cp /prefix/dll/libvlc.dll .
- cp /prefix/dll/libvlccore.dll .
- ln -s /prefix/lib/vlc/plugins/ .
- wine samples.exe -v
build-and-coverage:
image: registry.videolan.org/medialibrary:20190121111050
image: registry.videolan.org/medialibrary:20190121111050
tags:
tags:
- debian
- debian
- amd64
- amd64
only:
only:
- schedules
refs:
 
- master
stage: build
stage: build
script:
script:
- ./bootstrap
- ./bootstrap
@@ -176,3 +72,16 @@ build-and-coverage:
@@ -176,3 +72,16 @@ build-and-coverage:
paths:
paths:
- html/
- html/
 
asan-ubsan:
 
image: registry.videolan.org/medialibrary:20190121111050
 
tags:
 
- debian
 
- amd64
 
script:
 
- export LSAN_OPTIONS=exitcode=0
 
- ./bootstrap
 
- ./configure --enable-tests CXXFLAGS="-g -O1 -fsanitize=address,undefined"
 
- make -j4
 
- make -j4 check
 
- ./unittest
 
- ./samples -v
Loading