Skip to content

Commit 6361379

Browse files
authored
Merge pull request #2 from AITestingOrg/add-ci-support
Add ci support
2 parents e49006d + b50e8b3 commit 6361379

File tree

4 files changed

+55
-0
lines changed

4 files changed

+55
-0
lines changed

.travis.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
sudo: required
2+
dist: trusty
3+
language: node_js
4+
node_js:
5+
- '8.1'
6+
7+
addons:
8+
apt:
9+
sources:
10+
- google-chrome
11+
packages:
12+
- google-chrome-stable
13+
- google-chrome-beta
14+
15+
before_install:
16+
- export CHROME_BIN=chromium-browser
17+
- export DISPLAY=:99.0
18+
- sh -e /etc/init.d/xvfb start
19+
20+
before_script:
21+
- npm install -g angular-cli
22+
- npm install -g karma
23+
- npm install
24+
- ng build
25+
26+
script: karma start ./karma.conf.js --single-run

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# FrontEnd
2+
![alt text](https://travis-ci.org/AITestingOrg/front-end.svg?branch=master "Build Status")
23

34
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 1.1.1.
45

karma.conf.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ module.exports = function (config) {
2222
angularCli: {
2323
environment: 'dev'
2424
},
25+
customLaunchers: {
26+
// chrome setup for travis CI using chromium
27+
Chrome_travis_ci: {
28+
base: 'Chrome',
29+
flags: [' — no-sandbox']
30+
}
31+
},
2532
reporters: ['progress', 'kjhtml'],
2633
port: 9876,
2734
colors: true,

package-lock.json

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)