forked from Insper/21a-Z01.1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
52 lines (46 loc) · 1.9 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
# Refs
# customizing the boot
# - https://docs.travis-ci.com/user/customizing-the-build/#Build-Matrix
# Sudo enabled faz com que o travis inicialize
# uma máquina ubuntu full, caso contrário
# ele inicializa um docker.
# com a contrapartida de levar mais tempo no boot
# ref : https://docs.travis-ci.com/user/reference/overview/
sudo: enabled
dist: trusty
language: java
jdk:
- oraclejdk8
# linguagens de desenvolvimento utilizada no build
language: python
python:
- '3.6'
# command to install dependencies
install:
- pip install -r requirements.txt
before_script:
# garante que o travis pare no primeiro erro
# - set -e
# dependencias modelsim
- sudo dpkg --add-architecture i386
- sudo apt-get update
- sudo apt-get install build-essential
- sudo apt-get install gcc-multilib g++-multilib lib32z1 lib32stdc++6 lib32gcc1 expat:i386 fontconfig:i386 libfreetype6:i386 libexpat1:i386 libc6:i386 libgtk-3-0:i386 libcanberra0:i386 libpng12-0:i386 libice6:i386 libsm6:i386 libncurses5:i386 zlib1g:i386 libx11-6:i386 libxau6:i386 libxdmcp6:i386 libxext6:i386 libxft2:i386 libxrender1:i386 libxt6:i386 libxtst6:i386
# modelSim download
- wget http://download.altera.com/akdlm/software/acdsinst/17.1std/590/ib_installers/ModelSimSetup-17.1.0.590-linux.run -O modelsim.run
# modelsim install
- chmod +x modelsim.run
- ./modelsim.run --mode unattended --accept_eula 1 --installdir $HOME
# corrigi bug modelsim com kernel 4
- sed -i '209 a\ 4.[0-9]*) vco="linux" ;;' $HOME/modelsim_ase/vco
# define o modelsim como simulador para o VUNIT
- export VUNIT_SIMULATOR=modelsim
- export VUNIT_MODELSIM_PATH=$HOME/modelsim_ase/bin/
##############################################
# INSERIR AQUI !!!
###############################################
script:
## Instal Z01.1 tools
- bash updateZ01tools.sh
## run scripts
- python3 Projetos/A-AmbienteDesenvolvimento/testeAmbienteDesenvolvimento.py