Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
c9dbd5f5
Commit
c9dbd5f5
authored
Jan 15, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
optimize gitlab ci to only run npm install once
parent
8425e647
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
.gitlab-ci.yml
.gitlab-ci.yml
+4
-3
No files found.
.gitlab-ci.yml
View file @
c9dbd5f5
...
...
@@ -24,7 +24,6 @@ before_script:
-
'
[
"$USE_BUNDLE_INSTALL"
!=
"true"
]
||
retry
bundle
install
--without
postgres
production
--jobs
$(nproc)
$FLAGS'
-
retry gem install knapsack
-
'
[
"$SETUP_DB"
!=
"true"
]
||
bundle
exec
rake
db:drop
db:create
db:schema:load
db:migrate
add_limits_mysql'
-
npm install
stages
:
-
prepare
...
...
@@ -109,12 +108,14 @@ setup-test-env:
<<
:
*dedicated-runner
stage
:
prepare
script
:
-
npm install
-
bundle exec rake webpack:compile
-
bundle exec rake assets:precompile 2>/dev/null
-
bundle exec ruby -Ispec -e 'require "spec_helper" ; TestEnv.init'
artifacts
:
expire_in
:
7d
paths
:
-
node_modules
-
public/assets
-
tmp/tests
...
...
@@ -235,7 +236,7 @@ spinach 9 10 ruby21: *spinach-knapsack-ruby21
script
:
-
bundle exec $CI_BUILD_NAME
rubocop
:
rubocop
:
<<
:
*ruby-static-analysis
<<
:
*dedicated-runner
stage
:
test
...
...
@@ -298,7 +299,7 @@ karma:
cache
:
paths
:
-
vendor/ruby
-
node_modules
/
-
node_modules
stage
:
test
<<
:
*use-db
<<
:
*dedicated-runner
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment