Skip to content

Commit 8c3cee6

Browse files
committed
More tests
1 parent ae67c0c commit 8c3cee6

File tree

2 files changed

+1
-101
lines changed

2 files changed

+1
-101
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -20,65 +20,6 @@ permissions:
2020
contents: read
2121

2222
jobs:
23-
test_linux:
24-
name: Ubuntu 24.04, Erlang/OTP ${{ matrix.otp_version }}${{ matrix.deterministic && ' (deterministic)' || '' }}
25-
strategy:
26-
fail-fast: false
27-
matrix:
28-
include:
29-
- otp_version: "27.1"
30-
deterministic: true
31-
- otp_version: "27.1"
32-
otp_latest: true
33-
- otp_version: "27.0"
34-
- otp_version: "26.0"
35-
- otp_version: master
36-
development: true
37-
- otp_version: maint
38-
development: true
39-
runs-on: ubuntu-24.04
40-
steps:
41-
- uses: actions/checkout@v4
42-
with:
43-
fetch-depth: 50
44-
- uses: erlef/setup-beam@v1
45-
with:
46-
otp-version: ${{ matrix.otp_version }}
47-
- name: Set ERL_COMPILER_OPTIONS
48-
if: ${{ matrix.deterministic }}
49-
run: echo "ERL_COMPILER_OPTIONS=deterministic" >> $GITHUB_ENV
50-
- name: Compile Elixir
51-
run: |
52-
make compile
53-
echo "$PWD/bin" >> $GITHUB_PATH
54-
- name: Build info
55-
run: bin/elixir --version
56-
- name: Check format
57-
run: make test_formatted && echo "All Elixir source code files are properly formatted."
58-
- name: Erlang test suite
59-
run: make test_erlang
60-
continue-on-error: ${{ matrix.development }}
61-
- name: Elixir test suite
62-
run: make test_elixir
63-
continue-on-error: ${{ matrix.development }}
64-
- name: Build docs (ExDoc main)
65-
if: ${{ matrix.otp_latest }}
66-
run: |
67-
cd ..
68-
git clone https://github.com/elixir-lang/ex_doc.git --depth 1
69-
cd ex_doc
70-
../elixir/bin/mix do local.rebar --force + local.hex --force + deps.get + compile
71-
cd ../elixir/
72-
git fetch --tags
73-
make docs
74-
- name: Check reproducible builds
75-
if: ${{ matrix.deterministic }}
76-
run: |
77-
rm -rf .git
78-
# Recompile System without .git
79-
cd lib/elixir && ../../bin/elixirc -o ebin lib/system.ex && cd -
80-
taskset 1 make check_reproducible
81-
8223
test_windows:
8324
name: Windows Server 2019, Erlang/OTP ${{ matrix.otp_version }}
8425
strategy:
@@ -108,44 +49,3 @@ jobs:
10849
run: |
10950
Remove-Item 'c:/Windows/System32/drivers/etc/hosts'
11051
make test_elixir
111-
112-
check_posix_compliant:
113-
name: Check POSIX-compliant
114-
runs-on: ubuntu-24.04
115-
steps:
116-
- uses: actions/checkout@v4
117-
with:
118-
fetch-depth: 50
119-
- name: Install Shellcheck
120-
run: |
121-
sudo apt update
122-
sudo apt install -y shellcheck
123-
- name: Check POSIX-compliant
124-
run: |
125-
shellcheck -e SC2039,2086 bin/elixir && echo "bin/elixir is POSIX compliant"
126-
shellcheck bin/elixirc && echo "bin/elixirc is POSIX compliant"
127-
shellcheck bin/iex && echo "bin/iex is POSIX compliant"
128-
129-
license_compliance:
130-
name: Check Licence Compliance
131-
132-
runs-on: ubuntu-24.04
133-
134-
steps:
135-
- name: Use HTTPS instead of SSH for Git cloning
136-
id: git-config
137-
shell: bash
138-
run: git config --global url.https://github.com/.insteadOf ssh://[email protected]/
139-
140-
- name: Checkout project
141-
id: checkout
142-
uses: actions/checkout@v4
143-
144-
- name: "Run OSS Review Toolkit"
145-
id: ort
146-
uses: ./.github/workflows/ort
147-
with:
148-
upload-reports: true
149-
fail-on-violation: true
150-
report-formats: "WebApp"
151-
version: "${{ github.sha }}"

lib/mix/test/test_helper.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ cover_exclude =
4747
end
4848

4949
ExUnit.start(
50-
trace: !!System.get_env("TRACE"),
50+
trace: true,
5151
exclude: epmd_exclude ++ os_exclude ++ git_exclude ++ line_exclude ++ cover_exclude,
5252
include: line_include
5353
)

0 commit comments

Comments
 (0)