Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sv2v
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
sv2v
Commits
f3e8f530
Commit
f3e8f530
authored
Apr 17, 2019
by
Zachary Snow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more robust and cache-friendly Linux Travis CI
parent
96e0aff7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
13 deletions
+22
-13
.travis.yml
+22
-13
No files found.
.travis.yml
View file @
f3e8f530
...
...
@@ -10,7 +10,7 @@ matrix:
cache
:
directories
:
-
$HOME/.stack
-
$HOME/
iverilog
-
$HOME/
.local
addons
:
apt
:
...
...
@@ -21,6 +21,8 @@ addons:
# for iverilog
-
flex
-
bison
-
autoconf
-
gperf
homebrew
:
packages
:
-
haskell-stack
...
...
@@ -31,25 +33,32 @@ before_install:
-
|
set -ex
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
# install the latest version of stack
# based on: https://raw.githubusercontent.com/commercialhaskell/stack/stable/doc/travis-simple.yml
orig_pwd=$PWD
mkdir -p ~/.local/bin
export PATH=$HOME/.local/bin:$PATH
travis_retry curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
# install the latest version of stack
if [ ! -e "$HOME/.local/bin/stack" ]; then
# based on: https://raw.githubusercontent.com/commercialhaskell/stack/stable/doc/travis-simple.yml
travis_retry curl --retry-max-time 60 -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz > stack.tar.gz
tar -xzf stack.tar.gz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
fi
# install iverilog 10.2
if [ ! -e "iverilog/verilog-10.2" ]; then
mkdir -p iverilog
cd iverilog
travis_retry curl -L ftp://icarus.com/pub/eda/verilog/v10/verilog-10.2.tar.gz > verilog-10.2.tar.gz
tar -xzf verilog-10.2.tar.gz
cd verilog-10.2
./configure
if [ ! -e "$HOME/.local/bin/iverilog" ]; then
travis_retry curl --retry-max-time 60 -L https://github.com/steveicarus/iverilog/archive/v10_2.tar.gz > v10_2.tar.gz
tar -xzf v10_2.tar.gz
cd iverilog-10_2
autoconf
./configure --prefix=$HOME/.local
make
cd ../..
make install
cd ..
fi
(cd iverilog/verilog-10.2 && sudo make install)
cd $orig_pwd
fi
set +ex
-
which stack iverilog shunit2
-
stack --numeric-version
-
iverilog -V 2> /dev/null | head -n 1
install
:
make
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment