-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
41 lines (32 loc) · 1.46 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
29
30
31
32
33
34
35
36
37
38
39
40
41
sudo: required
services:
- docker
cache:
bundler: true
directories:
- $HOME/docker
before_cache:
# Save tagged docker images
#- >
# mkdir -p $HOME/docker && docker images -a --filter='dangling=false' --format '{{.Repository}}:{{.Tag}} {{.ID}}'
# | xargs -n 2 -t sh -c 'test -e $HOME/docker/$1.tar.gz || docker save $0 | gzip -2 > $HOME/docker/$1.tar.gz'
before_install:
# Load cached docker images
#- if [[ -d $HOME/docker ]]; then ls $HOME/docker/*.tar.gz | xargs -I {file} sh -c "zcat {file} | docker load"; fi
# clone web for e2e testing
- git clone https://github.com/cualbondi/web.git --depth 1
- docker --version
- docker-compose --version
- docker-compose -f docker-compose-travis.yml up -d
- docker-compose -f docker-compose-travis.yml exec web-buscador npm install
- docker-compose -f docker-compose-travis.yml exec web python3 manage.py migrate
- docker-compose -f docker-compose-travis.yml exec web python3 manage.py loaddata lineas.json recorridos.json provincias.json ciudades.json calles.json zonas.json pois.json
- docker-compose -f docker-compose-travis.yml ps
script:
# - docker-compose -f docker-compose-travis.yml exec web-buscador npm run lint
- docker-compose -f docker-compose-travis.yml exec web-buscador npm run tslint
- docker-compose -f docker-compose-travis.yml exec web-buscador npm run test:e2e:headless
notifications:
email:
on_success: never # default: change
on_failure: always # default: always