forked from GoteoFoundation/goteo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (32 loc) · 1.53 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
language: php
php:
- '7.0'
- '7.1'
services:
- mysql
env:
global:
- REPO=goteo
- GOTEO_CONFIG_FILE="$TRAVIS_BUILD_DIR/config/travis-settings.yml"
before_script:
- mysql -e 'CREATE DATABASE goteo;'
- composer install
- ./bin/console migrate install
- gem install sass -v 3.4.23
- gem install compass
- npm install -g grunt-cli
- npm install
- grunt build:dist
script:
- ./run-tests.sh -t config/travis-settings.yml tests/
before_deploy:
- cd ..
- tar --exclude=${REPO}/.tmp --exclude=${REPO}/.git --exclude=${REPO}/.sass-cache -zcf ${TRAVIS_BUILD_DIR}${REPO}-${TRAVIS_TAG}-${TRAVIS_BUILD_NUMBER}.tar.gz ${REPO}
deploy:
provider: releases
api_key:
secure: YW0hze6yf4M41VvtTEnH2ocxWc3tcp+iRAQqsAPM5btgDogITOs4Cwu4zj95hSuXzrOsdaMcypTupca1J714a2Ltd7wfk/xF8+NkQQinBY5fDoaguAdEqJXINN8Bv2QYiS6XlxWSfw6MRyUxaA9qeLLcwTGH/Gqa8VTNFeZlCeFA84X3IQcHRmS+ANewKIjSQECMaPPHg1BmQh7IiuHFJo27p2PFCObbN1N+0Kvx+fpo9DvB9j194+D8FTLbF4TriikYm1RDjUIl1QHDWrSBylQC8dWetfSaeauKrH7t3CN97ugrnyNYNFHFewMRezbxSY2hVBaYwtc2kWd+Q27WoZalNnP8zi37huEVkpMpDb3lm07pxgrSWw+ZgdhWKaoefaoF1UVMzE7iT0B4VQWolWzuEJXYh2ujF6zhPHQsQmGAKiafpvHlWy9R9HQth+YCDKG8Ee7Ur6wcijLPdF9WBPts1Afxj9kif+fF+Kp90XGLWxouSkWTrVXdMeg/eIc8UXbkb76fi3oWF3z7rVn7mWlCqAPLZPWzItNMlgVwc/E0VVati18qoC+V3PqUMigmQvk9FPa2RzsbNjdnYu531lb/eyYBJgAFjveIvnF9ElOK0l32vx+IgyqY2x8M1AW1/NqC7RB3Me5M01dfvWi5mzc9jovfHg3Gb9mI1NtNUqA=
file: ${TRAVIS_BUILD_DIR}${REPO}-${TRAVIS_TAG}-${TRAVIS_BUILD_NUMBER}.tar.gz
skip_cleanup: true
on:
tags: true