-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.travis.yml
More file actions
42 lines (37 loc) · 713 Bytes
/
.travis.yml
File metadata and controls
42 lines (37 loc) · 713 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
39
40
41
42
sudo: required
dist: trusty
language: java
jdk:
- oraclejdk8
node_js:
- "7"
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
- google-chrome-beta
before_install:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- nvm install 7
- cd src/main/angular
- npm install
- npm run build -- --aot --prod
- mkdir ../java/src/main/webapp/
- cp -r dist/* ../java/src/main/webapp/
- cd ../java
- chmod +x mvnw
before_script:
- cd ../angular
- npm run test -- --single-run
- cd ../java
deploy:
provider: heroku
buildpack: java
skip_cleanup: true
app: m-petstore
api_key: $HEROKU_KEY
on:
branch: master