Skip to content

Commit 52cde95

Browse files
authored
Merge pull request #111 from laravel/github-actions
Switch to Github Actions
2 parents c5471e0 + de10abc commit 52cde95

File tree

5 files changed

+47
-19
lines changed

5 files changed

+47
-19
lines changed

.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,5 @@
77
.gitattributes export-ignore
88
.gitignore export-ignore
99
.styleci.yml export-ignore
10-
.travis.yml export-ignore
1110
CHANGELOG.md export-ignore
1211
phpunit.xml.dist export-ignore

.github/workflows/tests.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: tests
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
- cron: '0 0 * * *'
8+
9+
jobs:
10+
tests:
11+
12+
runs-on: ubuntu-latest
13+
strategy:
14+
fail-fast: true
15+
matrix:
16+
php: [7.2, 7.3, 7.4]
17+
18+
name: PHP ${{ matrix.php }}
19+
20+
steps:
21+
- name: Checkout code
22+
uses: actions/checkout@v2
23+
24+
- name: Cache dependencies
25+
uses: actions/cache@v1
26+
with:
27+
path: ~/.composer/cache/files
28+
key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
29+
30+
- name: Setup PHP
31+
uses: shivammathur/setup-php@v2
32+
with:
33+
php-version: ${{ matrix.php }}
34+
extensions: dom, curl, libxml, mbstring, zip
35+
coverage: none
36+
37+
- name: Install dependencies
38+
run: composer install --no-interaction --prefer-dist
39+
40+
- name: Execute tests
41+
run: vendor/bin/phpunit --verbose

.travis.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Laravel Installer
22

3-
<a href="https://travis-ci.org/laravel/installer"><img src="https://travis-ci.org/laravel/installer.svg" alt="Build Status"></a>
3+
<a href="https://github.com/laravel/installer/actions"><img src="https://github.com/laravel/installer/workflows/tests/badge.svg" alt="Build Status"></a>
44
<a href="https://packagist.org/packages/laravel/installer"><img src="https://poser.pugx.org/laravel/installer/d/total.svg" alt="Total Downloads"></a>
55
<a href="https://packagist.org/packages/laravel/installer"><img src="https://poser.pugx.org/laravel/installer/v/stable.svg" alt="Latest Stable Version"></a>
66
<a href="https://packagist.org/packages/laravel/installer"><img src="https://poser.pugx.org/laravel/installer/license.svg" alt="License"></a>

src/NewCommand.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,11 @@ protected function execute(InputInterface $input, OutputInterface $output)
8484
$process = Process::fromShellCommandline(implode(' && ', $commands), $directory, null, null, null);
8585

8686
if ('\\' !== DIRECTORY_SEPARATOR && file_exists('/dev/tty') && is_readable('/dev/tty')) {
87-
$process->setTty(true);
87+
try {
88+
$process->setTty(true);
89+
} catch (RuntimeException $e) {
90+
$output->writeln('Warning: '.$e->getMessage());
91+
}
8892
}
8993

9094
$process->run(function ($type, $line) use ($output) {

0 commit comments

Comments
 (0)