-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
157 lines (123 loc) · 3.49 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
## travis ci
#include:
os: linux
dist: trusty
sudo: required
compiler: gcc
group: stable
family: unix
language: python
env:
#- ARCH=x86
#- ARCH=x64
- ARCH=arm
- ARCH=aarm64
python:
#- 2.6
#- 2.7
#- 3.2
#- 3.3
#- 3.4
#- 3.5
#- 3.6
- 3.7
- 3.8
- nightly
#- pypy
- pypy3
before_cache: -r -f $HOME/.cache/pip/log/debug.log
language: c
cache: - ccache -pip
pip: true
#-timeout: 1
env:
matrix:
- DEFCONFIG=bcm2709_defconfig ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-
- DEFCONFIG=bcm2711_defconfig ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-
- DEFCONFIG=bcm2711_defconfig ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu-
- DEFCONFIG=bcm2835_defconfig ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-
directories:
- .autoconf
- $HOME/.m2
- $HOME/.cache
- $HOME/.pyenv
bundler: true
#git-branches
branches:
only:
- master
# - alpha
# - c++
## command to install dependencies
before_install:
#- sudo apt-get update
#- sudo apt-get upgrade
## for virtualisation/simulation of linux/raspberry pi but hardware gpios not possible!
#- sudo apt-get install qemu-system-arm wget xz-utils sshpass
## ARM- architecture needed !
#- install-dependencies-arm.sh
install:
# - sudo apt-get install git
# - key
# - pip install
# -r requirements.txt
# --user # param if no sudo/root-access
# - sudo apt-get install gcc
# - sudo python setup.py install
- sudo pip install RPi.GPIO
# - sudo apt-get install python-rpi.gpio
# - sudo pip install python-rpi.gpio
# - git clone https://github.com/polaco1782/raspberry-qemu.git
# - wget "https://super-secret-location.com/2015-11-21-raspbian-jessie-lite.img.xz"
# - unxz "2015-11-21-raspbian-jessie-lite.img.xz"
# - virtualenv ./nodeps
# - ./nodeps/bin/python setup.py install
# - curl-config --version; pip freeze
# - git clone [email protected]:polaco1782/raspberry-qemu.git
notifications:
email: false
#on_success: change
#on_failure: always
# command to run tests +scripts
before_script:
- git clone git://github.com/wodowiesel/PiFunk
# - qemu-system-arm -kernel raspberry-qemu/kernel-qemu -cpu arm1176 -m 256 -M versatilepb -no-reboot -serial stdio -append "root=/dev/sda2 panic=1 rootfstype=ext4 rw" -net user,hostfwd=tcp::10022-:22 -net nic -display none -hda 2015-11-21-raspbian-jessie-lite.img
# - before-script-linux.sh
# fast_finish: true
script:
#- key
- nosetests
- coveralls
# - sshpass -p raspberry ssh localhost -o StrictHostKeyChecking=no -p 10022 -l pi "cat /etc/os-release"
- ./ci/travis/pifunk-shell.sh
- ./ci/travis/install-dep.sh
#compiling with gcc here
- sudo make clean
- sudo gcc -std=gnu99 -ggdb3 -g3 -O3 -Wall -Werror -pedantic-errors -v -Iinclude -I/opt/vc/include -Llib -Llib -L/opt/vc/lib -lm -lpthread -lbcm_host -lsndfile -shared -D_USE_MATH_DEFINES -D_GNU_SOURCE -fPIC pifunk.c -march=armv7-a -mtune=arm1176jzf-s -mfloat-abi=hard -mfpu=neon-vfpv4 -ffast-math -DRASPI=3
#- sudo make
- sudo make install
#run programm
#- cd PiFunk
- sudo ./pifunk -n sound.wav -f 446.006250 -s 22050 -m fm -c callsign -p 7
#- sudo python pifunk.py
##script-plugins if needed
# - sudo python pifunk-temp.py
# - sudo python pifunk-cpu-ram-disk.py
after_script:
# before_deploy: ./before-deploy-linux.sh
deploy:
# provider: releases
# api_key:
# secure: token-key
# file: dist/*.py
# file_glob: true
# on:
# repo: wodowiesel/PiFunk
# tags: true
# skip_cleanup: true
after_failure:
#
after_success:
# - coveralls
# - coverage combine
# - codecov