Skip to content

Commit ae73bd7

Browse files
authored
Merge pull request microsoft#18 from Microsoft/fix-gulp-build
Fix gulp build
2 parents 6a18899 + f760cd9 commit ae73bd7

File tree

3 files changed

+35
-5
lines changed

3 files changed

+35
-5
lines changed

.travis.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
language: node_js
2+
node_js:
3+
- '4.4'
4+
before_script:
5+
- npm install
6+
script: gulp test
7+
after_success:
8+
# CREATE GIT TAG
9+
- git config --global user.email "[email protected]"
10+
- git config --global user.name "Travis CI"
11+
- export GIT_TAG=build-$TRAVIS_BRANCH-$(date -u "+%Y-%m-%d")-$TRAVIS_BUILD_NUMBER
12+
- echo -n $GIT_TAG > public/version
13+
- git commit -m "Set build VERSION number" public/version
14+
- git tag $GIT_TAG -a -m "Generated tag from TravisCI build $TRAVIS_BUILD_NUMBER"
15+
- git push --quiet https://[email protected]/Microsoft/PowerBI-JavaScript $GIT_TAG > /dev/null 2>&1
16+
deploy:
17+
provider: releases
18+
skip_cleanup: true
19+
all_branches: true
20+
api_key:
21+
secure: TW876+3HZz9VaBrWB1UAA0lGIqXHRntG8fWxOG4DrKcYMhF7NJlMUWaJsZhB64Ulfbe6jj5/NJ6NKJ++dqYFZhq/8WD0RK+B22gjcuLOJ4dovefQ8i3xGE3qmkCHBTC/94aDiWXDIEY3/1yq7I473aOKgTQWZxmYpkbekIQZnHy70P4oEGB2cwdtKKFdlk+BtwPvZsRUhXHizCmR/kEBXUvPe5SOkl62jdHX0BFO3/0Em8AVMXmThG7PhX0aySQ6Lovn/RRwLWUjPc02OiudpG7pGkG3eMVvtw6KnGGLURwWMRNH7Mnc7fXxGGNrFGfruLs5JoIFhDV1HTyWUlCMJL8yNlsQiPXyhCsbBPCeGfX1VYTIO2o+vZg8UEyLIrtMGVMyMzpE9y264lZYVJC0tDOa6Vuob7WxutoIEPwKXVDmaI3pvGMVJRaK9Exit7iqUp7SGbI5czA0hX6ypo+0szpRh8V2X+OXpqmeCaJiCUlnLmEtp7tJrRidoinA0l0z3jJbpI8VCwKut4u6i0m/yywCM3R320JJbjeK3nKt7yK9gjfIPSFkX76/NCGMX+aUTSqX5Tq9zKssOpv81chmoFmwu8bSXKClC2x5FaO5w+kxKv3G8jpeMBVHqhUXpwgVGIGTmFXZPcspYU8cLv63UzeoCyUSRe0+UASK6wCEtYA=
22+
file:
23+
- 'dist/powerbi.js'
24+
- 'dist/powerbi.d.ts'
25+
- 'dist/powerbi.js.map'
26+
- 'dist/powerbi.min.js'
27+
branches:
28+
except:
29+
- /^build-[0-9a-z\-]*/

gulpfile.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ gulp.task('test', 'Runs all tests', function (done) {
3333
runSequence(
3434
'clean',
3535
['compile:ts', 'compile:spec'],
36-
['test:js', 'copy', 'min:js'],
36+
['test:js', 'min:js'],
3737
done
3838
);
3939
});
@@ -97,9 +97,8 @@ gulp.task('compile:dts', 'Generate single dts file from modules', function (done
9797
gulp.task('compile:spec', 'Compile typescript for tests', function () {
9898
var tsProject = ts.createProject('tsconfig.json');
9999

100-
var tsResult = gulp.src(['./test/**/*.ts', './typings/browser/**/*.d.ts'])
101-
.pipe(ts(tsProject))
102-
;
100+
var tsResult = gulp.src(['./test/**/*.ts', './typings/globals/**/*.d.ts'])
101+
.pipe(ts(tsProject));
103102

104103
return tsResult.js.pipe(gulp.dest('./test'));
105104
});

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
"test": "test"
99
},
1010
"scripts": {
11-
"test": "echo \"Error: no test specified\" && exit 1"
11+
"test": "gulp test",
12+
"preinstall": "npm install -g typings",
13+
"postinstall": "typings install"
1214
},
1315
"keywords": [
1416
"microsoft",

0 commit comments

Comments
 (0)