forked from BlueBrain/nmodl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
50 lines (49 loc) · 1.79 KB
/
azure-pipelines.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
#=============================================================================
# Azure Pipeline NMODL settings
#=============================================================================
jobs:
- job: 'ubuntu1604'
pool:
vmImage: 'ubuntu-16.04'
displayName: 'Ubuntu (16.04), GCC 8.1'
steps:
- checkout: self
submodules: true
- script: |
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-add-repository -y ppa:deadsnakes/ppa
sudo apt update
sudo apt install -y g++-8 flex bison cmake
sudo apt-get install -y python3.7 python3.7-dev
python3.7 -m pip install -U pip setuptools
python3.7 -m pip install --user 'Jinja2>=2.9.3' 'PyYAML>=3.13' pytest 'sympy>=1.3'
displayName: 'Install Depdendencies'
- script: |
export PATH=/home/vsts/.local/bin:$PATH
export CXX='g++-8'
mkdir -p $(Build.Repository.LocalPath)/build
cd $(Build.Repository.LocalPath)/build
cmake .. -DPYTHON_EXECUTABLE=`which python3.7` -DCMAKE_INSTALL_PREFIX=$HOME/nmodl
make -j 2
make test
displayName: 'Build and Run Tests'
- job: 'osx1014'
pool:
vmImage: 'macOS-10.14'
displayName: 'MacOS (10.14), AppleClang 10.0'
steps:
- checkout: self
submodules: true
- script: |
brew install flex bison cmake python@3
python3 -m pip install -U pip setuptools
python3 -m pip install --user 'Jinja2>=2.9.3' 'PyYAML>=3.13' pytest 'sympy>=1.3'
displayName: 'Install Depdendencies'
- script: |
export PATH=/usr/local/opt/flex/bin:/usr/local/opt/bison/bin:$PATH;
mkdir -p $(Build.Repository.LocalPath)/build
cd $(Build.Repository.LocalPath)/build
cmake .. -DPYTHON_EXECUTABLE=`which python3` -DCMAKE_INSTALL_PREFIX=$HOME/nmodl
make -j 2
make test
displayName: 'Build and Run Tests'