forked from mpiot/collection-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (38 loc) · 1.06 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
sudo: required
language: generic
services:
- docker
env:
global:
- DOCKER_COMPOSE="docker-compose -f docker-compose.yml -f docker-compose.ci.yml"
- EXEC="$DOCKER_COMPOSE exec -T app"
- APP_DOCKER_IMAGE_NAME="mapiot/collection-manager"
- APP_DEV_DOCKER_IMAGE_TAG="dev-`find docker/dev -type f -exec md5sum {} \; | sort -k 2 | md5sum | cut -d' ' -f1`"
cache:
directories:
- node_modules
- $HOME/.composer/cache/files
before_script:
- docker pull $APP_DOCKER_IMAGE_NAME:dev || true
- docker pull $APP_DOCKER_IMAGE_NAME:$APP_DEV_DOCKER_IMAGE_TAG || true
script:
- make build
- make up
- make assets-build
- make vendor
- make lint security-check
before_deploy:
- docker login -u $DOCKER_HUB_LOGIN -p $DOCKER_HUB_PASSWORD
deploy:
- provider: script
skip_cleanup: true
script: bash docker/scripts/deploy-dev
on:
repo: mpiot/collection-manager
branch: master
- provider: script
skip_cleanup: true
script: bash docker/scripts/deploy-prod
on:
repo: mpiot/collection-manager
tags: true