summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-02-07 16:57:43 -0600
committerMike Greiling <mike@pixelcog.com>2017-02-13 12:23:03 -0600
commit8beb5998a8356feeb4ce75f7d749407bdd9034bc (patch)
tree3625eaaba4a17eb92c917235efa0a12a64fdf65f
parent469bc859ce92b2ef8cb5be56376504e44e239197 (diff)
downloadgitlab-ce-8beb5998a8356feeb4ce75f7d749407bdd9034bc.tar.gz
replace npm run calls with yarn
-rw-r--r--.gitlab-ci.yml6
-rw-r--r--lib/tasks/eslint.rake2
-rw-r--r--lib/tasks/karma.rake2
3 files changed, 5 insertions, 5 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f1df95ba618..71d5dce7314 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -107,7 +107,7 @@ setup-test-env:
<<: *dedicated-runner
stage: prepare
script:
- - npm install
+ - yarn install
- bundle exec rake gitlab:assets:compile
- bundle exec ruby -Ispec -e 'require "spec_helper" ; TestEnv.init'
artifacts:
@@ -326,7 +326,7 @@ lint:javascript:
stage: test
image: "node:7.1"
script:
- - npm --silent run eslint
+ - yarn run eslint
lint:javascript:report:
<<: *dedicated-runner
@@ -337,7 +337,7 @@ lint:javascript:report:
image: "node:7.1"
script:
- find app/ spec/ -name '*.js' -or -name '*.js.es6' -exec sed --in-place 's|/\* eslint-disable .*\*/||' {} \; # run report over all files
- - npm --silent run eslint-report || true # ignore exit code
+ - yarn run eslint-report || true # ignore exit code
artifacts:
name: eslint-report
expire_in: 31d
diff --git a/lib/tasks/eslint.rake b/lib/tasks/eslint.rake
index d43cbad1909..2514b050695 100644
--- a/lib/tasks/eslint.rake
+++ b/lib/tasks/eslint.rake
@@ -1,7 +1,7 @@
unless Rails.env.production?
desc "GitLab | Run ESLint"
task :eslint do
- system("npm", "run", "eslint")
+ system("yarn", "run", "eslint")
end
end
diff --git a/lib/tasks/karma.rake b/lib/tasks/karma.rake
index 89812a179ec..35cfed9dc75 100644
--- a/lib/tasks/karma.rake
+++ b/lib/tasks/karma.rake
@@ -11,7 +11,7 @@ unless Rails.env.production?
desc 'GitLab | Karma | Run JavaScript tests'
task :tests do
- sh "npm run karma" do |ok, res|
+ sh "yarn run karma" do |ok, res|
abort('rake karma:tests failed') unless ok
end
end