forked from teracyhq/dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (33 loc) · 1.22 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
group: deprecated-2017Q2 # see: https://blog.travis-ci.com/2017-06-21-trusty-updates-2017-Q2-launch
services:
- docker
env:
matrix:
- BUILD_TYPE=dev CI_REGISTRY_IMAGE=$DEV_DOCKER_IMAGE
- BUILD_TYPE=docs CI_REGISTRY_IMAGE=$DOCS_DOCKER_IMAGE
global:
- DOCKER_FILE=Dockerfile-dev
- IMAGE_TAG_PREFIX=dev_
- CI_BUILD_TIME=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
before_install:
- git submodule update --init --recursive
install: true
before_script:
- chmod ugo+x ./.travis/build.sh
- chmod ugo+x ./.travis/deploy.sh
- git config --global user.name "Teracy Bot"
- git config --global user.email "[email protected]"
- export REPO_URL="https://[email protected]/$GH_REPO.git"
- . ./.travis/setup.sh
- echo $DEPLOY_HTML_DIR
- export TAG=`if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo $TRAVIS_BRANCH | sed -e 's/[\/]/-/g' | sed -e 's/[\#]//g'; fi`
- export CONTAINER_IMAGE=$CI_REGISTRY_IMAGE:$IMAGE_TAG_PREFIX$TAG
script:
- ./.travis/build.sh
after_success:
- ./.travis/deploy.sh
notifications:
slack:
rooms:
secure: 7rOCiLQZBvSATaFhw/6AgLRo/dGtoume8t0Bmaao5Tp7RKe99qLdN672OzY8aQzxWvP6pexcTvgcVaIIIEk808F7l6tTsz4HRp1TNwxeb0q6kiW0ZgTGS7KvRe17sSpcLUv26T1/flaLbmOaRoqNm/e77onenuuEgM5LTIkc11s=
on_success: change