IonizationChamber/.travis.yml

49 wiersze
1.3 KiB
YAML

matrix:
include:
# Check if firmware compiles
- language: minimal
dist: xenial
sudo: true
before_install:
- sudo apt-get install -y sdcc cmake
- cd ./Software/Firmware
script:
- sdcc --version
- mkdir build_directory
- cd build_directory
- cmake -DCMAKE_SYSTEM_NAME=Generic -DCMAKE_C_COMPILER=sdcc ..
- make VERBOSE=1
# Check if latex files are correct
- language: minimal
dist: xenial
sudo: true
before_install:
- sudo apt-get install -y texlive-latex-base texlive-latex-extra texlive-extra-utils poppler-utils
- cd ./Documentation/Diagrams
script:
- chmod +x ./creatediagrams.sh
- ./creatediagrams.sh
# Use cppcheck to check statically C code
- language: minimal
dist: xenial
sudo: true
before_install:
- sudo apt-get install -y cppcheck
- cd ./Software/Firmware
script:
- cppcheck --enable=all --inline-suppr --force --quiet --error-exitcode=1 Src/* Inc/*
# Use pyflakes to check statically Python code
- language: python
dist: xenial
sudo: true
before_install:
- sudo apt-get install -y python3-pip
- pip3 install pyflakes
- cd ./Software/DataAcquisition
script:
- pyflakes *.py