This repository has been archived by the owner on Jan 3, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
60 lines (53 loc) · 1.76 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
53
54
55
56
57
58
59
60
language: php
sudo: false
php:
- 7.1
stages:
- name: test
if: NOT commit_message =~ \[skip-tests\]
- name: deploy
if: branch = master OR branch = production OR branch =~ \b-DEPLOY\b
cache:
directories:
- $HOME/.composer/cache/files
- $HOME/dart-sdk
- $HOME/.pub-cache
# install programming languages
before_install:
- ./ci/install_dart_sdk.sh
# install packages
install:
- cp app/config/parameters.yml.travis app/config/parameters.yml.dist
- composer install --no-interaction
jobs:
include:
# run the test steps
- stage: test
script: ./ci/run_backend_test.sh Suite_P0
name: "Run part 1 of PHPUnit suite"
- script: ./ci/run_backend_test.sh Suite_P1
name: "Run part 2 of PHPUnit suite"
- script: ./ci/run_backend_test.sh Suite_P2
name: "Run part 3 of PHPUnit suite"
- script: ./ci/run_backend_test.sh Suite_P3
name: "Run part 4 of PHPUnit suite"
- script: ./ci/run_backend_test.sh Suite_P4
name: "Run part 5 of PHPUnit suite"
- script: ./ci/build_dart_frontend.sh
name: "Build frontend (to check if any build errors occur)"
if: branch = master OR branch = production OR branch =~ \b-DEPLOY\b
- script: ./ci/check_format.sh
name: "Check formatting of front- and backend"
- stage: deploy
script: skip
env:
- DEPLOY_SYSTEM: $(if [ "$TRAVIS_BRANCH" == "production" ]; then echo "prod"; else echo "test"; fi)
deploy:
- provider: script
script: ./ci/build_dart_frontend.sh && ./ci/build_php_frontend.sh && ./ci/deploy.sh $DEPLOY_SYSTEM
skip_cleanup: true
on:
all_branches: true
env:
global:
- secure: "ELFgvd3Wm426wLb0jrQvHIQ9yqZsqvk7quQvMIWR7QcAf9IGsUwxlQHIT99Ol+czx+4oP4OMw+39obS9zBf4RmzOi1seqHrkix1bRjKtEgnYDZUum87V5AXRd1/4wv8o2+7TUli3fIF2bEK6CGhd7bs/Lt6TRD1GL6zVBnd6Wh4=" #target