This repository has been archived by the owner on Oct 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
125 lines (121 loc) · 4.01 KB
/
.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
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
language: cpp
sudo: required
services:
- docker
matrix:
include:
- env:
- WHAT=test
- TOOLCHAIN=ubuntu16.04
- RELEASE_FILE=task-maker-${TRAVIS_TAG}_ubuntu16.04_amd64.deb
- env:
- WHAT=test
- TOOLCHAIN=ubuntu18.04
- RELEASE_FILE=task-maker-${TRAVIS_TAG}_ubuntu18.04_amd64.deb
- env:
- WHAT=test
- TOOLCHAIN=ubuntu19.04
- RELEASE_FILE=task-maker-${TRAVIS_TAG}_ubuntu19.04_amd64.deb
- env:
- WHAT=test
- TOOLCHAIN=archlinux
- RELEASE_FILE=task-maker-${TRAVIS_TAG}_archlinux_amd64.tar.xz
- if: NOT branch =~ /^v.*/
env:
- WHAT=test
- TOOLCHAIN=archlinux-clang
- ADDRESSSANITIZER=ON
- if: NOT branch =~ /^v.*/
env:
- WHAT=test-AUR-package
- TOOLCHAIN=archlinux
script:
- tools/check_docker.sh
- docker run --rm
-v $(pwd):/build
edomora97/task-maker-builder-archlinux:latest
/build/tools/test_aur_package.sh
- if: NOT branch =~ /^v.*/
env:
- WHAT=clang-tidy
- TOOLCHAIN=archlinux-clang
script:
- tools/check_docker.sh
- docker run --rm
-e TRAVIS=true
-e CI=true
-e ADDRESSSANITIZER=$ADDRESSSANITIZER
-e TOOLCHAIN=$TOOLCHAIN
-e TRAVIS_OS_NAME=$TRAVIS_OS_NAME
-e TRAVIS_TAG=$TRAVIS_TAG
-v $(pwd):/build
--cap-add SYS_PTRACE
edomora97/task-maker-builder-$TOOLCHAIN:latest
/build/tools/compile_and_lint.sh
- if: NOT branch =~ /^v.*/
os: osx
env:
- WHAT=test
- TOOLCHAIN=osx
addons:
homebrew:
packages:
- python
- wget
- cmake
- rust
- fpc
install:
- python3 -m venv /tmp/venv --without-pip
- source /tmp/venv/bin/activate
- wget -O- https://bootstrap.pypa.io/get-pip.py | python3
- mkdir /tmp/bin
- "export PATH=/tmp/bin:$PATH"
- cmake --version
script:
- rm -rf build
- cmake -H. -Bbuild -DHUNTER_ROOT=hunter-root
- cmake --build build
- pip install -r build/python/requirements.txt
- python build/python/setup.py install
# run the tests
- ( cd build && ctest -VV )
before_deploy: ./tools/make_release.sh
cache:
directories:
- hunter-root
- build
script:
- tools/check_docker.sh
- docker run --rm
-e TRAVIS=true
-e CI=true
-e ADDRESSSANITIZER=$ADDRESSSANITIZER
-e TOOLCHAIN=$TOOLCHAIN
-e TRAVIS_OS_NAME=$TRAVIS_OS_NAME
-e TRAVIS_TAG=$TRAVIS_TAG
-v $(pwd):/build
--cap-add SYS_PTRACE
edomora97/task-maker-builder-${TOOLCHAIN}:latest
/build/tools/compile_and_test.sh
before_deploy:
- docker run --rm
-e TRAVIS=true
-e CI=true
-e ADDRESSSANITIZER=$ADDRESSSANITIZER
-e TOOLCHAIN=$TOOLCHAIN
-e TRAVIS_OS_NAME=$TRAVIS_OS_NAME
-e TRAVIS_TAG=$TRAVIS_TAG
-e RELEASE_FILE=$RELEASE_FILE
-v $(pwd):/build
--cap-add SYS_PTRACE
edomora97/task-maker-builder-$TOOLCHAIN:latest
/build/tools/make_release.sh
deploy:
- provider: releases
api_key:
secure: HVF8CkBTelG3qd0R9D8ODEwzYcwU8Sk7wKZ5vDTZajdqSFcHllJfY8UUBJQ2iXH1a2Q9vFqcbd+O44mvKyk/6KGg5xfoxgo4SQvXqvQ/s9AsrMEEOOT/++MMwDEZM6NCSL6CvoH9EOGRw6Dd+XEgS2EiotgvvTi3W9oeq3/qt7UqPqxVgTcqY4ZdIsEHDwPcjcd/B8YZ9G4aq/gRWHoS9OD5exfsMWd+FbN/BD00QJxzVz96IrPXu80d7HpTis34ROO1D+tSBNBqTovfHwTa1A99LLygismY70BofXwrxuanFQH4Jq3kXvMnmZCHFYFqdAw2k5y49yJTwlkf4gmwXQXDfHsos+fSdm5xmuEpUT2asW+riWYcyQ9s0ygZx7FBa3fgamiBSxaP5ogwWX2k41IqV/nPp5S9uATaquyBgSTEQga6xQP68+1igpWi/na77DkH3QS3Fa4UMs6Lef1QTiUkNDSXwdLXV0ljrr3wye6vqz1g6C9/7lPF3Nm5uDy/mYjqZdF/H2mjg+G9smEkSI1/xciDJaTZRxly+SEZRoo1FX7Gk0e58EDgCXHI7Kb8X7ju82hHFpCIgzqDbfxAnmWujBRhy4Qka2wHnezAKOOu7zWqpDUPabcMXg/6eMWtj5h63YAXsalrkYwV4gtyzhOmtICT4MfhzzU0/DmU84U=
file: ${RELEASE_FILE}
skip_cleanup: true
on:
tags: true