-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
59 lines (52 loc) · 1.44 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
language: php
php:
- 7.3
- 7.4
services:
- mysql
env:
- TRAVIS_NODE_VERSION="10"
addons:
apt:
packages:
- pyflakes
- iverilog
- arachne-pnr
- arachne-pnr-chipdb
- fpga-icestorm
- fpga-icestorm-chipdb
before_script:
- cp .env.travis .env
- mysql -e 'create database badgeware_test;'
- composer self-update
- composer install --dev --no-interaction
- curl -s -o $HOME/.nvm/nvm.sh https://raw.githubusercontent.com/creationix/nvm/v0.33.2/nvm.sh
- source $HOME/.nvm/nvm.sh
- nvm install stable
- yarn
- yarn production
- yarn global add laravel-echo-server
- php artisan key:generate
- php artisan config:clear
- curl -s -o zlib-1.2.11.tar.gz http://zlib.net/zlib-1.2.11.tar.gz
- tar xvf zlib-1.2.11.tar.gz
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
- cd zlib-1.2.11
- ./configure
- echo -e "#define MAX_WBITS 13\n$(cat zconf.h)" > zconf.h
- make
- export PATH=$PATH:`pwd`
- cd ..
- php artisan route:clear
- php artisan config:clear
- vendor/bin/phpstan analyse
- vendor/bin/phpunit
- yarn lint
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
- php vendor/bin/codacycoverage clover build/logs/clover.xml
- cp build/logs/clover.xml coverage.xml
- bash <(curl -s https://codecov.io/bash)