forked from edusoho/edusoho
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
38 lines (30 loc) · 883 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
branches:
- master
- feature/x8
language: php
php:
- '5.3'
- '5.4'
- '5.5'
- '5.6'
- '7.0'
env:
- SYMFONY_VERSION="~2.8.12" DB=mysql
git:
submodules: false
before_install:
- echo -e "Host gitlab.howzhi.net:4422\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- git submodule update --init --recursive
before_script:
- mysql -e 'CREATE DATABASE `edusoho-test` DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci'
- mysql -u root -e "CREATE USER 'tester'@'localhost' IDENTIFIED BY 'tester'"
- mysql -u root -e "GRANT ALL PRIVILEGES ON *.* TO 'tester'@'localhost'"
- cp app/config/parameters_test.yml.dist app/config/parameters_test.yml
- cp app/config/parameters.yml.dist app/config/parameters.yml
- mkdir web/files
- touch app/config/routing_plugins.yml
script:
- phpunit -c app/
cache:
directories:
- $HOME/.composer/cache