forked from DropD/aiida_docker_images
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
29 lines (23 loc) · 679 Bytes
/
.travis.yml
File metadata and controls
29 lines (23 loc) · 679 Bytes
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
sudo: required
language: python
services:
- docker
notifications:
email:
on_success: never
on_failure: always
addons:
apt:
packages:
- curl
- openssh-client
install:
- docker build -t aiida-docker-stack .
- docker run -d aiida-docker-stack
# I just run a command with verdi that returns a zero error code to see if
# verdi is installed properly
script:
- sleep 30 # wait 30 seconds till the container is ready
- "export DOCKERID=`docker ps -qf 'ancestor=aiida-docker-stack'`"
- "echo \"Docker ID: $DOCKERID\""
- "docker exec --tty --user aiida \"$DOCKERID\" /bin/bash -l -c 'verdi status'"