sudo apt-get install -yqq libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5
wget http://dl.google.com/android/android-sdk_r24.0.2-linux.tgz && tar xf android-sdk_r24.0.2-linux.tgz && rm -f android-sdk_r24.0.2-linux.tgz
export ANDROID_HOME="~/android-sdk-linux"
export PATH="$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$PATH"
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
DEB="thrift_0.9.3-1_amd64.deb" | |
URL="https://s3-us-west-2.amazonaws.com/container-libraries/$DEB" | |
if ! [ -e $SEMAPHORE_CACHE_DIR/$DEB ]; then (cd $SEMAPHORE_CACHE_DIR; wget $URL); fi | |
sudo dpkg -i $SEMAPHORE_CACHE_DIR/$DEB | |
echo "$(thrift --version) installed" |
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
if ENV["SEMAPHORE_CACHE_DIR"] | |
config.assets.configure do |env| | |
env.cache = ActiveSupport::Cache::FileStore.new(ENV["SEMAPHORE_CACHE_DIR"]) | |
end | |
end |
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
#!/bin/sh | |
# install dependencies | |
sudo apt-get install -yqq libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5 | |
# download and unpack Android SDK | |
wget http://dl.google.com/android/android-sdk_r24.3.3-linux.tgz | |
mkdir /home/runner/android-sdk-linux | |
tar xf android-sdk_r24.3.3-linux.tgz -C /home/runner/ | |
rm android-sdk_r24.3.3-linux.tgz | |
# install necessarry componenets |
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
#!/bin/sh | |
sudo apt-get purge -y maven | |
if ! [ -e .semaphore-cache/apache-maven-3.3.3-bin.tar.gz ]; then (cd .semaphore-cache; curl -OL http://mirror.olnevhost.net/pub/apache/maven/maven-3/3.3.3/binaries/apache-maven-3.3.3-bin.tar.gz); fi | |
sudo tar -zxf .semaphore-cache/apache-maven-3.3.3-bin.tar.gz -C /usr/local/ | |
sudo ln -s /usr/local/apache-maven-3.3.3/bin/mvn /usr/bin/mvn | |
echo "Maven is on version `mvn -v`" |
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
#!/bin/sh | |
export DEBIAN_FRONTEND=noninteractive | |
sudo rm -rf /etc/apt/sources.list.d/mysql.list | |
sudo add-apt-repository -y ppa:ondrej/mysql-5.5 | |
sudo debconf-set-selections <<< "mysql-community-server mysql-community-server/remove-data-dir boolean true" | |
sudo apt-get remove --purge -y mysql-client mysql-common mysql-community-client mysql-community-server mysql-server php5-mysql libmysqlclient-dev libmysqlclient18 | |
sudo apt-get update | |
DEBIAN_FRONTEND=noninteractive sudo -E bash -c 'apt-get -y --force-yes install mysql-server libmysqlclient-dev' | |
mysqladmin -u root password semaphoredb |
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
#! /bin/bash | |
die () { | |
echo >&2 "$@" | |
exit 1 | |
} | |
[ "$#" -eq 2 ] || die "2 arguments required -- <file count> <size>, only $# provided!" | |
echo $1 | grep -E -q '^[0-9]+$' || die "Numeric argument required, $1 provided!" | |
echo $2 | grep -E -q '^[0-9]+M|K$' || die "Define the size as <number>M|K, $2 provided!" |
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
sudo service redis-server stop | |
echo ">>> Redis service stopped" | |
if ! [ -e .semaphore-cache/redis-2.8.tar.gz ]; then (cd .semaphore-cache; curl -OL https://s3-us-west-2.amazonaws.com/container-libraries/redis-2.8.tar.gz); fi | |
echo ">>> Different Redis version downloaded" | |
tar xf .semaphore-cache/redis-2.8.tar.gz -C /home/runner | |
/home/runner/redis-2.8.19/src/redis-server & | |
sleep 3 |
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
sudo service elasticsearch stop && wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.6.0.deb && echo Y | sudo dpkg -i elasticsearch-1.6.0.deb && sudo service elasticsearch start |
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
if ! [ -e .semaphore-cache/phantomjs-2.0-semaphore.tar.bz2 ]; then (cd .semaphore-cache; curl -OL https://s3-us-west-2.amazonaws.com/container-libraries/phantomjs-2.0-semaphore.tar.bz2); fi | |
sudo tar -xjf .semaphore-cache/phantomjs-2.0-semaphore.tar.bz2 -C /usr/local/ | |
sudo ln -fs /usr/local/phantomjs-2.0-semaphore/bin/phantomjs /usr/local/bin/phantomjs | |
echo ">> PhantomJS is on version `phantomjs -v`" |