Skip to content

Commit e53df12

Browse files
committed
ci: remove travis, add GH Actions.
1 parent df24f4c commit e53df12

File tree

3 files changed

+20
-42
lines changed

3 files changed

+20
-42
lines changed

.github/workflows/ci.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Check PR
2+
on: pull_request
3+
4+
jobs:
5+
only:
6+
name: Check formatting and links
7+
runs-on: ubuntu-18.04
8+
container:
9+
image: ghcr.io/void-linux/void-linux:latest-full-x86_64-musl
10+
steps:
11+
- name: Prepare container
12+
run: |
13+
xbps-install -Syu || xbps-install -yu xbps
14+
xbps-install -yu
15+
xbps-install -y mdbook-linkcheck vmdfmt git
16+
- uses: actions/checkout@v1
17+
- run: ./res/ci/format.sh

.travis.yml

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

res/ci/format.sh

Lines changed: 3 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,12 @@
11
#!/bin/sh
22

3-
echo "Installing mdbook-linkcheck"
4-
5-
_version="v0.7.0"
6-
curl -sL -o ~/bin/linkcheck.tar.gz "https://github.com/Michael-F-Bryan/mdbook-linkcheck/releases/download/${_version}/mdbook-linkcheck-${_version}-x86_64-unknown-linux-gnu.tar.gz"
7-
8-
tar xvf ~/bin/linkcheck.tar.gz -C ~/bin
3+
# Fetch upstream
4+
git fetch git://github.com/void-linux/void-docs.git master
95

106
echo "Checking links"
11-
12-
RUST_LOG=linkcheck=debug ~/bin/mdbook-linkcheck -s
7+
RUST_LOG=linkcheck=debug mdbook-linkcheck -s
138
LINKCHECK=$?
149

15-
echo "Installing Go"
16-
17-
curl -sL -o ~/bin/gimme https://raw.githubusercontent.com/travis-ci/gimme/master/gimme
18-
chmod +x ~/bin/gimme
19-
20-
eval "$(gimme stable)"
21-
22-
GO111MODULE=auto go get github.com/bobertlo/vmd/cmd/vmdfmt
23-
24-
echo "Checking formatting"
25-
26-
PATH=$PATH:$(go env GOPATH)/bin/
27-
28-
if ! command -v git ; then
29-
echo "You need git to run the CI scripts"
30-
exit 1
31-
fi
32-
33-
if ! command -v vmdfmt ; then
34-
echo "You need vmdfmt to run the CI scripts"
35-
exit 1
36-
fi
37-
38-
# Fetch upstream
39-
git fetch git://github.com/void-linux/void-docs.git master
40-
4110
# Format them
4211
printf "Formatting tree"
4312
vmdfmt -l -w src/

0 commit comments

Comments
 (0)