-
Notifications
You must be signed in to change notification settings - Fork 4
/
bitbucket-pipelines.yml
37 lines (34 loc) · 1.45 KB
/
bitbucket-pipelines.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
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
pipelines:
default:
- step:
name: Build twine + tests
image: ubuntu:22.04
script:
- apt-get update
- DEBIAN_FRONTEND=noninteractive apt-get install -qq --no-install-recommends make g++ cmake git ca-certificates ssh
# Print the Linux version.
#- echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
#- export TERM=linux
#- echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
#- uname -a
# Print the gcc version.
#- apt-get update -y
#- apt install build-essential -y
#- gcc --version
#- apt-get install -y software-properties-common
#- add-apt-repository -y ppa:ubuntu-toolchain-r/test
- cmake --version
- git submodule update --init --recursive
# Set test data dir (for running unit test manually)
- mkdir build
- cd build
- cmake .. -DCMAKE_BUILD_TYPE=Debug -DTWINE_WITH_XENOMAI=Off
- make twine
- make unit_tests
- cd test
# Run unit tests with some tests test disabled because they require rt priority
- ./unit_tests --gtest_filter=-PthreadWorkerPoolTest:*
# Build stress tests too for good measure