-
-
Notifications
You must be signed in to change notification settings - Fork 310
/
.travis.yml
45 lines (37 loc) · 910 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
---
# Author: Ivan Mincik, [email protected] (linux)
# Rainer M. Krug, [email protected] (osx)
os: linux
dist: jammy
language: c
cache: ccache
# safelist
branches:
only:
- main
- releasebranch*
jobs:
include:
- os: linux
compiler: gcc
env: CC=gcc CXX=g++
- os: linux
compiler: clang
env: CC=clang CXX=clang++
env:
global:
- CFLAGS="-Werror=implicit-function-declaration"
- CXXFLAGS="-std=c++17"
- GRASS_EXTRA_CFLAGS="-Werror -fPIC -Wfatal-errors"
- GRASS_EXTRA_CXXFLAGS="-Werror -fPIC -Wfatal-errors"
before_install:
# Show available versions if ever pyenv global fails
- pyenv versions
- pyenv global 3.10
# Show that the selected version is correctly set
- pyenv versions
- ./.travis/$TRAVIS_OS_NAME.before_install.sh
install:
- ./.travis/$TRAVIS_OS_NAME.install.sh
script:
- ./.travis/$TRAVIS_OS_NAME.script.sh