Skip to content

Commit 6b2023c

Browse files
authored
Merge pull request #53 from JuliaGraphics/sd/gh-actions
use gh-actions
2 parents 9eaee82 + 3f351b0 commit 6b2023c

File tree

3 files changed

+47
-14
lines changed

3 files changed

+47
-14
lines changed

.github/workflows/ci.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: CI
2+
on:
3+
- push
4+
- pull_request
5+
jobs:
6+
test:
7+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
version:
13+
- '1'
14+
- 'nightly'
15+
os:
16+
- ubuntu-latest
17+
- macOS-latest
18+
- windows-latest
19+
arch:
20+
- x64
21+
steps:
22+
- uses: actions/checkout@v2
23+
- uses: julia-actions/setup-julia@v1
24+
with:
25+
version: ${{ matrix.version }}
26+
arch: ${{ matrix.arch }}
27+
- uses: actions/cache@v1
28+
env:
29+
cache-name: cache-artifacts
30+
with:
31+
path: ~/.julia/artifacts
32+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
33+
restore-keys: |
34+
${{ runner.os }}-test-${{ env.cache-name }}-
35+
${{ runner.os }}-test-
36+
${{ runner.os }}-
37+
- uses: julia-actions/julia-buildpkg@v1
38+
- uses: julia-actions/julia-runtest@v1
39+
- uses: julia-actions/julia-processcoverage@v1
40+
- uses: codecov/codecov-action@v1
41+
with:
42+
file: lcov.info

.travis.yml

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

test/runtests.jl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,11 @@ fontpaths = FreeTypeAbstraction.fontpaths()
176176
isempty(fontpaths) && println("OS doesn't have any font folder")
177177

178178
if Sys.islinux()
179-
fonts = ["dejavu sans",]
180-
else # OSX + windows have some more fonts installed per default
179+
fonts = ["dejavu sans"]
180+
# apple on gh-actions doesn't seem to have any fonts...
181+
elseif Sys.isapple()
182+
fonts = []
183+
else # windows have some more fonts installed per default
181184
fonts = [
182185
"Times New Roman",
183186
"Arial",

0 commit comments

Comments
 (0)