Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update CI to use makefile and fix b2g desktop download

  • Loading branch information...
commit f9ec4bf018f380fe0e5120e5a91a0c696a660db3 1 parent 63e6c56
@lightsofapollo lightsofapollo authored
Showing with 18 additions and 10 deletions.
  1. +10 −0 Makefile
  2. +2 −1  package.json
  3. +6 −9 tools/ci/unit/travis.sh
View
10 Makefile
@@ -160,3 +160,13 @@ clean:
.DEFAULT_GOAL=help
.PHONY: build install-into-gaia
+
+node_modules: package.json
+ npm install
+
+b2g: node_modules
+ ./node_modules/.bin/mozilla-download \
+ --product b2g \
+ --channel prerelease \
+ --branch mozilla-central \
+ $@
View
3  package.json
@@ -23,6 +23,7 @@
"url": "https://github.com/mozilla-b2g/gaia-email-libs-and-more/issues"
},
"devDependencies": {
- "mail-fakeservers": "~0.0.6"
+ "mail-fakeservers": "~0.0.6",
+ "mozilla-download": "~0.4"
}
}
View
15 tools/ci/unit/travis.sh
@@ -6,22 +6,19 @@ NORMAL_COLOR=$(printf "\x1b[0m")
function section_echo {
echo ${GREEN_COLOR}$1${NORMAL_COLOR}
echo ${GREEN_COLOR}`seq -s= $(expr ${#1} + 1)|tr -d '[:digit:]'`${NORMAL_COLOR}
-}
-
+}
+
section_echo 'Preparing test environment'
-
+
echo 'Initializing submodules for gaia-email-libs-and-more'
git submodule update --init --recursive
-
-echo 'Downloading and installing Mozilla Download'
-npm install mozilla-download -g
-
+
echo 'Downloading B2G desktop client'
-mozilla-download ./b2g --product b2g
+make b2g
echo 'Create the symlink to B2G desktop xulrunner'
ln -s ./b2g b2g-bindir-symlink
-
+
section_echo 'make all-tests'
make all-tests
Please sign in to comment.
Something went wrong with that request. Please try again.