-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
50 lines (46 loc) · 1.29 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
46
47
48
49
50
language: groovy
sudo: required
dist: trusty
addons:
chrome: stable
cache:
directories:
- $HOME/.m2
- $HOME/.grails
- $HOME/.gradle
- $HOME/.npm
jobs:
include:
- &backend-prepare
stage: Compilation
jdk: oraclejdk8
before_script:
- cd backend
- chmod +x ./grailsw
- chmod +x ./gradlew
script: ./grailsw compile
- &frontend-prepare
stage: Compilation
node_js:
- 6
before_script:
- "sudo chown root /opt/google/chrome/chrome-sandbox"
- "sudo chmod 4755 /opt/google/chrome/chrome-sandbox"
- cd frontend
- npm install
script: npm run build --prod
- <<: *backend-prepare
stage: Static code analysis
script: ./gradlew codenarcMain
- <<: *backend-prepare
stage: Static code analysis
script: ./gradlew codenarcTest
- <<: *frontend-prepare
stage: Static code analysis
script: npm run lint
- <<: *backend-prepare
stage: Unit tests
script: ./gradlew test --stacktrace
- <<: *frontend-prepare
stage: Unit tests
script: npm run ci