forked from SpinalHDL/SpinalHDL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
86 lines (71 loc) · 2.33 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
language: scala
notifications:
email:
on_success: never
# See 'project/Version.scala'
scala:
- 2.11.6
sbt_args: -no-colors -J-Xss2m
script:
- sbt -jvm-opts travis/jvmopts.compile compile
- sbt -jvm-opts travis/jvmopts.test test
jdk:
- oraclejdk8
- 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 add-apt-repository -y ppa:pgavin/ghdl
#- sudo apt-get update
#- sudo apt-get install -y --force-yes ghdl
- sudo apt-get install libgnat-4.8 -y
- wget https://github.com/tgingold/ghdl/releases/download/2017-03-01/ghdl-0.34-dev-llvm-3.5-2017-03-01-ubu1404.tgz
- mkdir ghdl
- tar -xvzf ghdl-0.34-dev-llvm-3.5-2017-03-01-ubu1404.tgz -C ghdl
- export PATH=$(pwd)/ghdl/bin:$PATH
# 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 -j4
- sudo make install
- cd ..
# cocotb
- sudo apt-get install -y git make gcc g++ swig python-dev
- git clone https://github.com/potentialventures/cocotb
- 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 tag # See what versions exist
- 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/