This repository has been archived by the owner on Oct 21, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
57 lines (52 loc) · 1.71 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
sudo: required
dist: trusty
env:
global:
- PYTHONASYNCIODEBUG=1 # https://docs.python.org/3/using/cmdline.html#envvar-PYTHONASYNCIODEBUG
- SERIAL_REQUIRED=1 # Fail test unless pyserial is available
matrix:
include:
- language: python
python: 3.5
before_script:
- pip install pyserial # In Travis, plain pip always refers to the selected Python version. Nice.
- cd python
script:
- ./popcop_test.py -vv
- language: python
python: 3.6
before_script:
- pip install pyserial
- cd python
script:
- ./popcop_test.py -vv
- language: cpp
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
script:
- CC=gcc-7 && CXX=g++-7 && cd c++/test/ && cmake . && make
- ./popcop_test --rng-seed time
#
# Clang is commented out - it can't compile Popcop because the compiler is broken.
# See the bug report here: https://bugs.llvm.org/show_bug.cgi?id=31852
# This section should be uncommented when a newer version of Clang is available with this bug fixed.
#
# - language: cpp
# addons:
# apt:
# sources:
# - ubuntu-toolchain-r-test
# - llvm-toolchain-trusty-5.0
# packages:
# - clang-5.0
# - libstdc++-7-dev # This package contains the C++ standard library used by Clang-5.0
# script:
# - clang++-5.0 -E -x c++ - -v < /dev/null # Print the Clang configuration for troubleshooting purposes
# - cd c++/test/
# - cmake -DCMAKE_C_COMPILER=clang-5.0 -DCMAKE_CXX_COMPILER=clang++-5.0 .
# - make
# - ./popcop_test --rng-seed time