-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (32 loc) · 2.23 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
sudo: required
language: php
php:
- 7.0
services:
- mysql
- docker
- redis-server
install:
- sudo rm -Rf /var/lib/apt/lists/*
- sudo apt-get update -qq
- sudo apt-get install -y mysql-server-5.6 mysql-client-5.6 mysql-client-core-5.6 # hack because the mysql service above never starts :(
before_script:
- mv app/config/parameters.yml.travis app/config/parameters.yml
- composer install
script:
- make test
- SYMFONY_ENV=prod composer install --no-dev --optimize-autoloader
after_success:
- docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USER" -p="$DOCKER_PASS"
- export REPO=$DOCKER_USER/365raiponce
- export TAG=`if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo $TRAVIS_BRANCH ; fi`
- docker build -f Dockerfile -t $REPO:${TAG} .
- docker push $REPO
notifications:
slack:
rooms:
- secure: "0U2Ow6PKJm/Vi6InKbWS9WFBbzbDVaEW4K2GUB6lCHmiPlljWjSk3FpsuyhSxmNlsgDnnqlKckZBVUXWJ/eBYfT9nBubS9+u1D8aLQR0kw7LMtoX7uQX4TxRsiqIpbGBgAKtQTTxrJcXds7isKWutxlhSejw297jV2GyOqLKaWfBvwVU3kbD2S0F/ipmfnQE5fXdd9pg7zihK+jYiHdIxjQIql5beyEL0Oc9LW9SbTfMHOeVnzMaMbiD57kH3DitEy0IPuvSYWN3AHAQH1zx7aqimowsyJu+G4mhtynCcB9iQ86vR57nZDtFXOUW/S/1PYjpwQ/WVXaUZcJFn9QUgpogefzuquW8yMMKH+PbDe3H4t4hAF/L8Njni7rKDXW1IHGiWd2Ewt66KLpw6WEHX5jGl7lmbgE0OoULHhuVqDUmVZVtDmJEC/p4PGqbZ36k8dmKAnDMmGbEyEskMt9UJt0gaAeSucVXFR0jx+GHHzWt588F1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