26 lines
897 B
YAML
26 lines
897 B
YAML
# This is a sample build configuration for C++.
|
|
# Check our guides at https://confluence.atlassian.com/x/VYk8Lw for more examples.
|
|
# Only use spaces to indent your .yml configuration.
|
|
# -----
|
|
# You can specify a custom docker image from Docker Hub as your build environment.
|
|
image: gcc:8
|
|
|
|
pipelines:
|
|
default:
|
|
- parallel:
|
|
- step:
|
|
# Test whether it compiles on older GCC
|
|
image: gcc:6
|
|
name: GCC 6 compile
|
|
script:
|
|
- apt-get -qq update && apt-get -qq install -y cmake
|
|
- mkdir build && cd build && cmake ../ && make
|
|
- cd demo && make
|
|
- step:
|
|
# Test whether it compiles on newer GCC
|
|
image: gcc:8
|
|
name: GCC 8 compile
|
|
script:
|
|
- apt-get -qq update && apt-get -qq install -y cmake
|
|
- mkdir build && cd build && cmake ../ && make
|
|
- cd demo && make
|