forked from SpinalHDL/SpinalHDL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
92 lines (75 loc) · 2.37 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
language: scala
dist: xenial
notifications:
email:
on_success: never
# See 'project/Version.scala'
scala:
- 2.11.12
sbt_args: -no-colors -J-Xss2m
script:
- sbt -jvm-opts travis/jvmopts.compile compile
- sbt -jvm-opts travis/jvmopts.test test
jdk:
- openjdk9
- openjdk10
- oraclejdk11
# - oraclejdk7
# - openjdk7
before_install:
# JDK fix
- cat /etc/hosts # optionally check the content *before*
- sudo hostname "$(hostname | cut -c1-63)"
- sed -e "s/^\\(127\\.0\\.0\\.1.*\\)/\\1 $(hostname | cut -c1-63)/" /etc/hosts | sudo tee /etc/hosts
- cat /etc/hosts # optionally check the content *after*
- cd ..
# GHDL
- sudo apt-get install libgnat-4.9 zlib1g-dev -y
- wget https://github.com/tgingold/ghdl/releases/download/v0.34/ghdl-v0.34-mcode-ubuntu.tgz
- mkdir ghdl
- tar -xvzf ghdl-v0.34-mcode-ubuntu.tgz -C ghdl
- export PATH=$(pwd)/ghdl/bin:$PATH
- echo export PATH=$(pwd)/ghdl/bin:'$PATH' >> ~/.bashrc
# iverilog (debian package 9.7 contain bugs)
- sudo apt-get install -y gperf readline-common bison flex
- wget https://github.com/steveicarus/iverilog/archive/v10_0.tar.gz
- tar -xvf v10_0.tar.gz
- cd iverilog-10_0
- autoconf
- ./configure
- make -j$(nproc)
- sudo make install
- cd ..
# cocotb
- sudo apt-get install -y git make gcc g++ swig python-dev
- git clone https://github.com/potentialventures/cocotb
- cd cocotb
- git reset --hard a463cee498346cb26fc215ced25c088039490665
- cd ..
- export COCOTB=$(pwd)/cocotb
# Force cocotb to compile VPI to avoid race condition when tests are start in parallel
- cd SpinalHDL/tester/src/test/python/spinal/Dummy
- make TOPLEVEL_LANG=verilog
- make TOPLEVEL_LANG=vhdl
- cd ../../../../../../..
# Verilator
- sudo apt-get install git make autoconf g++ flex bison -y # First time prerequisites
- git clone http://git.veripool.org/git/verilator # Only first time
- unset VERILATOR_ROOT # For bash
- cd verilator
- git pull # Make sure we're up-to-date
- git checkout verilator_3_916
- autoconf # Create ./configure script
- ./configure
- make -j$(nproc)
- sudo make install
- cd ..
- cd SpinalHDL
before_cache:
# Tricks to avoid unnecessary cache updates
- find $HOME/.ivy2 -name "ivydata-*.properties" -delete
- find $HOME/.sbt -name "*.lock" -delete
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt/boot/