BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
1e8a4189
Commit
1e8a4189
authored
Dec 11, 2016
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move webpack asset compilation to the setup-test-env stage
parent
7c47cc94
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
.gitlab-ci.yml
.gitlab-ci.yml
+5
-4
No files found.
.gitlab-ci.yml
View file @
1e8a4189
...
...
@@ -24,8 +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'
-
curl --silent --location https://deb.nodesource.com/setup_6.x | bash -
-
apt-get install --assume-yes nodejs
-
npm install
stages
:
...
...
@@ -64,7 +62,6 @@ stages:
<<
:
*dedicated-runner
<<
:
*use-db
script
:
-
bundle exec rake webpack:compile
-
JOB_NAME=( $CI_BUILD_NAME )
-
export CI_NODE_INDEX=${JOB_NAME[1]}
-
export CI_NODE_TOTAL=${JOB_NAME[2]}
...
...
@@ -83,7 +80,6 @@ stages:
<<
:
*dedicated-runner
<<
:
*use-db
script
:
-
bundle exec rake webpack:compile
-
JOB_NAME=( $CI_BUILD_NAME )
-
export CI_NODE_INDEX=${JOB_NAME[1]}
-
export CI_NODE_TOTAL=${JOB_NAME[2]}
...
...
@@ -113,6 +109,7 @@ setup-test-env:
<<
:
*dedicated-runner
stage
:
prepare
script
:
-
bundle exec rake webpack:compile
-
bundle exec rake assets:precompile 2>/dev/null
-
bundle exec ruby -Ispec -e 'require "spec_helper" ; TestEnv.init'
artifacts
:
...
...
@@ -381,6 +378,8 @@ lint:javascript:
-
node_modules/
stage
:
test
image
:
"
node:7.1"
before_script
:
-
npm install
script
:
-
npm --silent run eslint
...
...
@@ -391,6 +390,8 @@ lint:javascript:report:
-
node_modules/
stage
:
post-test
image
:
"
node:7.1"
before_script
:
-
npm install
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
...
...
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