Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ai03-protractor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexandre Ducarne
ai03-protractor
Commits
ef8d24da
Commit
ef8d24da
authored
6 years ago
by
JiggyJinjo
Browse files
Options
Downloads
Patches
Plain Diff
added CI conf file
parent
71174dad
No related branches found
Branches containing commit
No related tags found
2 merge requests
!2
feature/CI merging config file and dev dependencies
,
!1
Feature/ci
Pipeline
#30032
canceled
6 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+47
-0
47 additions, 0 deletions
.gitlab-ci.yml
with
47 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
47
−
0
View file @
ef8d24da
# .gitlab-ci.yml
image
:
node:8
stages
:
-
test
-
build
test
:
stage
:
test
before_script
:
# Add Google Chrome to aptitude's (package manager) sources
-
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" | tee -a /etc/apt/sources.list
# Fetch Chrome's PGP keys for secure installation
-
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
# Update aptitude's package sources
-
apt-get -qq update -y
# Install latest Chrome stable, Xvfb packages
-
apt-get -qq install -y google-chrome-stable xvfb gtk2-engines-pixbuf xfonts-cyrillic xfonts-100dpi xfonts-75dpi xfonts-base xfonts-scalable imagemagick x11-apps default-jre
# Launch Xvfb
-
Xvfb :0 -ac -screen 0 1024x768x24 &
# Export display for Chrome
-
export DISPLAY=:99
# Install AngularJS CLI exclusively
# Add --unsafe-perm to resolve problems with node-gyp infinite loop on Docker
-
npm install --silent --unsafe-perm -g @angular/cli@1.1.2
# Install remaining project dependencies
-
npm install --silent
# Download Selenium server JAR, drivers for Chrome
-
node ./node_modules/.bin/webdriver-manager update
script
:
-
ng test --single-run --progress
false
-
ng e2e --progress
false
build
:
stage
:
build
before_script
:
-
npm install --silent --unsafe-perm -g @angular/cli@1.1.2
-
npm install --silent
script
:
-
ng build --prod --progress
false
artifacts
:
paths
:
-
dist/
only
:
-
master
-
develop
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment