forked from cpp-lln-lab/CPP_BIDS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
48 lines (39 loc) · 1.44 KB
/
.travis.yml
File metadata and controls
48 lines (39 loc) · 1.44 KB
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
# Travis CI (https://travis-ci.org/)
# This will only work on your repo if you have an account on travis and you
# have set it up to run continuous integration on this this repo
# Linux distribution (bionic beaver)
dist: focal
# Language and version
language: node_js
node_js:
- "11"
branches:
only: # only run the CI for those branches
- master
- dev
env:
global: # Define environment variables for bash
- OCTFLAGS="--no-gui --no-window-system --silent"
before_install:
- travis_retry sudo apt-get -y -qq update
# Install octave
- travis_retry sudo apt-get -y install octave
- travis_retry sudo apt-get -y install liboctave-dev
# Install javascript node and node package manager necessary to run the validator
- travis_retry sudo apt-get -y install nodejs
- travis_retry sudo apt-get -y install npm
# Install BIDS-Validator
- sudo npm install -g bids-validator@1.5.7
install:
# make octave file the JSONio submodule
- cd lib/JSONio; mkoctfile --mex jsonread.c jsmn.c -DJSMN_PARENT_LINKS; cd ../..
- octave $OCTFLAGS --eval "addpath (pwd); savepath ();"
before_script:
# Add to src functions to path
- octave $OCTFLAGS --eval "addpath(genpath(fullfile(pwd, 'src'))); savepath ();"
# Change current directory
- cd manualTests
jobs:
include:
- name: "BIDS validator: create and check dataset"
script: octave $OCTFLAGS --eval "test_makeRawDataset" && bids-validator `pwd`/output/raw/ --ignoreNiftiHeaders