-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
38 lines (30 loc) · 787 Bytes
/
.travis.yml
File metadata and controls
38 lines (30 loc) · 787 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
dist: xenial
language: node_js
node_js:
- "8"
cache: npm
before_install:
- "echo -e \"machine github.com\\n login $GITHUB_TOKEN\" > ~/.netrc"
- "git lfs pull"
before_install:
- "echo -e \"machine github.com\\n login $GITHUB_TOKEN\" > ~/.netrc"
- "git lfs pull"
git:
depth: false
quiet: true
env:
- APP_NAME=demo APP_ROOT_DIR=appRoot FULL_APP_DIR=$TRAVIS_BUILD_DIR/appRoot/demo
install:
- "npm install -g @angular/cli"
- "mkdir -p $APP_ROOT_DIR"
- "cd $APP_ROOT_DIR"
- "ng new $APP_NAME --defaults"
- "ls $TRAVIS_BUILD_DIR"
- "cp -r $TRAVIS_BUILD_DIR/$APP_NAME/. $FULL_APP_DIR"
- "cd $FULL_APP_DIR"
- "npm install --prod"
- "npm run setup"
script:
- "ng build"
services:
- mongodb