blob: 2d02be9de77555b3c38acb9aa45292f832dfa1a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
image: ubuntu:trusty
stages:
- build
- test
variables:
EMACS_VERSION: "25.1"
CURL: "curl -fsSkL --retry 9 --retry-delay 9"
GHRAW: "https://raw.githubusercontent.com"
before_script:
- apt-get update -qq && apt-get install -y -qq curl make libxml2
cache:
paths:
- git-annex-standalone-amd64.tar.gz
- emacs.tar.gz
policy: pull
download_dependencies:
stage: build
script:
- $CURL -O https://downloads.kitenet.net/git-annex/linux/current/git-annex-standalone-amd64.tar.gz
- $CURL -o emacs.tar.gz https://github.com/npostavs/emacs-travis/releases/download/bins/emacs-bin-${EMACS_VERSION}.tar.gz
artifacts:
expire_in: 1 day
paths:
- git-annex-standalone-amd64.tar.gz
- emacs.tar.gz
.setup_dependencies: &setup_dependencies |
tar -xaf git-annex-standalone-amd64.tar.gz
tar -xaf emacs.tar.gz -C /
export PATH="$PWD/git-annex.linux${PATH:+:}$PATH"
export EMACS=/tmp/emacs/bin/emacs
git config --global user.name "A U Thor"
git config --global user.email a.u.thor@example.com
.install_magit: &install_magit |
git clone --quiet https://github.com/magit/magit.git
cd magit
$CURL -O ${GHRAW}/magnars/dash.el/master/dash.el
$CURL -O ${GHRAW}/magit/ghub/master/ghub.el
$CURL -O ${GHRAW}/magit/magit-popup/master/magit-popup.el
$CURL -O ${GHRAW}/magit/with-editor/master/with-editor.el
$EMACS -Q --batch -L . -f batch-byte-compile dash.el ghub.el magit-popup.el with-editor.el
make lisp EMACSBIN=$EMACS DASH_DIR=$PWD
cd ..
$EMACS --batch -L magit -L magit/lisp --eval "(progn (require 'magit) (magit-version t))"
test:no-magit:
stage: test
script:
- *setup_dependencies
- make EMACSBIN=$EMACS
- make test EMACSBIN=$EMACS
test:magit:
stage: test
script:
- *setup_dependencies
- *install_magit
- make EMACSBIN=$EMACS LOAD_PATH="-L magit -L magit/lisp"
- make test EMACSBIN=$EMACS LOAD_PATH="-L magit -L magit/lisp"
|