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:
...
@@ -10,7 +10,7 @@ matrix:
cache
:
cache
:
directories
:
directories
:
-
$HOME/.stack
-
$HOME/.stack
-
$HOME/
iverilog
-
$HOME/
.local
addons
:
addons
:
apt
:
apt
:
...
@@ -21,6 +21,8 @@ addons:
...
@@ -21,6 +21,8 @@ addons:
# for iverilog
# for iverilog
-
flex
-
flex
-
bison
-
bison
-
autoconf
-
gperf
homebrew
:
homebrew
:
packages
:
packages
:
-
haskell-stack
-
haskell-stack
...
@@ -31,25 +33,32 @@ before_install:
...
@@ -31,25 +33,32 @@ before_install:
-
|
-
|
set -ex
set -ex
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
# install the latest version of stack
orig_pwd=$PWD
# based on: https://raw.githubusercontent.com/commercialhaskell/stack/stable/doc/travis-simple.yml
mkdir -p ~/.local/bin
mkdir -p ~/.local/bin
export PATH=$HOME/.local/bin:$PATH
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
# install iverilog 10.2
if [ ! -e "iverilog/verilog-10.2" ]; then
if [ ! -e "$HOME/.local/bin/iverilog" ]; then
mkdir -p iverilog
travis_retry curl --retry-max-time 60 -L https://github.com/steveicarus/iverilog/archive/v10_2.tar.gz > v10_2.tar.gz
cd iverilog
tar -xzf v10_2.tar.gz
travis_retry curl -L ftp://icarus.com/pub/eda/verilog/v10/verilog-10.2.tar.gz > verilog-10.2.tar.gz
cd iverilog-10_2
tar -xzf verilog-10.2.tar.gz
autoconf
cd verilog-10.2
./configure --prefix=$HOME/.local
./configure
make
make
cd ../..
make install
cd ..
fi
fi
(cd iverilog/verilog-10.2 && sudo make install)
cd $orig_pwd
fi
fi
set +ex
set +ex
-
which stack iverilog shunit2
-
stack --numeric-version
-
iverilog -V 2> /dev/null | head -n 1
install
:
install
:
make
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