-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
81 lines (60 loc) · 1.66 KB
/
.gitlab-ci.yml
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
image: buildpack-deps:trusty
stages:
- build
- test
- deploy
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- xa65/
job_build:
stage: build
only:
- master
except:
changes:
- .travis.yml
- "*.md"
before_script:
# Prepare l'environnement "Travis"
# - mkdir -p /home/travis
# - ln -s /usr/local/bin /home/travis/bin
# - env
# Travis before_install
# - apt-get update && apt-get install -qq git unzip
# - pushd ..
- "if [ ! -d xa65 ]; then git clone https://github.com/fachat/xa65.git ; fi"
- pushd xa65/xa && make &> /dev/null
- cp file65 ldo65 reloc65 xa /usr/local/bin
- popd
script:
# Simule le fonctionnement de travis
- ./configure && make && make test
artifacts:
expire_in: 1 hour
paths:
- build/
job_test:
stage: test
only:
- master
except:
changes:
- .travis.yml
- "*.md"
cache:
policy: pull
script:
- ls
job_deploy:
stage: deploy
only:
- master
except:
changes:
- .travis.yml
- "*.md"
cache:
policy: pull
script:
- ls -Rlh