Permalink
Browse files

Remove outdated generated shell scripts

  • Loading branch information...
1 parent 81d9a44 commit b3d36ddb9d546e4b757ae58967ee1023bd276b80 @gildegoma gildegoma committed Feb 5, 2013
Showing with 2 additions and 267 deletions.
  1. +2 −1 .gitignore
  2. +0 −146 examples/build_script.sh
  3. +0 −120 play/build.sh
  4. 0 play/timeout.sh
View
@@ -4,4 +4,5 @@ Gemfile.lock
\#*
bin/*
.bundle/*
-tmp
+tmp
+play/*.sh
View
@@ -1,146 +0,0 @@
-travis_start() {
- echo "[travis:$1:start]" >> ~/state.log
-}
-
-travis_finish() {
- echo "[travis:$1:finish:result=$2]" >> ~/state.log
- sleep 1
-}
-
-travis_assert() {
- if [ $? != 0 ]; then
- echo "Command did not exit with 0. Exiting."
- travis_terminate 1
- fi
-}
-
-travis_timeout() {
- local pid=$!
- local start=$(date +%s)
- while ps aux | awk '{print $2 }' | grep -q $pid 2> /dev/null; do
- if [ $(expr $(date +%s) - $start) -gt $1 ]; then
- echo "Command timed out after $1 seconds. Exiting."
- travis_terminate 1
- fi
- done
- wait $pid
-}
-
-travis_terminate() {
- travis_finish build $1
- pkill -9 -P $$ > /dev/null 2>&1
- exit $1
-}
-
-rm -rf ~/build
-mkdir -p ~/build
-cd ~/build
-
-trap 'travis_finish build 1' TERM
-
-travis_start build
-travis_start export
-TRAVIS_PULL_REQUEST=false
-TRAVIS_SECURE_ENV_VARS=true
-TRAVIS_BUILD_ID=1
-TRAVIS_BUILD_NUMBER=1
-TRAVIS_JOB_ID=1
-TRAVIS_JOB_NUMBER=1.1
-TRAVIS_BRANCH=master
-TRAVIS_COMMIT=313f61b
-TRAVIS_COMMIT_RANGE=313f61b..313f61a
-echo \$\ FOO\=foo
-FOO=foo
-echo \$\ BAR\=\[secure\]
-BAR=bar
-travis_finish export $?
-
-travis_start checkout
-GIT_ASKPASS=echo
-echo \$\ git\ clone\ --depth\=100\ --quiet\ git://github.com/travis-ci/travis-ci.git\ .
-((git clone --depth=100 --quiet git://github.com/travis-ci/travis-ci.git .) >> ~/build.log 2>&1) &
-travis_timeout 300
-travis_assert
-rm -f ~/.ssh/source_rsa
-echo \$\ git\ checkout\ -qf\ 313f61b
-(git checkout -qf 313f61b) >> ~/build.log 2>&1
-travis_assert
-if [[ -s .gitmodules ]]; then
- (echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config) >> ~/build.log 2>&1
- echo \$\ git\ submodule\ init
- (git submodule init) >> ~/build.log 2>&1
- echo \$\ git\ submodule\ update
- ((git submodule update) >> ~/build.log 2>&1) &
- travis_timeout 300
- travis_assert
-fi
-travis_finish checkout $?
-
-travis_start setup
-travis_finish setup $?
-
-travis_start announce
-travis_finish announce $?
-
-travis_start before_install
-echo \$\ ./before_install_1.sh
-((./before_install_1.sh) >> ~/build.log 2>&1) &
-travis_timeout 300
-travis_assert
-echo \$\ ./before_install_2.sh
-((./before_install_2.sh) >> ~/build.log 2>&1) &
-travis_timeout 300
-travis_assert
-travis_finish before_install $?
-
-travis_start before_script
-echo \$\ ./before_script_1.sh
-((./before_script_1.sh) >> ~/build.log 2>&1) &
-travis_timeout 600
-travis_assert
-echo \$\ ./before_script_2.sh
-((./before_script_2.sh) >> ~/build.log 2>&1) &
-travis_timeout 600
-travis_assert
-travis_finish before_script $?
-
-travis_start script
-
-
-TRAVIS_TEST_RESULT=$?
-travis_finish script $TRAVIS_TEST_RESULT
-
-if [[ $TRAVIS_TEST_RESULT = 0 ]]; then
- travis_start after_success
- echo \$\ ./after_success_1.sh
- ((./after_success_1.sh) >> ~/build.log 2>&1) &
- travis_timeout 300
- echo \$\ ./after_success_2.sh
- ((./after_success_2.sh) >> ~/build.log 2>&1) &
- travis_timeout 300
- travis_finish after_success $?
-fi
-if [[ $TRAVIS_TEST_RESULT != 0 ]]; then
- travis_start after_failure
- echo \$\ ./after_failure_1.sh
- ((./after_failure_1.sh) >> ~/build.log 2>&1) &
- travis_timeout 300
- echo \$\ ./after_failure_2.sh
- ((./after_failure_2.sh) >> ~/build.log 2>&1) &
- travis_timeout 300
- travis_finish after_failure $?
-fi
-
-travis_start after_script
-echo \$\ ./after_script_1.sh
-((./after_script_1.sh) >> ~/build.log 2>&1) &
-travis_timeout 300
-echo \$\ ./after_script_2.sh
-((./after_script_2.sh) >> ~/build.log 2>&1) &
-travis_timeout 300
-travis_finish after_script $?
-
-echo
-echo "Done. Build script exited with $TRAVIS_TEST_RESULT" >> ~/build.log
-
-travis_terminate $TRAVIS_TEST_RESULT
View
@@ -1,120 +0,0 @@
-#!/bin/bash
-source /etc/profile
-
-travis_start() {
- echo "[travis:$1:start]" >> ~/state.log
-}
-
-travis_finish() {
- echo "[travis:$1:finish:result=$2]" >> ~/state.log
- sleep 1
-}
-
-travis_assert() {
- if [ $? != 0 ]; then
- echo "Command did not exit with 0. Exiting."
- travis_terminate 2
- fi
-}
-
-travis_terminate() {
- travis_finish build $1
- pkill -9 -P $$ > /dev/null 2>&1
- exit $1
-}
-
-decrypt() {
- echo $1 | base64 -d | openssl rsautl -decrypt -inkey ~/.ssh/id_rsa.repo
-}
-
-rm -rf ~/build
-mkdir -p ~/build
-cd ~/build
-
-trap 'travis_finish build 1' TERM
-
-travis_start build
-travis_start export
-export TRAVIS_PULL_REQUEST=false
-export TRAVIS_SECURE_ENV_VARS=false
-export TRAVIS_BUILD_ID=1
-export TRAVIS_BUILD_NUMBER=1
-export TRAVIS_JOB_ID=1
-export TRAVIS_JOB_NUMBER=1.1
-export TRAVIS_BRANCH=master
-export TRAVIS_COMMIT=a214c21
-export TRAVIS_COMMIT_RANGE=abcdefg..a214c21
-export TRAVIS_REPO_SLUG=
-echo \$\ export\ NUODB_ROOT\=/opt/nuodb
-export NUODB_ROOT=/opt/nuodb
-export TRAVIS_NODE_VERSION=[0.6]
-travis_finish export $?
-
-travis_start checkout
-export GIT_ASKPASS=echo
-echo \$\ git\ clone\ --depth\=100\ --quiet\ --branch\=master\ http://github.com/travis-ci/travis-support.git\ travis-ci/travis-support
-git clone --depth=100 --quiet --branch=master http://github.com/travis-ci/travis-support.git travis-ci/travis-support
-travis_assert
-echo \$\ cd\ travis-ci/travis-support
-cd travis-ci/travis-support
-echo \$\ git\ checkout\ -qf\ a214c21
-git checkout -qf a214c21
-travis_assert
-if [[ -f .gitmodules ]]; then
- echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- echo \$\ git\ submodule\ init
- git submodule init
- echo \$\ git\ submodule\ update
- git submodule update
- travis_assert
-fi
-rm -f ~/.ssh/source_rsa
-travis_finish checkout $?
-
-travis_start setup
-echo \$\ nvm\ use\ \[0.6\]
-nvm use [0.6]
-travis_assert
-travis_finish setup $?
-
-travis_start announce
-echo \$\ node\ --version
-node --version
-echo \$\ npm\ --version
-npm --version
-travis_finish announce $?
-
-travis_start install
-if [[ -f package.json ]]; then
- echo \$\ npm\ install\
- npm install
- travis_assert
-fi
-travis_finish install $?
-
-travis_start before_script
-echo \$\ wget\ http://www.nuodb.com/latest/nuodb-1.0-GA.linux.x86_64.deb\ --output-document\=/var/tmp/nuodb.deb
-wget http://www.nuodb.com/latest/nuodb-1.0-GA.linux.x86_64.deb --output-document=/var/tmp/nuodb.deb
-travis_assert
-echo \$\ sudo\ dpkg\ -i\ /var/tmp/nuodb.deb
-sudo dpkg -i /var/tmp/nuodb.deb
-travis_assert
-travis_finish before_script $?
-
-travis_start script
-echo \$\ which\ node
-which node
-export TRAVIS_TEST_RESULT=$?
-travis_finish script $TRAVIS_TEST_RESULT
-
-
-
-travis_start after_script
-echo \$\ sudo\ dpkg\ -r\ nuodb
-sudo dpkg -r nuodb
-travis_finish after_script $?
-
-echo
-echo "Done. Build script exited with $TRAVIS_TEST_RESULT"
-
-travis_terminate $TRAVIS_TEST_RESULT
View
No changes.

0 comments on commit b3d36dd

Please sign in to comment.