-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy path.travis.yml
41 lines (41 loc) · 1.88 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
41
language: php
addons:
firefox: latest
php:
# PHP versions are tied to the version of phpunit we use (see below).
- 7.4
services:
- mysql
before_install:
- sudo apt-get update
- sudo apt-get install -y php-zip aspell aspell-en
- mysql -e "CREATE DATABASE dp_db CHARACTER SET utf8mb4;"
- mysql -e "CREATE USER dp_user@localhost IDENTIFIED BY 'dp_password';"
- mysql -e "GRANT ALL ON dp_db.* TO dp_user@localhost;"
- ./SETUP/configure ./SETUP/tests/travis-ci_configuration.sh .
install:
# install the database schema
- cd SETUP
- php install_db.php
- cd ..
before_script:
# Specify a version that works with php 7.2, 7.3, 7.4 (see
# https://phpunit.de/supported-versions.html)
- curl -sSfL -o ~/.phpenv/versions/$(phpenv version-name)/bin/phpunit https://phar.phpunit.de/phpunit-8.phar
- phpunit --version
# We need npm for eslint
- nvm install 12 --lts
- npm install
script:
- cd SETUP
# do minimal security checks
- make security_checks
# linting is SUCH a low bar, but it is a bar!
- make lint
- npm run lint
# now lets get crazy and run our meager unit tests...
- make tests
- npm run test
notifications:
slack:
secure: n6nXPAG1FEak12O8DUxKbIo1NMWx+mssaiXgExTF/tpNA+C+p/puu0HZ8jUIodQ9iOWuC857oNCmvAliCw8nBl52DInnCKVjy2t0q5pAGJCEkNRktpp67GqhgkZ/dkmKYrqs1KOMAUS6zFaMsyte8nVOjPYsTCj1ZN+XjfphtsiC+BSj7SIuaVAfuTTVcs+TawI3Pwh513mOmfW1vko+JGwMgoK9dGtpBea2E+zCAQu00gGNEtKB6hfJ0ZJCqWBwgzjX869iGVPjpuwJqIDWzzL5nWuAsyiyB9zYIC4dk7ILqnSxt2ixgmmDkS5uF7unLVjgc5QDMRl2VQ6rwHYDPc7UEYDJSoD8/ThIvkWp/tW07QsF4SBnX/aLUUr/lSXH45em4QWZbYOf5zUzFUK13sdugiEouSmb8Wvj60I2LhF4hBo7W7HzEJKdcY2UlvrhESPhRzWJo2GJQf2ifvUEb0pGPdQoHyekqpHfR85Pb/XrBHnXOCIGxoZ2f/7zzMYxAQZgvth2jsEPws/l0a2gm9U0iM1G1BRy+bDxJKzre4D183sZpIWKpQ05iwkJGTiw2UVvO0fvpUKb5aaoxHACpsuvSW0R4QQyJTKTInnF9LrUO45Tm0ztBBN3vHfFFF6roRIKWX/b0zMH24eMD4kZZHHXsYPzs+tLpe8WJPRFTto=