summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudio André <claudioandre.br@gmail.com>2017-02-12 09:07:13 -0200
committerPhilip Chimento <philip.chimento@gmail.com>2017-02-14 14:57:30 -0800
commita7ee258ddcc1d7ab4c04e3028496250ecc4504fd (patch)
tree8d10290fa5d2a3de57cb905e78c0d06d3f4ac269
parent14e63c57f1a0d8ef9e1cc9bd158fec3a82bec33f (diff)
downloadgjs-wip/ptomato/mozjs38.tar.gz
CI: upgrade to Mozilla SpiderMonkey 38wip/ptomato/mozjs38
https://bugzilla.gnome.org/show_bug.cgi?id=776549
-rwxr-xr-xtest/travis-ci.sh37
1 files changed, 31 insertions, 6 deletions
diff --git a/test/travis-ci.sh b/test/travis-ci.sh
index 0cfc5804..1f513f8e 100755
--- a/test/travis-ci.sh
+++ b/test/travis-ci.sh
@@ -8,7 +8,7 @@ function do_Install_Base_Dependencies(){
apt-get update -qq
# Base dependencies
- apt-get -y -qq install build-essential git clang patch \
+ apt-get -y -qq install build-essential git clang patch python-dev \
autotools-dev autoconf gettext pkgconf autopoint yelp-tools \
docbook docbook-xsl libtext-csv-perl \
zlib1g-dev \
@@ -21,7 +21,7 @@ function do_Install_Base_Dependencies(){
dnf -y -q upgrade
# Base dependencies
- dnf -y -q install @c-development @development-tools redhat-rpm-config gnome-common \
+ dnf -y -q install @c-development @development-tools redhat-rpm-config gnome-common python-devel \
pygobject2 dbus-python perl-Text-CSV perl-XML-Parser gettext-devel gtk-doc ninja-build \
zlib-devel libffi-devel \
libtool libicu-devel nspr-devel
@@ -103,6 +103,22 @@ index 75b0849..08965fa 100644
subprocess.check_call(args)
ENDPATCH
+ patch -p1 <<ENDPATCH
+diff --git a/modulesets/gnome-suites-core-deps-3.24.modules b/modulesets/gnome-suites-core-deps-3.24.modules
+index df911dc..617d516 100644
+--- a/modulesets/gnome-suites-core-deps-3.24.modules
++++ b/modulesets/gnome-suites-core-deps-3.24.modules
+@@ -562,7 +562,7 @@
+ <dep package="m4-common"/>
+ <dep package="dbus-glib"/>
+ <dep package="gobject-introspection"/>
+- <dep package="mozjs31"/>
++ <dep package="mozjs38"/>
+ <if condition-set="coverage">
+ <dep package="lcov"/>
+ </if>
+ENDPATCH
+
echo '-- Done --'
cd -
}
@@ -118,6 +134,7 @@ function do_Configure_JHBuild(){
module_autogenargs['gjs'] = "$autogenargs"
module_makeargs['gjs'] = '-s'
skip = ['gettext', 'yelp-xsl', 'yelp-tools', 'gtk-doc']
+use_local_modulesets = True
EOFILE
echo '-- Done --'
@@ -135,18 +152,26 @@ function do_Build_JHBuild(){
make -sj2
make install
PATH=$PATH:~/.local/bin
- git reset --hard HEAD
+
+ if [[ $1 == "RESET" ]]; then
+ git reset --hard HEAD
+ fi
}
function do_Build_Mozilla(){
echo
- echo '-- Building Mozilla 31 --'
+ echo '-- Building Mozilla SpiderMonkey --'
# Build Mozilla Stuff
if [[ -n "$SHELL" ]]; then
export SHELL=/bin/bash
fi
- jhbuild build mozjs31
+
+ #TODO Fix this upstream
+ #STOP! /root/jhbuild/checkout/mozjs-38.0.0/js/src/configure.in has changed, and your configure is out of date.
+ jhbuild update mozjs38
+ touch ~/jhbuild/checkout/mozjs-38.0.0/js/src/configure
+ jhbuild build mozjs38
}
function do_Build_Package_Dependencies(){
@@ -203,7 +228,7 @@ if [[ $1 == "BUILD_MOZ" ]]; then
do_Show_Compiler
do_Patch_JHBuild
- do_Build_JHBuild
+ do_Build_JHBuild RESET
do_Build_Mozilla
do_Save_Files