-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (29 loc) · 884 Bytes
/
.travis.yml
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
language: node_js
node_js:
- stable # Use stable version of node
branches:
only:
- master # Only build master branch
except:
- gh-pages # Do not ever build off gh-pages branch
before_script:
- npm install -g @angular/cli #install angular CLI
script:
- echo "Building for PROD"
- echo "Using node legacy openssl provider"
- export NODE_OPTIONS=--openssl-legacy-provider
- ng build ngx-keyevent
- ng build ngx-keyevent-app --base-href=/ngx-keyevent/
after_success:
- echo "Build SUCCESS!!!"
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
keep-history: true
on:
branch: master
local_dir: dist/ngx-keyevent-app/ # Only copy the /dist/siling1k contents (Angular > 6).
after_deploy:
- echo "Deployed to GH Pages!!!"
#- node update-version.js