Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
violethaze74
Artemis
Commits
b42ce83f
Commit
b42ce83f
authored
Jun 11, 2015
by
Ben Taylor
Browse files
Cache dependencies, add install_dependencies script
parent
33b332fe
Changes
2
Hide whitespace changes
Inline
Side-by-side
.travis.yml
View file @
b42ce83f
...
...
@@ -2,15 +2,13 @@ language: java
jdk
:
-
openjdk7
sudo
:
false
cache
:
directories
:
-
"
build"
before_install
:
-
"
export
DISPLAY=:99.0"
-
"
sh
-e
/etc/init.d/xvfb
start"
-
"
mkdir
dependencies
&&
cd
dependencies"
-
"
wget
ftp://emboss.open-bio.org/pub/EMBOSS/EMBOSS-6.6.0.tar.gz
&&
tar
xzfv
EMBOSS-6.6.0.tar.gz"
-
"
cd
EMBOSS-6.6.0
&&
mkdir
build
&&
./configure
--prefix
$(pwd)/build"
-
"
make"
-
"
make
install"
-
"
export
EMBOSS_ROOT=$(pwd)/build
&&
cd
../.."
-
"
source
install_dependencies.sh"
install
:
-
"
make"
-
"
cd
test"
...
...
install_dependencies.sh
0 → 100644
View file @
b42ce83f
#!/bin/bash
set
-x
set
-e
start_dir
=
$(
pwd
)
EMBOSS_VERSION
=
"6.6.0"
EMBOSS_DOWNLOAD_URL
=
"ftp://emboss.open-bio.org/pub/EMBOSS/EMBOSS-
${
EMBOSS_VERSION
}
.tar.gz"
# Make an install location
if
[
!
-d
'build'
]
;
then
mkdir
build
fi
cd
build
build_dir
=
$(
pwd
)
# DOWNLOAD ALL THE THINGS
download
()
{
url
=
$1
download_location
=
$2
if
[
-e
$download_location
]
;
then
echo
"Skipping download of
$url
,
$download_location
already exists"
else
echo
"Downloading
$url
to
$download_location
"
wget
$url
-O
$download_location
fi
}
download
$EMBOSS_DOWNLOAD_URL
"emboss-
${
EMBOSS_VERSION
}
.tgz"
# Build all the things
cd
$build_dir
## Emboss
emboss_dir
=
$(
pwd
)
/EMBOSS-
${
EMBOSS_VERSION
}
if
[
!
-d
$emboss_dir
]
;
then
tar
xzf emboss-
${
EMBOSS_VERSION
}
.tgz
fi
cd
$emboss_dir
if
[
-e
"
${
emboss_dir
}
/build/bin/restrict"
]
;
then
echo
"Already built Emboss; skipping build"
else
mkdir
build
./configure
--prefix
${
emboss_dir
}
/build
make
make
install
fi
export
EMBOSS_ROOT
=
${
emboss_dir
}
/build
cd
$start_dir
set
+x
set
+e
Write
Preview
Supports
Markdown
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