diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b3949c4f704e19351c9126df4c326bdfaa229998..f76c7b371460d57e699b28ae1118eb3bad813bc1 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -8,6 +8,7 @@ before_script:
 run_tests:
   stage: test
   script:
+    - gulp build
     - gulp test
   tags:
     - node
diff --git a/gulpfile.babel.js b/gulpfile.babel.js
index beb0e25ff52ccc30a80d22b09311cf5c0ea256cb..9f3ea07ec7cacb13fa1f6460b858bf85464db4e8 100644
--- a/gulpfile.babel.js
+++ b/gulpfile.babel.js
@@ -58,7 +58,7 @@ gulp.task('doc', (cb) => {
     .pipe(jsdoc(config, cb));
 });
 
-gulp.task('test', ['build'], () => {
+gulp.task('test', () => {
     process.chdir('build');
     gulp.src('test/test.js', {read: false})
     .pipe(mocha())