-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy path.travis.yml
38 lines (34 loc) · 2.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
os: linux
dist: bionic
language: c++
git:
submodules: false
before_install:
- export DEBIAN_FRONTEND=noninteractive
install:
- sudo apt-get update && sudo apt-get install -y --no-install-recommends git ninja-build gperf ccache dfu-util device-tree-compiler wget python3-pip python3-setuptools python3-tk python3-wheel python3 xz-utils file make gcc gcc-multilib locales tar curl unzip gnupg ca-certificates
- sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
- echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
- sudo apt update
- sudo locale-gen "en_US.UTF-8"
- export LANG="en_US.UTF-8"
- wget -q https://cmake.org/files/v3.14/cmake-3.14.2-Linux-x86_64.tar.gz
- tar -xf cmake-3.14.2-Linux-x86_64.tar.gz
- export PATH=`realpath cmake-3.14.2-Linux-x86_64/bin`:$PATH
- wget -q https://antmicro.com/projects/renode/builds/renode-latest.deb
- sudo apt install ./renode-latest.deb
script:
- ROOT=`pwd`
- sudo pip3 install psutil netifaces requests virtualenv
- sudo pip3 install robotframework==3.1.2
- wget -q https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.11.2/zephyr-sdk-0.11.2-setup.run
- chmod +x zephyr-sdk-0.11.2-setup.run
- ./zephyr-sdk-0.11.2-setup.run -- -d ${ROOT}/zephyr-sdk -y
- export ZEPHYR_SDK_INSTALL_DIR=${ROOT}/zephyr-sdk
- git config --global url.https://github.com/llvm-mirror/.insteadOf 'https://git.llvm.org/git/'
- git submodule update --init --recursive
- pushd tensorflow
- make -f tensorflow/lite/micro/tools/make/Makefile TARGET=zephyr_vexriscv hello_world_bin -j$(nproc)
- make -f tensorflow/lite/micro/tools/make/Makefile TARGET=zephyr_vexriscv magic_wand_bin -j$(nproc)
- cd ${ROOT}
- travis_wait renode-test renode/litex-vexriscv-tflite.robot