-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbitbucket-pipelines.yml
37 lines (34 loc) · 1.09 KB
/
bitbucket-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
image: firedrakeproject/firedrake
test: &test
step:
name: Run the unit tests
max-time: 30
script:
- source /home/firedrake/firedrake/bin/activate
- pip install pybadges
- export HOME=/home/firedrake
- python -m pybadges --left-text=pipelines --right-text=failure --right-color='#c00' > status.svg
- cd $BITBUCKET_CLONE_DIR
- pip install .
- pip install pytest-timeout
- mpiexec -n 2 python -m pytest -v -s --timeout=600 --timeout-method=thread -o faulthandler_timeout=660 defcon/ examples/firedrake/
- cd -
- python -m pybadges --left-text=pipelines --right-text=success --right-color='#0c0' > status.svg
artifacts:
- status.svg
upload-badge: &upload-badge
step:
name: Upload the build status
script:
- pipe: atlassian/bitbucket-upload-file:0.3.4
variables:
BITBUCKET_USERNAME: $BITBUCKET_USERNAME
BITBUCKET_APP_PASSWORD: $BITBUCKET_APP_PASSWORD
FILENAME: 'status.svg'
pipelines:
default:
- <<: *test
branches:
master:
- <<: *test
- <<: *upload-badge