forked from DTC8/sql-parser
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.travis.yml
More file actions
78 lines (70 loc) · 1.8 KB
/
.travis.yml
File metadata and controls
78 lines (70 loc) · 1.8 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
language: cpp
matrix:
include:
- name: ubuntu16.04-gcc-6
os: linux
dist: xenial
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6
- valgrind
- bison
- flex
env:
- MATRIX_EVAL="CC=gcc-6 && CXX=g++-6 && BISON=bison && FLEX=flex"
- name: ubuntu22.04-gcc-12
os: linux
dist: jammy
addons:
apt:
packages:
- g++-12
- valgrind
- bison
- flex
env:
- MATRIX_EVAL="CC=gcc-12 && CXX=g++-12 && BISON=bison && FLEX=flex"
- name: ubuntu22.04-clang-14
os: linux
dist: jammy
addons:
apt:
packages:
- clang-14
- valgrind
- bison
- flex
env:
- MATRIX_EVAL="CC=clang-14 && CXX=clang++-14 && BISON=bison && FLEX=flex"
- name: macOS12.04-clang
os: osx
osx_image: xcode13.4
addons:
homebrew:
packages:
- bison
- flex
env:
- BREW_PREFIX="$(brew --prefix)/opt"
- MATRIX_EVAL="CC=clang && CXX=clang++ && BISON=${BREW_PREFIX}/bison/bin/bison && FLEX=${BREW_PREFIX}/flex/bin/flex"
before_install:
- eval "${MATRIX_EVAL}"
script:
# print package versions
- ${CC} --version
- ${CXX} --version
- ${BISON} --version
- ${FLEX} --version
- awk -v a=$(uname) 'BEGIN { if (a == "Linux") system("valgrind --version") }'
# build with flex/bison files checked into repo
- make -j4
- BISON=${BISON} FLEX=${FLEX} make test
- make test_example
# build flex/bison files in CI
- BISON=${BISON} FLEX=${FLEX} make cleanall
- BISON=${BISON} FLEX=${FLEX} make -j4
- BISON=${BISON} FLEX=${FLEX} make test
- make test_example