Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
58f1ab3
Merge pull request #1 from apache/master
EnableAsync Sep 10, 2020
144d917
feat: move etcd cluster in docker for CI
EnableAsync Sep 10, 2020
673f18d
change: no further etcd will be installed on ubuntu via apt
EnableAsync Sep 10, 2020
6f1cbe7
bugfix: no further etcd will be installed on ubuntu via apt
EnableAsync Sep 10, 2020
fdcd00a
bugfix: no further etcd will be installed on ubuntu via apt
EnableAsync Sep 10, 2020
bcc5822
bugfix: install etcd-client in place of etcd
EnableAsync Sep 10, 2020
e42f44e
change: listen all etcd ports
EnableAsync Sep 10, 2020
0fb3592
Merge branch 'master' of https://github.com/EnableAsync/apisix
EnableAsync Sep 10, 2020
98e67bc
change: change etcd v3.4 to v3.2
EnableAsync Sep 10, 2020
2a03206
change: use github action services
EnableAsync Sep 16, 2020
0b27a5f
bugfix: add quotations
EnableAsync Sep 16, 2020
c629e04
bufix: remove `--listen-client-urls`
EnableAsync Sep 16, 2020
7d15df3
Revert "change: use github action services"
EnableAsync Sep 16, 2020
fa81aed
revert: revert build.yml
EnableAsync Sep 16, 2020
6301e9e
Merge branch 'master' into master
Yiyiyimu Oct 11, 2020
f80553d
change: use github action services
EnableAsync Oct 24, 2020
1922feb
change: use github action services
EnableAsync Oct 24, 2020
223903e
change: use github action services
EnableAsync Oct 24, 2020
930124c
bugfix: fix whitespace
EnableAsync Oct 24, 2020
4bd7868
change: separate macOS from linux
EnableAsync Oct 24, 2020
8f0eb97
update: macOS.yml
EnableAsync Oct 24, 2020
01069f1
change: change action yaml name
EnableAsync Oct 24, 2020
1ad221b
Merge branch 'master' of https://github.com/EnableAsync/apisix
EnableAsync Oct 24, 2020
a87bf2f
change: allow etcd none authentication
EnableAsync Oct 24, 2020
d2f4778
change: use etcdctl v3.4.0
EnableAsync Oct 24, 2020
82a8c09
bugfix: add execute permission
EnableAsync Oct 24, 2020
1c1de3b
bugfix: add EOL
EnableAsync Oct 24, 2020
e512fa5
fix: code format
EnableAsync Oct 26, 2020
6f70f27
Update linux_tengine_runner.sh
EnableAsync Oct 26, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 13 additions & 30 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: CI Linux

on:
push:
Expand All @@ -13,52 +13,35 @@ jobs:
matrix:
platform: [ubuntu-18.04]
os_name: [linux_openresty, linux_tengine, linux_apisix_master_luarocks, linux_apisix_current_luarocks, linux_openresty_mtls]
include:
- platform: macos-latest
os_name: osx_openresty

runs-on: ${{ matrix.platform }}
env:
SERVER_NAME: ${{ matrix.os_name }}


services:
etcd:
image: bitnami/etcd:3.4.0
ports:
- 2379:2379
- 2380:2380
env:
ALLOW_NONE_AUTHENTICATION: yes
ETCD_ADVERTISE_CLIENT_URLS: http://0.0.0.0:2379

Comment thread
EnableAsync marked this conversation as resolved.

steps:
- name: Check out code
uses: actions/checkout@v2

#----------------------------------------------------------------------------
- name: Linux Get dependencies
if: matrix.platform == 'ubuntu-18.04'
run: sudo apt install -y cpanminus build-essential libncurses5-dev libreadline-dev libssl-dev perl etcd
run: sudo apt install -y cpanminus build-essential libncurses5-dev libreadline-dev libssl-dev perl

- name: Linux Before install
if: matrix.platform == 'ubuntu-18.04'
run: sudo ./.travis/${{ matrix.os_name }}_runner.sh before_install

- name: Linux Install
if: matrix.platform == 'ubuntu-18.04'
run: sudo ./.travis/${{ matrix.os_name }}_runner.sh do_install

- name: Linux Script
if: matrix.platform == 'ubuntu-18.04'
run: sudo ./.travis/${{ matrix.os_name }}_runner.sh script

# - name: Linux After success
# if: matrix.platform == 'ubuntu-18.04'
# run: sudo ./.travis/${{ matrix.os_name }}_runner.sh after_success
#----------------------------------------------------------------------------
- name: MacOS Before install
if: matrix.platform == 'macos-latest'
run: ./.travis/${{ matrix.os_name }}_runner.sh before_install

- name: MacOS Install
if: matrix.platform == 'macos-latest'
run: ./.travis/${{ matrix.os_name }}_runner.sh do_install

- name: MacOS Script
if: matrix.platform == 'macos-latest'
run: ./.travis/${{ matrix.os_name }}_runner.sh script

# - name: MacOS After success
# if: matrix.platform == 'macos-latest'
# run: ./.travis/${{ matrix.os_name }}_runner.sh after_success
36 changes: 36 additions & 0 deletions .github/workflows/macOS.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI macOS

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
strategy:
fail-fast: false
matrix:
platform: [macos-latest]
os_name: [osx_openresty]

runs-on: ${{ matrix.platform }}
env:
SERVER_NAME: ${{ matrix.os_name }}


steps:
- name: Check out code
uses: actions/checkout@v2

- name: MacOS Before install
if: matrix.platform == 'macos-latest'
run: ./.travis/${{ matrix.os_name }}_runner.sh before_install

- name: MacOS Install
if: matrix.platform == 'macos-latest'
run: ./.travis/${{ matrix.os_name }}_runner.sh do_install

- name: MacOS Script
if: matrix.platform == 'macos-latest'
run: ./.travis/${{ matrix.os_name }}_runner.sh script
8 changes: 1 addition & 7 deletions .travis/linux_apisix_current_luarocks_runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,13 @@ do_install() {
cd ..
rm -rf luarocks-2.4.4

./utils/install-etcd.sh
./utils/linux-install-etcd-client.sh
}

script() {
export_or_prefix
export PATH=$OPENRESTY_PREFIX/nginx/sbin:$OPENRESTY_PREFIX/luajit/bin:$OPENRESTY_PREFIX/bin:$PATH
openresty -V
sudo service etcd start
sudo service etcd stop
mkdir -p ~/etcd-data
etcd --listen-client-urls 'http://0.0.0.0:2379' --advertise-client-urls='http://0.0.0.0:2379' --data-dir ~/etcd-data > /dev/null 2>&1 &
etcdctl version
sleep 5

sudo rm -rf /usr/local/apisix

Expand Down
7 changes: 1 addition & 6 deletions .travis/linux_apisix_master_luarocks_runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,13 @@ do_install() {
cd ..
rm -rf luarocks-2.4.4

./utils/install-etcd.sh
./utils/linux-install-etcd-client.sh
}

script() {
export_or_prefix
export PATH=$OPENRESTY_PREFIX/nginx/sbin:$OPENRESTY_PREFIX/luajit/bin:$OPENRESTY_PREFIX/bin:$PATH
openresty -V
sudo service etcd stop
mkdir -p ~/etcd-data
etcd --listen-client-urls 'http://0.0.0.0:2379' --advertise-client-urls='http://0.0.0.0:2379' --data-dir ~/etcd-data > /dev/null 2>&1 &
etcd --version
sleep 5

sudo rm -rf /usr/local/apisix

Expand Down
7 changes: 1 addition & 6 deletions .travis/linux_openresty_mtls_runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ do_install() {

sudo luarocks install luacheck > build.log 2>&1 || (cat build.log && exit 1)

./utils/install-etcd.sh
./utils/linux-install-etcd-client.sh

if [ ! -f "build-cache/apisix-master-0.rockspec" ]; then
create_lua_deps
Expand Down Expand Up @@ -91,11 +91,6 @@ script() {
export_or_prefix
export PATH=$OPENRESTY_PREFIX/nginx/sbin:$OPENRESTY_PREFIX/luajit/bin:$OPENRESTY_PREFIX/bin:$PATH
openresty -V
sudo service etcd stop
mkdir -p ~/etcd-data
etcd --listen-client-urls 'http://0.0.0.0:2379' --advertise-client-urls='http://0.0.0.0:2379' --data-dir ~/etcd-data > /dev/null 2>&1 &
etcdctl version
sleep 5


# enable mTLS
Expand Down
8 changes: 2 additions & 6 deletions .travis/linux_openresty_runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ do_install() {

sudo luarocks install luacheck > build.log 2>&1 || (cat build.log && exit 1)

./utils/install-etcd.sh
./utils/linux-install-etcd-client.sh

if [ ! -f "build-cache/apisix-master-0.rockspec" ]; then
create_lua_deps
Expand Down Expand Up @@ -127,11 +127,7 @@ script() {
export_or_prefix
export PATH=$OPENRESTY_PREFIX/nginx/sbin:$OPENRESTY_PREFIX/luajit/bin:$OPENRESTY_PREFIX/bin:$PATH
openresty -V
sudo service etcd stop
mkdir -p ~/etcd-data
etcd --listen-client-urls 'http://0.0.0.0:2379' --advertise-client-urls='http://0.0.0.0:2379' --data-dir ~/etcd-data > /dev/null 2>&1 &
etcdctl version
sleep 5


./build-cache/grpc_server_example &

Expand Down
8 changes: 2 additions & 6 deletions .travis/linux_tengine_runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ do_install() {

sudo luarocks install luacheck > build.log 2>&1 || (cat build.log && exit 1)

./utils/install-etcd.sh
./utils/linux-install-etcd-client.sh

git clone https://github.com/iresty/test-nginx.git test-nginx
make utils
Expand All @@ -280,11 +280,7 @@ script() {
export_or_prefix
export PATH=$OPENRESTY_PREFIX/nginx/sbin:$OPENRESTY_PREFIX/luajit/bin:$OPENRESTY_PREFIX/bin:$PATH
openresty -V
sudo service etcd stop
mkdir -p ~/etcd-data
etcd --listen-client-urls 'http://0.0.0.0:2379' --advertise-client-urls='http://0.0.0.0:2379' --data-dir ~/etcd-data > /dev/null 2>&1 &
etcdctl version
sleep 5


./build-cache/grpc_server_example &

Expand Down
23 changes: 23 additions & 0 deletions utils/linux-install-etcd-client.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/sh

#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

wget https://github.com/etcd-io/etcd/releases/download/v3.4.0/etcd-v3.4.0-linux-amd64.tar.gz
tar xf etcd-v3.4.0-linux-amd64.tar.gz
sudo cp etcd-v3.4.0-linux-amd64/etcdctl /usr/local/bin/
rm -rf etcd-v3.4.0-linux-amd64