File tree Expand file tree Collapse file tree 3 files changed +55
-5
lines changed Expand file tree Collapse file tree 3 files changed +55
-5
lines changed Original file line number Diff line number Diff line change
1
+ name : Rugged CI
2
+
3
+ on :
4
+ pull_request :
5
+ push :
6
+ branches :
7
+ - master
8
+ - maint/*
9
+
10
+ jobs :
11
+ build :
12
+ strategy :
13
+ fail-fast : false
14
+ matrix :
15
+ ruby : [ '2.3.7', '2.4.6', '2.5.5', '2.6.2' ]
16
+ os : [ ubuntu-18.04, macOS-10.14 ]
17
+
18
+ runs-on : ${{ matrix.os }}
19
+
20
+ name : Ruby ${{ matrix.ruby }} on ${{ matrix.os }}
21
+ steps :
22
+ - uses : actions/checkout@master
23
+ - name : update submodule
24
+ run : git submodule update --init
25
+ - name : Install Linux packages
26
+ if : runner.os == 'Linux'
27
+ run : |
28
+ sudo apt update
29
+ sudo apt install -y cmake libssh2-1-dev openssh-client openssh-server
30
+ - name : Install macOS packages
31
+ if : runner.os == 'macOS'
32
+ run : ./vendor/libgit2/azure-pipelines/setup-osx.sh
33
+ - name : Set up Ruby on Linux
34
+ if : runner.os == 'Linux'
35
+ uses : actions/setup-ruby@v1
36
+ with :
37
+ version : ${{ matrix.ruby }}
38
+ - name : Set up Ruby on macOS
39
+ if : runner.os == 'macOS'
40
+ run : |
41
+ brew install rbenv
42
+ rbenv install ${{ matrix.ruby }}
43
+ rbenv local ${{ matrix.ruby }}
44
+ - name : run build
45
+ run : |
46
+ if [ -x rbenv ]; then eval "$(rbenv init -)"; fi
47
+ ruby --version
48
+ gem install bundler
49
+ bundle install --path vendor
50
+ ./script/travisbuild
Original file line number Diff line number Diff line change 6
6
- osx
7
7
8
8
rvm :
9
- - 2.3.3
10
- - 2.4.0
11
- - 2.5.0
12
- - 2.6
13
9
- ruby-head
14
- - rbx-2
15
10
16
11
addons :
17
12
apt :
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
+ set -ex
4
+
3
5
# Create a test repo which we can use for the online tests
4
6
mkdir $HOME /_temp
5
7
git init --bare $HOME /_temp/test.git
6
8
git daemon --listen=localhost --export-all --enable=receive-pack --base-path=$HOME /_temp $HOME /_temp 2> /dev/null &
7
9
10
+ # On Actions we start with 777 which means sshd won't let us in
11
+ chmod 750 $HOME
12
+
8
13
ssh-keygen -t rsa -f ~ /.ssh/rugged_test_rsa -N " " -q
9
14
cat ~ /.ssh/rugged_test_rsa.pub >> ~/.ssh/authorized_keys
10
15
ssh-keyscan -t rsa localhost >> ~/.ssh/known_hosts
You can’t perform that action at this time.
0 commit comments