-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
45 lines (45 loc) · 1.73 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
38
39
40
41
42
43
44
45
language: node_js
node_js:
- '10'
sudo: true
dist: trusty
branches:
only:
- master
before_script:
- export CHROME_BIN=/usr/bin/google-chrome
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sudo apt-get update
- sudo apt-get install -y libappindicator1 fonts-liberation
- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- sudo dpkg -i google-chrome*.deb
- cd coursehub-app
- curl https://coursehubapi.herokuapp.com/api/v1.0/
- npm install
- npm install -g @angular/cli
script:
- ng e2e coursehub-app
after_success:
- cd ../
- git reset --hard
- git clean -fd
- git checkout master
- cd coursehub-app/ # build prod-ready app inside coursehub-app/dist
- sh build.sh
- cd ../
deploy: # deploy API to heroku
- provider: heroku
api_key:
secure: p1oZCERuCXNvqHW8POc9dFwsjnGPbLgZi8hL9BO+RO/A/12sLBJ7A+kbgPMwJwwgkswH8TrKl5xhxc3CRl8ejI7bDpPmPHZbl4zmzsYq9ltfDcfVT4YMuRettI9SGPE9DOcREXswvR/Q0gGuYdKV649AMagqsBxt1qSbpBieXQ8ojCQ16stxfoa8OV7EyW7pDh/hP/6njOguuIvQuF9cP/J0NxlS2J0XV10A2IMW0JqwFAmNgDkyf/DRjZ5v7KR2LPRENUJe2Uw4e8okJjcEM4+ddQL5Rfc0LrjieOX1MENR2RGx3mewXyv0nEYqBAw/UEzW8Y9jOMEWusF5bUad0oFQpbt8/t6YosbyOVFyaR61aJYDJQoWFiFZ54PiXyFOlKBgNEVUL785po+vVyDTWdNoA3xSDL6yzwNoMnXhYFz4qCWueOXica4unjVJRQNRfU389MSL9zENLfchgg2XzRuTDvxIFwquMkGFndTu+SqZ7VHuGEJOuPhJg5C1XvW3NtdEx+UN3hbIisM8ptp5PtRFDPiJ77ALfwpY5Kvb0uqy0UziecW2+m6gUvfcMQIUr26m5bGDevRTTRCsOgZsBbERBKgrklavF+7rjLF3a1WY/mb4pe4XKpCgSu+sFhC0QcQ18PrVL/E1tufivORT4WgQ4QzccpGjFO4bAKZVNhQ=
app: coursehubapi
- provider: pages # deploy front-end to GitHub Pages
skip-cleanup: true
github-token: ${GH_TOKEN}
keep-history: true
target-branch: master
local-dir: coursehub-app/dist
repo: tash-had/coursehub-app
on:
repo: csc301-fall-2018/project-team-19
branch: master