-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
36 lines (32 loc) · 1.77 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
language: php
php:
- 5.5.9
# Add encrypted env variables, used for setting up the test environment
env:
global:
# Encrypted env variable $GIT_LIBMGR_APP_NAME, wil be used to set up the Github client app name for tests
- secure: "iWcSWe5RjhKWT2IVFCHXS4u1vlZerYxzBOf87Am8a1aOm0dGszrK3+kM2uBUCS6IRsnUSno2JOA+IY7hUtYekkENdiUzWzo+AN7kBVrT3SMpEQxB0IXJ0QlS9eiC9NF2fDVIt8pgYVI5eZn/zoCt2XdKZbmrRI6q5o8uGlXAzUw="
# Encrypted env variable $GIT_LIBMGR_CLIENT_ID, wil be used to set up the Github client id for tests
- secure: "MOvnVGLVh64+piLC5QiOvE3PH8NJSji5VkXM8GRSKdBbW0r2RiUCOmP8O/xhJv7l9xr1TTsR4YRbFXZws0Hlocd5RqwVrH6R3Zz7jubPz71/yreth224M59KFvnjN87bW743Fv7OLMWjRwEIFcj4MC1Yhuisew8X3vBjoPnh1co="
# Encrypted env variable $GIT_LIBMGR_CLIENT_SECRET, wil be used to set up the Github client secret for tests
- secure: "DxJuGHfobvQNpNxbAiXbbzjo8KuSBk56GXHpXJzoBaVgHE9bwqXDoAblf4JlGq0HHxcrdiyBV/axFk0Xg7m9gui3t9+YUV9tT21Hl+dSfdjT1ygrlP6vd+G6l0kAbOAuYypkAg3cIDNvDsN9tsVJvQ195OkIWCGGvKd6fA6aPio="
before_script:
# Change the default user-password pair for mysql (pre-installed on Travis CI)
- mysql -u root -e "UPDATE user SET Password=PASSWORD('hello') WHERE User='root';FLUSH PRIVILEGES;" mysql
- sudo service mysql restart
# Install our app
- scripts/travis_install.sh
- cd /opt/codebender/eratosthenes/Symfony
- sudo chmod -R 777 app/cache app/logs
# Set error reporting to "ALL". Thus, we'll be notified of warnings too
- echo 'error_reporting = E_ALL' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
script:
# Run the tests
- sudo mkdir -p build/logs
- sudo chmod -R 777 build/logs
- ../scripts/configure_system.sh
- ../scripts/run_tests.sh
after_script:
# Generate coverage
- php composer.phar install --dev
- php bin/coveralls -v