Copied over (with permissions) from http://runnable.com/VAhURy7PJS8iDnUr/plexer-for-codeship-for-node-js
This file contains hidden or 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
TZ_SIGN=$( echo "+:-" | cut -d: -f $( shuf -i 1-2 -n 1 ) ) | |
export TZ=UTC${TZ_SIGN}$( shuf -i 0-24 -n1 ) | |
echo "Set TZ to: ${TZ}" |
This file contains hidden or 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 | |
# | |
# NOTICE | |
# A new and updated version of this script is provided at | |
# https://github.com/codeship/scripts/blob/master/packages/phantomjs.sh | |
# Please switch to that version instead! | |
PHANTOMJS_VERSION="1.9.8" | |
# clean old version and setup directories | |
rm -rf ~/.phantomjs |
This file contains hidden or 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
pip install hg-git | |
echo "[extensions]" >> ~/.hgrc | |
echo "hgext.bookmarks =" >> ~/.hgrc | |
echo "hggit =" >> ~/.hgrc | |
echo "[alias]" >> ~/.hgrc | |
echo "push-heroku = push git+ssh://[email protected]/app.git" >> ~/.hgrc | |
PYTHONPATH=$(dirname $(which python))/../lib/python2.7/site-packages/ | |
hg push-heroku | |
check_url "http://app.herokuapp.com" |
This file contains hidden or 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 | |
branch_name=$(git symbolic-ref --short HEAD) | |
if [ "$branch_name" == 'dev' ] || [ "$branch_name" == 'staging' ] | |
then | |
git commit --allow-empty -m 'empty commit to trigger deployment' | |
fi |
This file contains hidden or 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 | |
# go to https://www.dartlang.org/tools/download_archive/ and choose | |
# the revision you want to download. use "latest" to always grab the | |
# latest stable version. | |
REV="latest" | |
wget https://storage.googleapis.com/dart-archive/channels/stable/release/${REV}/sdk/dartsdk-linux-x64-release.zip | |
unzip -o dartsdk-linux-x64-release.zip -d ~ |
This file contains hidden or 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 | |
# Allows using Gradle 2.1 with http://codeship.io | |
GRADLE=gradle-2.1-bin | |
GRADLE_URL="https://services.gradle.org/distributions/$GRADLE.zip" | |
wget -N $GRADLE_URL | |
mkdir -p ~/gradle | |
unzip $GRADLE.zip -d ~ |
This file contains hidden or 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 script is used to deploy a Meteor 0.9 project to Modulus.io hosting using CodeShip. | |
# Install Meteor. | |
curl https://install.meteor.com > ./install_meteor | |
sed -i'' -e 's/PREFIX=.*/PREFIX="$HOME"/g' ./install_meteor | |
chmod u+x ./install_meteor | |
./install_meteor | |
# Install Modulus. | |
npm install -g modulus |
This file contains hidden or 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 | |
PHP_VERSION="5.6" | |
PHALCON_VERSION="1.3.2" | |
PWD=`pwd` | |
cd ~ | |
rm -rf ~/cphalcon | |
phpenv global $PHP_VERSION |
This file contains hidden or 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 | |
VERSION="2.1.4" | |
PWD=`pwd` | |
cd ~/ | |
wget -O neo4j-community.tar.gz http://neo4j.com/artifact.php?name=neo4j-community-${VERSION}-unix.tar.gz | |
tar -xzf neo4j-community.tar.gz |