Skip to content

Commit 8895ca3

Browse files
authored
Merge pull request Perl#155 from atoomic/alpha-dev-00-faster-ci
Faster CI with thread & unthread
2 parents 0cf0164 + b420444 commit 8895ca3

File tree

3 files changed

+83
-27
lines changed

3 files changed

+83
-27
lines changed

.github/workflows/lite.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: lite
2+
3+
on:
4+
push:
5+
branches:
6+
- "**"
7+
tags-ignore:
8+
- "*"
9+
pull_request:
10+
11+
jobs:
12+
13+
## -------------------------------------------------------------------------------------------
14+
## -------------------------------------------------------------------------------------------
15+
16+
linux:
17+
name: "linux ${{ matrix.configure }}"
18+
runs-on: ubuntu-latest
19+
timeout-minutes: 120
20+
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
configure:
25+
[
26+
"",
27+
"-Dusethreads",
28+
]
29+
env:
30+
PERL_SKIP_TTY_TEST: 1
31+
CONTINUOUS_INTEGRATION: 1
32+
WORKSPACE: ${{ github.workspace }}
33+
34+
steps:
35+
- name: Dump GitHub context
36+
env:
37+
GITHUB_CONTEXT: ${{ toJson(github) }}
38+
run: echo "$GITHUB_CONTEXT"
39+
- uses: actions/checkout@v2
40+
with:
41+
fetch-depth: 0
42+
- name: git cfg + fetch tags
43+
run: |
44+
git config diff.renameLimit 999999
45+
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
46+
- name: Configure
47+
run: |
48+
./Configure -des -Dusedevel ${{ matrix.configure }} -Dprefix="$HOME/perl-blead" -DDEBUGGING
49+
- name: Build
50+
run: |
51+
make -j2
52+
- name: Run Tests
53+
run: |
54+
TEST_JOBS=2 make -j2 test
55+
File renamed without changes.

.travis.yml

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,19 @@ env:
2121
# threads often cause build issues
2222
- CONFIGURE_ARGS='-Uusethreads'
2323
- CONFIGURE_ARGS='-Dusethreads'
24-
# it's easy to miss dVAR
25-
- CONFIGURE_ARGS='-DPERL_GLOBAL_STRUCT_PRIVATE'
26-
# test scripts can be sensitive to PERL_UNICODE, and check long doubles
27-
- CONFIGURE_ARGS='-Duseshrplib -Dusesitecustomize -Duselongdouble' PERL_UNICODE='' LANG='en_US.UTF-8'
28-
# we've rarely had a problem with non-Englush locales, and exercise quadmath
29-
- CONFIGURE_ARGS='-Duseshrplib -Dusequadmath -Dusecbacktrace -Dusethreads' PERL_UNICODE='' LANG='de_DE.UTF-8'
24+
# # it's easy to miss dVAR
25+
# - CONFIGURE_ARGS='-DPERL_GLOBAL_STRUCT_PRIVATE'
26+
# # test scripts can be sensitive to PERL_UNICODE, and check long doubles
27+
# - CONFIGURE_ARGS='-Duseshrplib -Dusesitecustomize -Duselongdouble' PERL_UNICODE='' LANG='en_US.UTF-8'
28+
# # we've rarely had a problem with non-Englush locales, and exercise quadmath
29+
# - CONFIGURE_ARGS='-Duseshrplib -Dusequadmath -Dusecbacktrace -Dusethreads' PERL_UNICODE='' LANG='de_DE.UTF-8'
3030

3131
matrix:
3232
fast_finish: true
3333

3434
script:
35-
- ./Configure -des -Dusedevel -Uversiononly -Dcc="ccache $CC" $CONFIGURE_ARGS -Dprefix=$HOME/perl-blead -DDEBUGGING
35+
- echo "disabled"
36+
#- ./Configure -des -Dusedevel -Uversiononly -Dcc="ccache $CC" $CONFIGURE_ARGS -Dprefix=$HOME/perl-blead -DDEBUGGING
3637
# all script commands are always run
3738
# rather than using one very long oneliner using '&&', just always check the build status
3839
- if [ "x$TRAVIS_TEST_RESULT" = "x0" ]; then TEST_JOBS=$JOBS make -j$JOBS test_harness_notty; fi
@@ -49,23 +50,23 @@ addons:
4950
- zlib1g-dev
5051
- libbz2-dev
5152

52-
notifications:
53-
## use dedicated email for smoking ?
54-
# email:
55-
# recipients:
56-
57-
# on_success: never # default: change
58-
# on_failure: always # default: always
59-
irc:
60-
nick: travisci
61-
channels:
62-
- "irc.perl.org#p5p-qa"
63-
# - "irc.perl.org#bot-test"
64-
template:
65-
- "Report for %{repository} (%{commit}) from %{author} (%{elapsed_time})"
66-
- "Status: %{message}"
67-
- "Build URL: %{build_url}"
68-
- "GitHub URL: https://github.com/%{repository_slug}/commit/%{commit}"
69-
on_success: change # default: always
70-
on_failure: always # default: always
71-
# use_notice: true
53+
# notifications:
54+
# ## use dedicated email for smoking ?
55+
# # email:
56+
# # recipients:
57+
58+
# # on_success: never # default: change
59+
# # on_failure: always # default: always
60+
# irc:
61+
# nick: travisci
62+
# channels:
63+
# - "irc.perl.org#p5p-qa"
64+
# # - "irc.perl.org#bot-test"
65+
# template:
66+
# - "Report for %{repository} (%{commit}) from %{author} (%{elapsed_time})"
67+
# - "Status: %{message}"
68+
# - "Build URL: %{build_url}"
69+
# - "GitHub URL: https://github.com/%{repository_slug}/commit/%{commit}"
70+
# on_success: change # default: always
71+
# on_failure: always # default: always
72+
# # use_notice: true

0 commit comments

Comments
 (0)