forked from enjoy-digital/litex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (46 loc) · 1.11 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
jobs:
include:
- os: linux
dist: xenial
language: python
python: "3.6"
- os: linux
dist: xenial
language: python
python: "3.7"
- os: linux
dist: xenial
language: python
python: "3.8"
- os: osx
osx_image: xcode10.2 # Includes Python 3.7
language: shell
- os: windows
language: shell
before_install:
- choco info python3
- choco install python3
- export PATH=/c/Python38/:$PATH
- cp -a /c/Python38/python.exe /c/Python38/python3.exe
allow_failures:
- os: windows
language: shell
install:
# Get Migen / LiteX / Cores
- cd ~/
- pip3 install requests
- cp $TRAVIS_BUILD_DIR/litex_setup.py .
- python3 litex_setup.py init install
# Install the LiteX version being tested
- cd $TRAVIS_BUILD_DIR
- python3 setup.py install
before_script:
# Get RISC-V toolchain
- cd ~/
- python3 litex_setup.py gcc
- ls $PWD/riscv64-*/bin/
- export PATH=$PATH:$(echo $PWD/riscv64-*/bin/)
- riscv64-unknown-elf-gcc --version
script:
- cd $TRAVIS_BUILD_DIR
- python3 setup.py test