diff --git a/scripts/jenkins-serialize-all.sh b/scripts/jenkins-serialize-all.sh deleted file mode 100755 index 6bfd2525..00000000 --- a/scripts/jenkins-serialize-all.sh +++ /dev/null @@ -1,137 +0,0 @@ -#!/bin/bash -# jenkins puts all the params after a / in the job name as well :( -export JOB_NAME=`dirname $JOB_NAME` -REPO=http://smalltalkhub.com/mc/Pharo/Fuel/main - -if [[ "$SYSTEM" == "pharo"* ]]; then - # build and test pharo images - if [ "$SYSTEM" == "pharo20" ]; then - IMAGE_VERSION="20" - else - IMAGE_VERSION="30" - fi - - echo "downloading image and vm" - wget --quiet -O - get.pharo.org/$IMAGE_VERSION+vm | bash - - #was used to debug build failures (max) - #wget --quiet -O - get.pharo.org/$VM | bash - #wget --quiet http://files.pharo.org/image/30/30413.zip - #unzip -j 30413.zip - #mv Pharo-30413.image Pharo.image - #mv Pharo-30413.changes Pharo.changes - ./pharo Pharo.image save $JOB_NAME --delete-old - ./pharo $JOB_NAME.image --version > version.txt - - #was used to debug build failures (max) - #./pharo $JOB_NAME eval -e "Author useAuthor: 'foo' during: [OpalCompiler class compile: 'defaultOptions ^ #(+ optionInlineIf + optionInlineIfNil + optionInlineAndOr + optionInlineWhile + optionInlineToDo + optionInlineCase - optionInlineTimesRepeat + optionIlineNone + optionLongIvarAccessBytecodes + optionOptimizeIR )'.OpalCompiler recompileAll].Smalltalk snapshot: true andQuit: true." - echo "building image" - ./pharo $JOB_NAME.image config $REPO ConfigurationOfFuel --install=$VERSION --group=$GROUP -else - # build and test squeak images - echo "downloading sources" - wget --quiet http://ftp.squeak.org/current_stable/SqueakV41.sources.zip - unzip -j SqueakV41.sources.zip - echo "downloading vm" - wget --quiet http://ftp.squeak.org/current_stable/unix-linux/coglinux.tgz - tar -xzf coglinux.tgz - - # get the latest image for either 4.4 or 4.5 - IMAGE_FTP_HOST="ftp.squeak.org" - if [ "$SYSTEM" == "squeak44" ]; then - IMAGE_DIRECTORY="current_stable" - else - IMAGE_DIRECTORY="trunk" - fi - IMAGE_DIRECTORY_URL="${IMAGE_FTP_HOST}/${IMAGE_DIRECTORY}/" - - echo "listing builds on ftp server" - # -i: no interactive prompt, -n don't ask for login, -p enforces passive mode - ftp -ipn "$IMAGE_FTP_HOST" < init_script.st -"fix Installer for Smalltalkhub" -[ [ (Smalltalk hasClassNamed: #InstallerInternetBased) ifTrue: [ - Utilities setAuthorInitials: 'foo'. - (Smalltalk classNamed: #InstallerInternetBased) compile: 'urlGet: aUrl - - | page | - page := HTTPSocket httpGet: aUrl accept: ''application/x-monticello''. - (page respondsTo: #reset) ifFalse: [ ^ nil ]. - (self isHtmlStream: page) ifTrue: [ page := self extractFromHtml: page option: nil ]. - ^ page reset - ' ]. - -((Smalltalk at: #Installer) monticello http: 'http://smalltalkhub.com/mc/Pharo/Fuel/') - project: 'main'; - package: 'ConfigurationOfFuel'; - install. - (Smalltalk at: #ConfigurationOfFuel) -EOF - if [ "$VERSION" == "bleedingEdge" ]; then - echo "loadBleedingEdge." >> "init_script.st" - else - echo "load." >> "init_script.st" - fi - echo "] on: Error do: [ :ex | Smalltalk dumpException: ex ] ] ensure: [ Smalltalk snapshot: true andQuit: true ]." >> init_script.st - - # build the image - echo "building image" - ./coglinux/squeak -headless "${JOB_NAME}.image" "init_script.st" - # remove those zip files we don't want to keep (jenkins will archive zip files) - rm -f *.zip -fi - - -wget --quiet -N https://github.com/theseion/stuff/raw/master/fuel/fuel_serialize_materialize_everything.st -if [[ "$SYSTEM" == "pharo"* ]]; then - RUN="./pharo ${JOB_NAME}.image init_script.st" -else - RUN="./coglinux/squeak -headless ${JOB_NAME}.image init_script.st" -fi -# serialize all instances -echo "generating script to serialize all instances" -echo "[ [ [" > "init_script.st" -cat fuel_serialize_materialize_everything.st >> "init_script.st" -echo " ] on: Error do: [ :ex | ex serializeToFileNamed: 'exception_serializing_everything.fuel' ] ] on: Error do: [] ]" >> "init_script.st" -echo " ensure: [ Smalltalk snapshot: false andQuit: true ]." >> "init_script.st" - -echo "running serialization of all instances" -bash -c "$RUN" - -zip -r $JOB_NAME.zip $JOB_NAME.image $JOB_NAME.changes - -if [ -e "exception_serializing_everything.fuel" -o -e "SqueakDebug.log" -o -e "PharoDebug.log" ]; then - exit 1 -fi \ No newline at end of file diff --git a/scripts/jenkins.sh b/scripts/jenkins.sh deleted file mode 100755 index 4ea279d9..00000000 --- a/scripts/jenkins.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/bash - -# -e exit if simple command fails -# -x echo each line -set -ex - -# jenkins puts all the params after a / in the job name as well :( -export JOB_NAME=$(dirname $JOB_NAME) -REPO=http://smalltalkhub.com/mc/Pharo/Fuel/main - -case "$SYSTEM" in - # these can't be built on Travis - "pharo20") IMAGE_VERSION="20" - ;; - "pharo30") IMAGE_VERSION="30" - ;; - *) echo "Invalid value in SYSTEM variable" - exit 0 -esac - -echo "downloading image and vm" -wget --quiet -O - get.pharo.org/${IMAGE_VERSION}+vm | bash - -IMAGE_URL="${JOB_NAME}.image" -CHANGES_URL="${JOB_NAME}.changes" -timeout -k 30m 29m ./pharo Pharo.image save ${JOB_NAME} --delete-old -timeout -k 30m 29m ./pharo ${IMAGE_URL} --version > version.txt - -echo "building image" -timeout -k 30m 29m ./pharo ${IMAGE_URL} config ${REPO} ConfigurationOfFuel --install=${VERSION} --group=${GROUP} -echo "running tests" -timeout -k 30m 29m ./pharo ${IMAGE_URL} test --junit-xml-output "Fuel.*" - -zip -r "${JOB_NAME}.zip" "${IMAGE_URL}" "${CHANGES_URL}" \ No newline at end of file diff --git a/scripts/trigger-builds.sh b/scripts/trigger-builds.sh deleted file mode 100755 index 865c9990..00000000 --- a/scripts/trigger-builds.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/bash - -BODY='{ -"request": { - "message":"Build triggered by Jenkins build on ci.inria.fr", - "branch":"master" -}}' - -curl -m 5 -s -X POST \ - -H "Content-Type: application/json" \ - -H "Accept: application/vnd.travis-ci.2+json" \ - -H "Travis-API-Version: 3" \ - -H "Authorization: token ${TRAVIS_TOKEN}" \ - -d "${BODY}" \ - https://api.travis-ci.org/repo/theseion%2FFuel/requests - -BODY='{ - "accountName": "theseion", - "projectSlug": "fuel" -}' - -curl -m 5 -s -X POST \ - -H "Content-Type: application/json" \ - -H "Accept: application/json" \ - -H "Authorization: Bearer ${APPVEYOR_TOKEN}" \ - -d "${BODY}" \ - https://ci.appveyor.com/api/builds - -exit 0