forked from CATIA-Systems/FMPy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
49 lines (47 loc) · 1.29 KB
/
config.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
version: 2.1
jobs:
build:
parameters:
installer:
description: "URL of the Anaconda installer script"
type: string
machine: true
steps:
- checkout
- run:
name: Install Anaconda
command: |
wget << parameters.installer >> -O anaconda.sh
bash anaconda.sh -b -p ~/anaconda
- run:
name: Add Anaconda to PATH
command: echo 'export PATH=$HOME/anaconda/bin:$PATH' >> $BASH_ENV
- run:
name: Install dependencies
command: |
conda info -a
conda install -c anaconda pathlib
- run:
name: Build wheel
command: |
which python
python setup.py bdist_wheel --universal
- run:
name: Install wheel
command: |
for f in dist/FMPy-*.whl; do
pip install $f --no-deps -vv
done
- run:
name: Run tests
command: |
which fmpy
cd tests
python -m unittest discover
workflows:
build:
jobs:
- build:
installer: https://repo.continuum.io/archive/Anaconda2-2018.12-Linux-x86_64.sh
- build:
installer: https://repo.continuum.io/archive/Anaconda3-2018.12-Linux-x86_64.sh