about summary refs log tree commit diff stats
path: root/CHANGELOG
Commit message (Expand)AuthorAgeFilesLines
* Update changelog for 0.8.1Michael Vetter2020-02-071-2/+15
* Fix years in CHANGELOGMichael Vetter2020-02-031-3/+3
* Release 0.8.0Michael Vetter2020-02-031-2/+2
* Update CHANGELOGMichael Vetter2020-01-311-0/+5
* Add gruvbox to CHANGELOGMichael Vetter2020-01-281-1/+2
* Fix two typos in CHANGELOGMichael Vetter2020-01-281-2/+2
* Add Changes header to CHANGELOGMichael Vetter2020-01-281-0/+2
* Add changelog draft for 0.8.0Michael Vetter2020-01-281-0/+99
* Fix typoMartin2019-09-241-1/+1
* Add 0.7.1 changelogMichael Vetter2019-09-241-0/+7
* Add 0.7.0 release date to ChangelogMichael Vetter2019-07-311-1/+1
* Add 1154 to CHANGELOGMichael Vetter2019-07-221-1/+2
* Add 0.7.0 changelog entryMichael Vetter2019-06-241-0/+40
* Add release dates to changelogMichael Vetter2019-06-051-5/+5
* Update profanity repo URLMichael Vetter2019-05-031-2/+2
* Mention prof_win_close feature in CHANGELOGMichael Vetter2019-01-101-0/+1
* Add option to trust server's certificateDmitry Podgorny2018-11-061-0/+1
* Update CHANGELOGMichael Vetter2018-10-041-0/+9
* Merge pull request #975 from strugee/patch-2Michael Vetter2018-07-281-0/+1
|\
| * Note CVE-2017-5592 in the CHANGELOGAJ Jordan2017-12-191-0/+1
* | Fix typoAJ Jordan2017-12-191-1/+1
|/
* Update CHANGELOGJames Booth2017-07-131-0/+1
* Update CHANGELOGJames Booth2017-06-131-0/+6
* Update CHANGELOGJames Booth2017-01-281-0/+2
* Update CHANGELOGJames Booth2017-01-281-0/+1
* Update CHANGELOGJames Booth2017-01-191-0/+1
* Update CHANGELOGJames Booth2016-11-061-0/+1
* Update CHANGELOGJames Booth2016-11-061-0/+1
* Update CHANGELOGJames Booth2016-10-181-0/+7
* Update CHANGELOGJames Booth2016-09-261-1/+1
* Update CHANGELOGJames Booth2016-09-251-1/+1
* Update CHANGELOGJames Booth2016-09-191-0/+5
* Update CHANGELOGJames Booth2016-08-211-0/+1
* Update CHANGELOGJames Booth2016-08-211-0/+3
* Added tray cmd info to CHANGELOGDominik Heidler2016-05-041-1/+1
* Update CHANGELOGJames Booth2016-05-011-0/+1
* Fixed typoJames Booth2016-04-271-1/+1
* Updated CHANGELOGJames Booth2016-04-271-0/+1
* Updated CHANGELOGJames Booth2016-04-111-2/+2
* Updated CHANGELOGJames Booth2016-03-161-1/+1
* Updated CHANGELOGJames Booth2016-01-081-0/+1
* Updated CHANGELOGJames Booth2016-01-081-3/+3
* Updated CHANGELOGJames Booth2016-01-081-13/+13
* Updated CHANGELOGJames Booth2016-01-081-0/+7
* Updated CHANGELOGJames Booth2015-12-021-1/+3
* Updated version in CHANGELOG and commentsJames Booth2015-12-021-1/+1
* update CHANGELOGWill Song2015-11-231-0/+1
* Updated CHANGELOGJames Booth2015-11-091-0/+2
* Updated CHANGELOGJames Booth2015-10-141-0/+1
* Updated CHANGELOGJames Booth2015-09-301-0/+1
/a>
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
                   
 






                         


               



                                
        
                                                                                               
        
                    



                      










                                                         

              
        
                                  

        


                                             
                                                                                      




















                                                                            
                                                                                      

















                                                                            



























                                                                                                           

    
                             

        
                                                    
        
 
                               




                         

                  
    
#!/usr/bin/env bash

log_content()
{
    echo
    echo "Content of $1:"
    cat "$1"
}

error_handler()
{
    ERR_CODE=$?

    log_content ./config.log
    log_content ./test-suite.log

    echo
    echo "Error ${ERR_CODE} with command '${BASH_COMMAND}' on line ${BASH_LINENO[0]}. Exiting."
    echo
    exit ${ERR_CODE}
}

trap error_handler ERR

num_cores()
{
    # Check for cores, for systems with:
    #   Line 1. Linux w/ coreutils, or...
    #   Line 2. OpenBSD, FreeBSD, NetBSD or macOS, or...
    #   Line 3. Fallback for Linux w/o coreutils (glibc).
    nproc \
        || sysctl -n hw.ncpu \
        || getconf _NPROCESSORS_ONLN 2>/dev/null
}

./bootstrap.sh

tests=()
MAKE="make --quiet -j$(num_cores)"
CC="gcc"

case $(uname | tr '[:upper:]' '[:lower:]') in
    linux*)
        tests=(
        "--enable-notifications --enable-icons-and-clipboard --enable-otr --enable-pgp
        --enable-omemo --enable-plugins --enable-c-plugins
        --enable-python-plugins --with-xscreensaver"
        "--disable-notifications --disable-icons --disable-otr --disable-pgp
        --disable-omemo --disable-plugins --disable-c-plugins
        --disable-python-plugins --without-xscreensaver"
        "--disable-notifications"
        "--disable-icons"
        "--disable-otr"
        "--disable-pgp"
        "--disable-omemo"
        "--disable-pgp --disable-otr"
        "--disable-pgp --disable-otr --disable-omemo"
        "--disable-plugins"
        "--disable-python-plugins"
        "--disable-c-plugins"
        "--disable-c-plugins --disable-python-plugins"
        "--without-xscreensaver"
        "")
        ;;
    darwin*)
        tests=(
        "--enable-notifications --enable-icons-and-clipboard --enable-otr --enable-pgp
        --enable-omemo --enable-plugins --enable-c-plugins
        --enable-python-plugins"
        "--disable-notifications --disable-icons --disable-otr --disable-pgp
        --disable-omemo --disable-plugins --disable-c-plugins
        --disable-python-plugins"
        "--disable-notifications"
        "--disable-icons"
        "--disable-otr"
        "--disable-pgp"
        "--disable-omemo"
        "--disable-pgp --disable-otr"
        "--disable-pgp --disable-otr --disable-omemo"
        "--disable-plugins"
        "--disable-python-plugins"
        "--disable-c-plugins"
        "--disable-c-plugins --disable-python-plugins"
        "")
        ;;
    openbsd*)
        MAKE="gmake"
        # TODO(#1231):
        # `-std=gnu99 -fexec-charset=UTF-8` to silence:
        # src/event/server_events.c:1453:19: error: universal character names are only valid in C++ and C99
        # src/event/server_events.c:1454:19: error: universal character names are only valid in C++ and C99
        CC="gcc -std=gnu99 -fexec-charset=UTF-8"

        tests=(
        "--enable-notifications --enable-icons-and-clipboard --enable-otr --enable-pgp
        --enable-omemo --enable-plugins --enable-c-plugins
        --enable-python-plugins"
        "--disable-notifications --disable-icons --disable-otr --disable-pgp
        --disable-omemo --disable-plugins --disable-c-plugins
        --disable-python-plugins"
        "--disable-notifications"
        "--disable-icons"
        "--disable-otr"
        "--disable-pgp"
        "--disable-omemo"
        "--disable-pgp --disable-otr"
        "--disable-pgp --disable-otr --disable-omemo"
        "--disable-plugins"
        "--disable-python-plugins"
        "--disable-c-plugins"
        "--disable-c-plugins --disable-python-plugins"
        "")
        ;;
esac

for features in "${tests[@]}"
do
    echo
    echo "--> Building with ./configure ${features}"
    echo

    # shellcheck disable=SC2086
    ./configure $features

    $MAKE CC="${CC}"
    $MAKE check

    ./profanity -v
    $MAKE clean
done