forked from qdequippe/friendsofphp-org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
52 lines (41 loc) · 1.18 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
42
43
44
45
46
47
48
49
50
51
52
language: php
matrix:
include:
- php: 7.2
- php: 7.3
env: STATIC_ANAL=true
# - php: 7.3
# env: CRAWL_FLAGS="--usa"
# - php: 7.3
# env: CRAWL_FLAGS="--non-usa"
before_install:
# configure timezone: https://stackoverflow.com/a/27052708/1348344
- date
- export TZ=Europe/Prague
- date
install:
- composer update
script:
- vendor/bin/phpunit
# run from time to time
- if [[ $CRAWL_FLAGS != "" ]]; then bin/console crawl $CRAWL_FLAGS; fi
# code analysis
- if [[ $STATIC_ANAL == true ]]; then composer check-cs; fi
- if [[ $STATIC_ANAL == true ]]; then composer phpstan; fi
# make sure there are no duplicates
- bin/console validate-groups
# import data
- bin/console import -vvv
# generate website to "/output" directory, it will be deployed later in "deploy" + imports groups and meetups
- vendor/bin/statie generate source -vvv
# see docs: https://www.statie.org/docs/github-pages/
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
on:
branch: master
local_dir: output
notifications:
email:
on_success: never