forked from Dima2021/SecurityShepherd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (41 loc) · 1016 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
36
37
38
39
40
41
jobs:
include:
- stage: build
language: java
dist: bionic
script:
- mvn clean install -Pdocker -DskipTests -B
- docker-compose build
services: docker
- stage: unit-test
services: mysql
language: java
dist: bionic
script: mvn test -B
- stage: integration-test
services:
- mysql
- docker
language: java
dist: bionic
script: mvn verify -DskipUTs=true -DmongoDocker -B
before_install:
- mvn -Pdocker validate
- sudo apt-get -y install libargon2-0
- stage: deploy
if: fork = false
name: Deploy to Dockerhub
language: generic
provider: script
skip_cleanup: true
services: docker
before_install:
- mvn install -Pdocker -DskipTests
- docker-compose build web
script: bash docker/scripts/deploy-dockerhub.sh $TRAVIS_BRANCH
stages:
- build
- unit-test
- integration-test
- name: deploy
if: branch IN (master, dev) AND type = push