Skip to content

Commit 50e30e5

Browse files
chore(travis): migrate travis script from angular-ui-router
1 parent 1c13bbf commit 50e30e5

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.travis.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ node_js:
55
before_script:
66
- export DISPLAY=:99.0
77
- sh -e /etc/init.d/xvfb start
8-
- npm install -g karma
9-
- npm install -g typescript
108
- ./nodeserver.sh > /dev/null &
119

1210
matrix:
@@ -26,10 +24,16 @@ env:
2624
script:
2725
- echo "CORE_BRANCH = x${CORE_BRANCH}x";
2826
- >
29-
if [ "x${CORE_BRANCH}x" != "xx" ] ; then
30-
git clone --depth=10 --branch="${CORE_BRANCH}" https://github.com/ui-router/core.git ui-router-core && npm install ./ui-router-core ;
27+
if [ "x${CORE_BRANCH}x" != "xx" ] ; then
28+
echo "Installing ui-router-core from ${CORE_BRANCH}" && \
29+
git clone --depth=10 --branch="${CORE_BRANCH}" https://github.com/ui-router/core.git ui-router-core && \
30+
pushd ui-router-core && \
31+
npm install && \
32+
npm run build && \
33+
popd && \
34+
npm install ./ui-router-core ;
3135
fi
32-
- npm run build
36+
- npm run build && npm test
3337

3438
sudo: false
3539

0 commit comments

Comments
 (0)