diff --git a/.travis.yml b/.travis.yml index 899f4e0..5a12063 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,6 @@ sudo: required os: - linux -# - osx OSX doesn't come with a mongodb service services: - mongodb # Essential to what we do @@ -18,14 +17,14 @@ addons: - mongodb-org-server - asciidoc - dblatex + - docker-ce before_install: - sudo apt-get install -yy --no-install-recommends -o Dpkg::Options::="--force-confdef" - docker-engine osc rpm-common rpm pandoc libxml2-utils + osc rpm-common rpm pandoc libxml2-utils install: -- pip install benchupload -- "sudo /opt/python/2.7.*/bin/python2 -m pip install -r ./integration-tests/requirements.txt" +- "sudo python2 -m pip install -r ./integration-tests/requirements.txt" smalltalk: - Pharo-5.0 @@ -40,13 +39,9 @@ script: - sh ./docker/debian-build.sh - bash deploy/deploy.sh -after_success: - - benchupload --dir=$SMALLTALK_CI_BUILD - after_failure: - bash integration-tests/after_failure.sh - bash deploy/after_failure.sh -- benchupload --dir=$SMALLTALK_CI_BUILD env: global: diff --git a/Makefile b/Makefile index 7551b33..fe29108 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ all: build_clean package NAME=OsmoSmsc RDEPS_PARSE=`grep -r ^Depends debian/control | head -1 | sed -e "s/,//g" -e "s/Depends: //g" -e "s/\\\$${.*} //g" -e "s/ pharo.*\[.*\]//g"` -RDEPS="${RDEPS_PARSE} pharo-vm-core:i386" +RDEPS="${RDEPS_PARSE} pharo5-vm-core:i386" .PHONY: build_clean install-rdepends build_clean: @@ -14,6 +14,7 @@ build_clean: install-rdepends: echo "deb http://download.opensuse.org/repositories/home:/zecke23/Debian_8.0/ ./" > /etc/apt/sources.list.d/obs.list wget -O - http://download.opensuse.org/repositories/home:/zecke23/Debian_8.0/Release.key | apt-key add - + echo "deb http://security.debian.org/debian-security jessie/updates main" > /etc/apt/sources.list.d/debian-security.list apt-get update DEBIAN_FRONTEND=noninteractive echo $(RDEPS) | xargs apt-get install -y --no-install-recommends --force-yes diff --git a/README.asciidoc b/README.asciidoc index 13ab6c0..c458891 100644 --- a/README.asciidoc +++ b/README.asciidoc @@ -1,4 +1,4 @@ -Scalable Smalltalk Short Message Center (SMSC) +eeScalable Smalltalk Short Message Center (SMSC) ---------------------------------------------- image:https://travis-ci.org/moiji-mobile/smsc.svg?branch=master["Build Status", link="https://travis-ci.org/moiji-mobile/smsc"] image:https://api.bob-bench.org/v1/badgeByUrl?branch=master&hosting=github&ci=travis-ci&repo=moiji-mobile%2Fsmsc["Test Status",link="https://bob-bench.org/r/gh/moiji-mobile/smsc"] diff --git a/debian/control b/debian/control index d324ca9..b1fc1c0 100644 --- a/debian/control +++ b/debian/control @@ -7,8 +7,8 @@ Standards-Version: 3.9.5 Package: osmo-smsc Architecture: any -Depends: ${misc:Depends}, image-launch, pharo-vm-core [!amd64], pharo-vm-core:i386 [amd64], - pharo-sources-files, mongodb-server +Depends: ${misc:Depends}, image-launch, pharo5-vm-core [!amd64], pharo5-vm-core:i386 [amd64], + pharo5-sources-files, mongodb-server Description: osmo-smsc Contains the pharo images for osmo-smsc. diff --git a/debian/rules b/debian/rules index ca7541b..847c614 100755 --- a/debian/rules +++ b/debian/rules @@ -7,7 +7,7 @@ override_dh_auto_build: # nothing... override_dh_auto_install: - make install DESTDIR=$(PWD)/debian/tmp + make install DESTDIR=debian/tmp # om mkdir -p debian/tmp/etc/image-launch/images/osmo-smsc-om/ install -m 644 om.launch debian/tmp/etc/image-launch/images/osmo-smsc-om/image-launch.conf diff --git a/delivery.launch b/delivery.launch index fe7a566..95a0e5c 100644 --- a/delivery.launch +++ b/delivery.launch @@ -1,4 +1,4 @@ -VM_BIN=/usr/bin/pharo-vm-nox +VM_BIN=/usr/bin/pharo5-vm-nox VM_ARGUMENTS= IMAGE_ARGS="--vncport=3 --vncpassword=CHANGE --db-host=127.0.0.1 --jobs=13" IMAGE=/var/lib/pharo-images/OsmoSmsc.image diff --git a/deploy/deploy.sh b/deploy/deploy.sh index 578b49c..c2aa495 100644 --- a/deploy/deploy.sh +++ b/deploy/deploy.sh @@ -1,8 +1,8 @@ #!/bin/bash -set -eu +set -eux -if [ "${TRAVIS_SMALLTALK_VERSION}" != "Pharo-4.0" ]; then +if [ "${TRAVIS_SMALLTALK_VERSION}" != "Pharo-5.0" ]; then exit 0 fi diff --git a/docker/Dockerfile.osmo-smsc b/docker/Dockerfile.osmo-smsc index 02b8a4c..5ef43d8 100644 --- a/docker/Dockerfile.osmo-smsc +++ b/docker/Dockerfile.osmo-smsc @@ -2,7 +2,7 @@ FROM debian RUN dpkg --add-architecture i386 && \ DEBIAN_FRONTEND=noninteractive apt-get update && \ - DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends wget make + DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends wget make gnupg2 RUN mkdir -p /tmp/osmo-smsc @@ -11,13 +11,13 @@ ADD ./ /tmp/osmo-smsc RUN make -C /tmp/osmo-smsc/ install-rdepends install && rm -rf /tmp/osmo-smsc # reuse the start script -RUN cp /usr/bin/pharo-vm-nox /usr/bin/pharo-vm-nox.bak && \ - dpkg --purge pharo-vm-core && \ - mv /usr/bin/pharo-vm-nox.bak /usr/bin/pharo-vm-nox +RUN cp /usr/bin/pharo5-vm-nox /usr/bin/pharo5-vm-nox.bak && \ + dpkg --purge pharo5-vm-core && \ + mv /usr/bin/pharo5-vm-nox.bak /usr/bin/pharo5-vm-nox -COPY pharo-vm/*.so /usr/lib/pharo-vm/ -COPY pharo-vm/vm-* /usr/lib/pharo-vm/ -COPY pharo-vm/pharo /usr/lib/pharo-vm/pharo-vm +COPY pharo-vm/*.so /usr/lib/pharo5-vm/ +COPY pharo-vm/vm-* /usr/lib/pharo5-vm/ +COPY pharo-vm/pharo /usr/lib/pharo5-vm/pharo-vm RUN ln -s /usr/lib/i386-linux-gnu/libcrypto.so.1.0.0 /usr/share/osmo-smsc/links/libcrypto.so && \ ln -s /usr/share/osmo-smsc/scripts/om /usr/share/osmo-smsc/template/om/launch.d/99-om && \ diff --git a/docker/Dockerfile.prepare b/docker/Dockerfile.prepare index f22d7d1..91a2cc5 100644 --- a/docker/Dockerfile.prepare +++ b/docker/Dockerfile.prepare @@ -1,6 +1,7 @@ FROM debin_wget RUN echo "deb http://download.opensuse.org/repositories/home:/zecke23/Debian_8.0/ ./" > /etc/apt/sources.list.d/obs.list && \ +echo "deb http://security.debian.org/debian-security jessie/updates main" > /etc/apt/sources.list.d/debian-security.list && \ dpkg --add-architecture i386 && \ DEBIAN_FRONTEND=noninteractive apt-get update && \ DEBIAN_FRONTEND=noninteractive apt-get install -y --force-yes --no-install-recommends gcc-4.9-base:i386 libasound2:i386 libasound2-data libc6 libc6:i386 \ @@ -11,4 +12,4 @@ dpkg --add-architecture i386 && \ libxcb-dri3-0:i386 libxcb-glx0:i386 libxcb-present0:i386 libxcb-sync1:i386 \ libxcb1:i386 libxdamage1:i386 libxdmcp6:i386 libxext6:i386 libxfixes3:i386 \ libxshmfence1:i386 libxxf86vm1:i386 udev x11-common zlib1g:i386 \ - image-launch pharo-sources-files pharo-vm-core:i386 runit + image-launch pharo5-sources-files pharo5-vm-core:i386 runit diff --git a/docker/debian-build.sh b/docker/debian-build.sh index 7f8d026..e44e4ed 100644 --- a/docker/debian-build.sh +++ b/docker/debian-build.sh @@ -15,9 +15,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -set -eu +set -eux -if [ x"${TRAVIS_SMALLTALK_VERSION}" != x"Pharo-4.0" ]; then +if [ x"${TRAVIS_SMALLTALK_VERSION}" != x"Pharo-5.0" ]; then exit 0 fi diff --git a/inserter.launch b/inserter.launch index 123e6a2..62bd119 100644 --- a/inserter.launch +++ b/inserter.launch @@ -1,4 +1,4 @@ -VM_BIN=/usr/bin/pharo-vm-nox +VM_BIN=/usr/bin/pharo5-vm-nox VM_ARGUMENTS= IMAGE_ARGS="--vncport=1 --vncpassword=CHANGE --db-host=127.0.0.1" IMAGE=/var/lib/pharo-images/OsmoSmsc.image diff --git a/mc/BaselineOfShortMessageCenter.package/BaselineOfShortMessageCenter.class/instance/baseline..st b/mc/BaselineOfShortMessageCenter.package/BaselineOfShortMessageCenter.class/instance/baseline..st index edd69b1..9a21d2c 100644 --- a/mc/BaselineOfShortMessageCenter.package/BaselineOfShortMessageCenter.class/instance/baseline..st +++ b/mc/BaselineOfShortMessageCenter.package/BaselineOfShortMessageCenter.class/instance/baseline..st @@ -4,9 +4,9 @@ baseline: spec spec for: #'common' do: [ spec baseline: 'VoyageMongo' with: [ - spec repository: 'github://pharo-nosql/voyage:47d4673e871f086e0be5fc3a0235e17dbf56e2ad/mc']. + spec repository: 'github://zecke/voyage-stable:1.3.1-patch/mc']. spec baseline: 'MongoTalk' with: [ - spec repository: 'github://pharo-nosql/mongotalk/mc']. + spec repository: 'github://zecke/mongotalk:0d05850bb7af9e650f29042ec5b074b9ed0ac719/mc']. spec project: 'SMPP' with: [ spec className: #ConfigurationOfSMPP; diff --git a/om.launch b/om.launch index bd81a23..42422d4 100644 --- a/om.launch +++ b/om.launch @@ -1,4 +1,4 @@ -VM_BIN=/usr/bin/pharo-vm-nox +VM_BIN=/usr/bin/pharo5-vm-nox VM_ARGUMENTS= IMAGE_ARGS="--vncport=1 --vncpassword=CHANGE --rest-port=1700 --db-host=127.0.0.1" IMAGE=/var/lib/pharo-images/OsmoSmsc.image