You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ko...@apache.org on 2021/11/16 02:19:55 UTC
[couchdb-b64url] branch update-toolchain created (now eeb1b7e)
This is an automated email from the ASF dual-hosted git repository.
kocolosk pushed a change to branch update-toolchain
in repository https://gitbox.apache.org/repos/asf/couchdb-b64url.git.
at eeb1b7e Enable GH Actions CI
This branch includes the following new commits:
new be138a2 Add a dev container config
new f8d927c Add rebar3 compatibility
new eeb1b7e Enable GH Actions CI
The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[couchdb-b64url] 03/03: Enable GH Actions CI
Posted by ko...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
kocolosk pushed a commit to branch update-toolchain
in repository https://gitbox.apache.org/repos/asf/couchdb-b64url.git
commit eeb1b7e9475ebe65e49078e704aa0993542919cd
Author: Adam Kocoloski <ad...@airbnb.com>
AuthorDate: Mon Nov 15 21:19:17 2021 -0500
Enable GH Actions CI
---
.github/actions/msvc-dev-cmd | 1 +
.github/actions/setup-beam | 1 +
.github/actions/tmate | 1 +
.github/workflows/ci.yml | 39 +++++++++++++++++++++++++++++++++++++++
.gitmodules | 9 +++++++++
.travis.yml | 24 ------------------------
6 files changed, 51 insertions(+), 24 deletions(-)
diff --git a/.github/actions/msvc-dev-cmd b/.github/actions/msvc-dev-cmd
new file mode 160000
index 0000000..9f8ae83
--- /dev/null
+++ b/.github/actions/msvc-dev-cmd
@@ -0,0 +1 @@
+Subproject commit 9f8ae839b01883414208f29e3e24524387f48e1f
diff --git a/.github/actions/setup-beam b/.github/actions/setup-beam
new file mode 160000
index 0000000..c255c7e
--- /dev/null
+++ b/.github/actions/setup-beam
@@ -0,0 +1 @@
+Subproject commit c255c7e97f15c92985793fe937175930f5c056ca
diff --git a/.github/actions/tmate b/.github/actions/tmate
new file mode 160000
index 0000000..80a9fae
--- /dev/null
+++ b/.github/actions/tmate
@@ -0,0 +1 @@
+Subproject commit 80a9fae9f2f90408784fb3cfbc192b2de04b7432
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..e220961
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,39 @@
+name: CI
+
+on:
+ push:
+ branches: [ main ]
+ pull_request:
+
+permissions:
+ contents: read
+
+jobs:
+
+ matrix_build:
+ strategy:
+ matrix:
+ otp-version: ['22', '23', '24']
+ # erlef/setup-beam action does not support macos yet
+ os: [ubuntu-latest, windows-latest]
+ runs-on: ${{ matrix.os }}
+ env:
+ # Set to 1 for verbose rebar3 logging
+ DEBUG: 0
+ # Set to 1 for even more verbose rebar3 logging
+ DIAGNOSTIC: 0
+ steps:
+ - name: Check out repository code
+ uses: actions/checkout@v2
+ with:
+ persist-credentials: false
+ submodules: recursive
+ - name: Setup Erlang
+ uses: ./.github/actions/setup-beam
+ with:
+ otp-version: ${{ matrix.otp-version }}
+ rebar3-version: '3.17'
+ - name: Setup MSVC toolchain
+ if: ${{ matrix.os == 'windows-latest' }}
+ uses: ./.github/actions/msvc-dev-cmd
+
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000..d8e3f24
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,9 @@
+[submodule ".github/actions/tmate"]
+ path = .github/actions/tmate
+ url = https://github.com/mxschmitt/action-tmate
+[submodule ".github/actions/msvc-dev-cmd"]
+ path = .github/actions/msvc-dev-cmd
+ url = https://github.com/ilammy/msvc-dev-cmd
+[submodule ".github/actions/setup-beam"]
+ path = .github/actions/setup-beam
+ url = https://github.com/erlef/setup-beam
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 54b91fb..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,24 +0,0 @@
-# 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.
-
-language: erlang
-
-otp_release:
- - 21.2
- - 20.3
- - 19.3
-
-script:
- - make check
[couchdb-b64url] 01/03: Add a dev container config
Posted by ko...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
kocolosk pushed a commit to branch update-toolchain
in repository https://gitbox.apache.org/repos/asf/couchdb-b64url.git
commit be138a27b4397761f2e2db22bbfa399119e4a760
Author: Adam Kocoloski <ad...@airbnb.com>
AuthorDate: Mon Nov 15 20:59:45 2021 -0500
Add a dev container config
---
.devcontainer/devcontainer.json | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
new file mode 100644
index 0000000..366794b
--- /dev/null
+++ b/.devcontainer/devcontainer.json
@@ -0,0 +1,7 @@
+{
+ "image": "erlang:24",
+
+ "extensions": [
+ "erlang-ls.erlang-ls"
+ ]
+}
[couchdb-b64url] 02/03: Add rebar3 compatibility
Posted by ko...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
kocolosk pushed a commit to branch update-toolchain
in repository https://gitbox.apache.org/repos/asf/couchdb-b64url.git
commit f8d927c21bb80a9c1df79d1a16e4e37f900700b1
Author: Adam Kocoloski <ad...@airbnb.com>
AuthorDate: Mon Nov 15 21:00:14 2021 -0500
Add rebar3 compatibility
---
.gitignore | 3 +++
rebar.config | 20 +++++++++++++++++++-
rebar.lock | 1 +
3 files changed, 23 insertions(+), 1 deletion(-)
diff --git a/.gitignore b/.gitignore
index d20aa47..a3fd77f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,3 +5,6 @@ priv/
.rebar/
vc110.pdb
compile_commands.json
+
+_build/
+c_src/*.d
\ No newline at end of file
diff --git a/rebar.config b/rebar.config
index ba1d456..83a227f 100644
--- a/rebar.config
+++ b/rebar.config
@@ -1,3 +1,18 @@
+{plugins, [
+ pc
+]}.
+
+{project_plugins, [
+ erlfmt
+]}.
+
+{provider_hooks, [
+ {pre, [
+ {compile, {pc, compile}},
+ {clean, {pc, clean}}
+ ]}
+]}.
+
{port_specs, [
{"priv/b64url.so", ["c_src/*.c"]}
]}.
@@ -12,4 +27,7 @@
]}.
-{eunit_opts, [verbose]}.
+{eunit_opts, [
+ debug_info,
+ verbose
+]}.
diff --git a/rebar.lock b/rebar.lock
new file mode 100644
index 0000000..57afcca
--- /dev/null
+++ b/rebar.lock
@@ -0,0 +1 @@
+[].