Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from dengelke/feature/preinstall-script
Feature/preinstall script
- Loading branch information
Showing
4 changed files
with
32 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
sudo: required | ||
language: node_js | ||
node_js: | ||
- "0.10" | ||
- "0.12" | ||
- "4" | ||
- "6" | ||
- "8" | ||
before_install: | ||
- chmod +x ./travis/travis-init.sh | ||
- ./travis/travis-init.sh | ||
- sudo apt-get install -y libyaz5-dev | ||
after_success: | ||
- npm run coveralls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
# | ||
# init IndexData ubuntu deb repository | ||
|
||
sources_list_d=/etc/apt/sources.list.d | ||
indexdata_list=indexdata.list | ||
apt_key=http://ftp.indexdata.dk/debian/indexdata.asc | ||
deb_url=http://ftp.indexdata.dk | ||
|
||
set -e | ||
|
||
init_apt() { | ||
if [[ "$OSTYPE" == "linux-gnu" ]]; then | ||
file="$sources_list_d/$indexdata_list" | ||
os=ubuntu | ||
|
||
if [ ! -e $file ]; then | ||
codename=$(lsb_release -c -s) | ||
wget -O- $apt_key | sudo apt-key add - | ||
sudo sh -c "echo deb $deb_url/${os} ${codename} main > $file.tmp" | ||
sudo mv -f $file.tmp $file | ||
sudo apt-get update -qq | ||
sudo apt-get install -y libyaz5-dev | ||
fi | ||
elif [[ "$OSTYPE" == "darwin"* ]]; then | ||
brew install yaz | ||
fi | ||
} | ||
|
||
init_apt |
This file was deleted.
Oops, something went wrong.