forked from PySlurm/pyslurm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
28 lines (28 loc) · 1.12 KB
/
.travis.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
sudo: required
language: python
branches:
only:
- master
env:
matrix:
- SLURM=20.02.5 CYTHON=0.29.24 PYTHON=3.6
- SLURM=20.02.5 CYTHON=0.29.24 PYTHON=3.7
- SLURM=20.02.5 CYTHON=0.29.24 PYTHON=3.8
- SLURM=20.02.5 CYTHON=0.29.24 PYTHON=3.9
- SLURM=20.02.5 CYTHON=0.19.2 PYTHON=3.6
- SLURM=20.02.5 CYTHON=0.19.2 PYTHON=3.7
- SLURM=20.02.5 CYTHON=0.19.2 PYTHON=3.8
- SLURM=20.02.5 CYTHON=0.19.2 PYTHON=3.9
services:
- docker
before_install:
- docker pull giovtorres/docker-centos7-slurm:$SLURM
- docker run -d -it -h slurmctl --name slurm-$SLURM -v $PWD:/pyslurm giovtorres/docker-centos7-slurm:$SLURM
install: true
before_script:
- docker exec -e PYTHON=$PYTHON -e CYTHON=$CYTHON slurm-$SLURM /pyslurm/scripts/build.sh
- docker exec -e PYTHON=$PYTHON -e CYTHON=$CYTHON slurm-$SLURM /pyslurm/scripts/configure.sh
script:
- docker exec -e PYTHON=$PYTHON -e CYTHON=$CYTHON slurm-$SLURM /pyslurm/scripts/run_tests.sh
after_success:
- docker exec -e PYTHON=$PYTHON -e SLURM=$SLURM -e CYTHON=$CYTHON -e GITHUB_TOKEN=$GITHUB_TOKEN -e BRANCH=$TRAVIS_BRANCH slurm-$SLURM /pyslurm/scripts/builddocs.sh