This repository has been archived by the owner on Aug 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
45 lines (45 loc) · 1.75 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
sudo: required
dist: bionic
language: php
php:
- 7.2
- 7.3
- 7.4
env:
- NODE_RELEASE=12.x
install:
- composer self-update -q
- composer install
# We need to have a basic env file for the assets to compile and the tests to run
# we will make sure not to deploy it afterwards.
- if [ ! -f .env ]; then cp .env.example .env; fi
- sudo rm -rf ~/.nvm - curl -sL "https://deb.nodesource.com/setup_${NODE_RELEASE}"|
sudo -E bash -
- sudo apt-get install -y nodejs
- npm install
script:
- "./vendor/bin/phpunit"
- php artisan js-localization:export
- npm run production
cache:
directories:
- vendor
- node_modules
before_deploy:
- git config --local user.name "${GH_USER_NAME}"
- git config --local user.email "${GH_USER_EMAIL}"
# we don't want this file to be present in the zip file to allow
# for an easier update on the user side.
- rm .env
- zip -r "debrief-$TRAVIS_TAG.zip" . -x"*node_modules*" -x"*.git*"
deploy:
skip_cleanup: true
file_glob: true
provider: releases
api_key:
secure: l9GJREosvXEEI2Jf34FfpZ4IWe18+9GOfYYxA/nTNefengEzle35TCVO3fl2rIgmVIDL+q3mFfV1dDBWJRurcBbSxuwpuPN+yGnigRi2csoD3NYFVBbNPq+WgO6ULPq9qksc5IWl+QzAp1vAv5k6g+3huZkB9FX2mq+dK2Ov2R5+BV4TKSlbSpXKLCVLBjhK31NqevU+T5uY47NAVe4QLbz00Z0qlgZOxC7olCyIA3etRLI7YOazukDBBQbBAelxyQZHN/aNGnTJd10GHeWSsjJ3hPj4t3liTmP/ogcvWOSPwFKPgwtlcH6arpvRuNTvunngofKK0WiEzbT0pHQCFyf8yhheCmnCaW9PVGmFZ2DQDGQ73rSNqwzviLVVNSwJ3j82AiiXuZ8SQ43mI7sGWcLB1lFPApjY9Y/N7ICCHDvlOpO6zsHWP0E6hE+WIsL5TLkDbAhU+YjwTpRQ4LY9d1XB+AMKo746zpjBEULf9AWCxkqDS+QXM2nbVMF0L3eGS1xdtilSr2qn7tU288M71nlFw/CCwaJCVAWH/xP+bk24G+704CuymBztSrSkb42hFm8sSgfH/ZBbSn1bOQ7IZtACQsYPYKDJOI44up3j/OO74G3BV2iV1vIv+Yv8laubKpi/WTVEKAGuyJ34clEQL1vGDXIUlH6jbL2v6BNJQtA=
file: debrief-$TRAVIS_TAG.zip
on:
tags: true
repo: dandelionmood/debrief
branch: master