CI: Do not test all compilers on tags

develop
tastytea 2018-10-20 01:27:57 +02:00
parent 6492271faf
commit 1a17fa0c6e
No known key found for this signature in database
GPG Key ID: CFC39497F1B26E07
1 changed files with 33 additions and 24 deletions

View File

@ -1,7 +1,32 @@
pipeline: pipeline:
gcc6:
image: debian:stretch-slim
pull: true
environment:
- LANG=C.utf8
commands:
- rm /etc/apt/apt.conf.d/docker-clean
- apt-get update -q
- apt-get install -qy build-essential cmake pkg-config
- apt-get install -qy libvsqlitepp-dev libboost-all-dev libxdg-basedir-dev qt5-default qttools5-dev-tools
- apt-get install -qy rpm file
- rm -rf build && mkdir -p build && cd build
- cmake ..
- make VERBOSE=1
- make install DESTDIR=install
- make package
- cmake -DWITH_DEB=ON ..
- make package
- cmake -DWITH_DEB=OFF -DWITH_RPM=ON ..
- make package
volumes:
- /var/cache/debian-package-cache:/var/cache/apt/archives
gcc7: gcc7:
image: debian:stretch-slim image: debian:stretch-slim
pull: true pull: true
when:
event: [push, pull_request]
environment: environment:
- LANG=C.utf8 - LANG=C.utf8
commands: commands:
@ -34,6 +59,8 @@ pipeline:
gcc8: gcc8:
image: debian:stretch-slim image: debian:stretch-slim
pull: true pull: true
when:
event: [push, pull_request]
environment: environment:
- LANG=C.utf8 - LANG=C.utf8
commands: commands:
@ -66,6 +93,8 @@ pipeline:
clang3: clang3:
image: debian:stretch-slim image: debian:stretch-slim
pull: true pull: true
when:
event: [push, pull_request]
environment: environment:
- LANG=C.utf8 - LANG=C.utf8
- CXX=clang++ - CXX=clang++
@ -90,6 +119,8 @@ pipeline:
clang5: clang5:
image: debian:stretch-slim image: debian:stretch-slim
pull: true pull: true
when:
event: [push, pull_request]
environment: environment:
- LANG=C.utf8 - LANG=C.utf8
- CXX=clang++-5.0 - CXX=clang++-5.0
@ -117,6 +148,8 @@ pipeline:
clang6: clang6:
image: debian:stretch-slim image: debian:stretch-slim
pull: true pull: true
when:
event: [push, pull_request]
environment: environment:
- LANG=C.utf8 - LANG=C.utf8
- CXX=clang++-6.0 - CXX=clang++-6.0
@ -141,30 +174,6 @@ pipeline:
volumes: volumes:
- /var/cache/debian-package-cache:/var/cache/apt/archives - /var/cache/debian-package-cache:/var/cache/apt/archives
gcc6:
image: debian:stretch-slim
pull: true
environment:
- LANG=C.utf8
commands:
- rm /etc/apt/apt.conf.d/docker-clean
- apt-get update -q
- apt-get install -qy build-essential cmake pkg-config
- apt-get install -qy libvsqlitepp-dev libboost-all-dev libxdg-basedir-dev qt5-default qttools5-dev-tools
- apt-get install -qy rpm file
- rm -rf build && mkdir -p build && cd build
- cmake ..
- make VERBOSE=1
- make install DESTDIR=install
- make package
- cmake -DWITH_DEB=ON ..
- make package
- cmake -DWITH_DEB=OFF -DWITH_RPM=ON ..
- make package
volumes:
- /var/cache/debian-package-cache:/var/cache/apt/archives
prepare_release: prepare_release:
image: debian:stretch-slim image: debian:stretch-slim
pull: true pull: true