-
Notifications
You must be signed in to change notification settings - Fork 38
41 lines (35 loc) · 1.07 KB
/
continuous-integration.yml
File metadata and controls
41 lines (35 loc) · 1.07 KB
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
name: "Continuous Integration"
on:
pull_request:
branches:
- "main"
push:
branches:
- "main"
env:
fail-fast: true
jobs:
shunit:
name: "SHUnit"
runs-on: "ubuntu-20.04"
steps:
- name: "Checkout"
uses: "actions/checkout@v2"
- name: "Configure"
run: |
git config --global init.templatedir "$(pwd)/template"
git config --global user.email "travis@mailinator.com"
git config --global user.name "Travis Bot"
mkdir -p ~/src/shunit2
git clone https://github.com/kward/shunit2.git ~/src/shunit2
svn checkout https://svn.code.sf.net/p/ctags/code/trunk ~/src/ctags
cd ~/src/ctags
wget http://sourceforge.net/p/ctags/patches/_discuss/thread/3a930d9f/1405/attachment/0000-PHP-parser-rewrite.patch
patch -p1 < 0000-PHP-parser-rewrite.patch
autoconf
autoheader
./configure
make
chmod +x ctags
- name: "Run tests"
run: "export PATH=~/src/shunit2:~/src/ctags:$PATH && tests/all.sh"