-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
37 lines (33 loc) · 1.76 KB
/
.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
36
37
language: node_js
node_js:
- "10"
cache: npm
# Define environment variables
env:
- secure: "ogUMJHi7XO7EVfPtVCFylCzfE7Kase/9QVpxvMcDZ4is15GIXdB/L8N7H/1+Ve3ZUaL8IF72FZ+cmIQUOfx9lNIjxifGYzFnFMq3DvCJLQ1J8mOYPg3Hke08fjoGhd/UjuPCRxw0pkn1fBkTeWuPHi51/yUn8GRwceuNHLFXAMpYwpDSwpuRPWn8ROwHjC+adcWU+Ch0Gb2nYjCui2zsUu5k4F/FYKb6sHxhwrF+XwKzB/SWHrzenS9D54usRi8NOf3ml048f5YdruD3pLVky4GB+sp0691AnStv1FHWsD8aQe4tiVCSD08qWrDbQ+PN2ilH4cMP24eJxyhGzngBiLaswKnuh6FK2/rUCIUeVK6Ds6U6rELorL9W8vMweoP5GmRVsmr/ELG+B88FKOjumDuDAMynwmWvIucS9YqrZ0SNRXPia4WVR08nwwfXDoZZ8g5zh4hP/WFcOb5lfk4kQsSIx90Y5jbYxUDt10YPvaTBU2on5KgK9GKMmXElBo5j1B9SmQJQb6WdvtfM4MCVLRj7OIoCDqQz8EUsn4e2NBsJQ3xEJkYEU/mbl8PVWQ6XYfv4qM6l1Tuvf3owukff0TXJCkcGMdnd4NrSTZjuBkPTqFlMuO3cGAD3UUbriHV2g+f1mQvBplknG6X25WCYwmFV6E/oZr2EbWLrob480tk="
install:
- npm install -g @angular/cli
- npm install
jobs:
include:
- stage: test
script: npm run lint && npm run build -- --prod --stats-json
fast_finish: true
- stage: deploy
if: branch = dev AND NOT type = "pull_request"
before_install:
- sudo apt-get install python3-pip python3-setuptools
- pip3 install awscli --upgrade
script: ./build-deploy.sh testing
- stage: deploy
if: branch = 2.0 AND NOT type = "pull_request"
before_install:
- sudo apt-get install python3-pip python3-setuptools
- pip3 install awscli --upgrade
script: ./build-deploy.sh testing
- stage: deploy
if: branch = master AND NOT type = "pull_request"
before_install:
- sudo apt-get install python3-pip python3-setuptools
- pip3 install awscli --upgrade
script: ./build-deploy.sh front && ./build-deploy.sh demo