File tree Expand file tree Collapse file tree 6 files changed +9
-39
lines changed Expand file tree Collapse file tree 6 files changed +9
-39
lines changed Original file line number Diff line number Diff line change 25
25
run : ./dev/before
26
26
- name : Build
27
27
env :
28
+ OPENGROK_PULL_REQUEST : ${{ github.head_ref }}
28
29
OPENGROK_REPO_SLUG : ${{ github.repository }}
29
30
OPENGROK_REF : ${{ github.ref }}
30
31
run : ./dev/main
50
51
run : ./dev/before
51
52
- name : Build
52
53
env :
54
+ OPENGROK_PULL_REQUEST : ${{ github.head_ref }}
53
55
OPENGROK_REPO_SLUG : ${{ github.repository }}
54
56
OPENGROK_REF : ${{ github.ref }}
55
57
run : ./dev/main
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- # Windows on Travis does not obfuscate environment variables.
4
- if [[ $TRAVIS_OS_NAME != " windows" ]]; then
5
- echo " Environment variables:"
6
- env | sort
7
- fi
8
-
9
3
echo " SCM versions:"
10
4
if command -v bk; then bk --version; fi
11
5
if command -v hg; then hg --version; fi
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- if [[ " $TRAVIS_OS_NAME " == " linux " || " $ RUNNER_OS" == " Linux" ]]; then
3
+ if [[ " $RUNNER_OS " == " Linux" ]]; then
4
4
sudo apt-get update -qq
5
5
if [[ $? != 0 ]]; then
6
6
echo " cannot update"
@@ -36,16 +36,13 @@ if [[ "$TRAVIS_OS_NAME" == "linux" || "$RUNNER_OS" == "Linux" ]]; then
36
36
exit 1
37
37
fi
38
38
39
- # We only need to preserve TRAVIS_OS_NAME but older sudo do not
40
- # support argument to --preserve-env.
41
- sudo --preserve-env ./dev/install-universal_ctags.sh
39
+ sudo ./dev/install-universal_ctags.sh
42
40
if [[ $? != 0 ]]; then
43
41
echo " cannot install Universal ctags"
44
42
exit 1
45
43
fi
46
44
47
- elif [[ " $TRAVIS_OS_NAME " == " osx" || " $RUNNER_OS " == " macOS" ]]; then
48
- # brew update
45
+ elif [[ " $RUNNER_OS " == " macOS" ]]; then
49
46
export HOMEBREW_NO_AUTO_UPDATE=1
50
47
51
48
brew install cvs libgit2 jq autoconf automake
@@ -63,9 +60,7 @@ elif [[ "$TRAVIS_OS_NAME" == "osx" || "$RUNNER_OS" == "macOS" ]]; then
63
60
exit 1
64
61
fi
65
62
66
- # We only need to preserve TRAVIS_OS_NAME but older sudo do not
67
- # support argument to --preserve-env.
68
- sudo --preserve-env ./dev/install-universal_ctags.sh
63
+ sudo ./dev/install-universal_ctags.sh
69
64
if [[ $? != 0 ]]; then
70
65
echo " cannot install Universal ctags"
71
66
exit 1
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ echo -e "Publishing javadoc to $BRANCH...\n"
19
19
20
20
./mvnw -DskipTests=true site
21
21
22
- git config --global user.email
" [email protected] "
23
- git config --global user.name " travis-ci "
22
+ git config --global user.email
" [email protected] "
23
+ git config --global user.name " Foo Bar "
24
24
git clone --quiet --branch=$BRANCH \
25
25
https://${GH_PAGES_TOKEN} @github.com/oracle/opengrok " $BRANCH "
26
26
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ if [[ "x$OPENGROK_REPO_SLUG" == "xoracle/opengrok" && "x$OPENGROK_BRANCH" == "xm
18
18
#
19
19
# Sonar seems to only work on master branch commits.
20
20
#
21
- if [ " ${TRAVIS_PULL_REQUEST } " = " false" ]; then
21
+ if [ " ${OPENGROK_PULL_REQUEST } " = " false" ]; then
22
22
echo " Enabling Sonar"
23
23
extra_args=" $extra_args sonar:sonar"
24
24
fi
You can’t perform that action at this time.
0 commit comments