forked from andre-simon/highlight
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.gitlab-ci.yml
38 lines (33 loc) · 1.1 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
# Specify the docker image to use (only used if using docker runners)
# See: http://doc.gitlab.com/ee/ci/docker/using_docker_images.html
image: debian:stable-slim
# Define commands that run before each job's script
before_script:
- apt-get update
- apt-get install -y make gcc g++ libboost-dev liblua5.3-dev git
# ======================
# EditorConfig Toolchain
# ======================
# Install Node.js:
- apt-get install -y curl
- curl -sL https://deb.nodesource.com/setup_13.x | bash
- apt-get install -y nodejs
- node -v
- npm -v
# Install EClint:
- npm install -g eclint
compile:
script:
- make
- make install
# Verify that our compiled app works properly with a custom "test" script
- bash ./src/ci_test.sh
# Save the compiled output from the above for downloading via GitLab and in Gitlab 8.6 to use in future build steps
#artifacts:
# paths:
# - ansifilter
validate:
script:
# Validate committed files against EditorConfig settings via EClint using
# a custom script that in case of error lists only the problematic files:
- bash ./validate.sh