-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
128 lines (128 loc) · 4.77 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
env:
global:
secure: "kl2poFRLbAO2FDzMk2UBzh5JIQmWKLLj1vQRsoKnfDhdlbY5cnjdz/wFucXefP2aX3+QUQV0pgwD4ctoq0MdWqfpjPEzth3+aSNqMZQXTXlFCKuSpv6QjGyX9eNffzFYFUsrKGb2ke6AMS8rKLONg+/BA8BlhH7Jb4yLEAcKNZ/YsFmp3F9hkMU2Nrpq3FwbOdkce0e+aB2EJqO5sb8Xhv+2If5aXCKm0e3u7Ju3Ez6jKn6YWUp2qZDu/w2ZAo8fgS1oqPycDEdjxDjFF9+bWHX7fcH+KAOPcOraUyc1RdhD33XDCeY/lwNRuLYHTDUzYE9cPM+fTVH6lEPJY4aRXTs05wx/nLBfdCmz47KKin+jp3hmnC/cHVQrx6oiVaoUIQbIB53fn4r/OkavDv8PNIJoYGJg70VE732XQmLQhjKAu06xP6OCT/XmXhfHnucQFv/5Q6jgUAf1reqVH+0yn81cLfW/WnwIYiF6yFwqxxtruIlvEjyVBNd9LWkIHKZWsDyshjmbkuvOk1NgvaFYGBNc4FKdQdUQKKQPnkKfNHbuARQ36gE+U16X2iCShLgStbbgvDJ8ZnEE325L1r+gcHCxRIR10PTyXkfbJJfr3JU6zoKYt2j3PQn8MAWr+VkkmEXSQRi5M2Z5wQPdkEP6hV/Fy01OEnLu8IkEHOII/FA="
notifications:
email: false
git:
quiet: true
depth: false
language: node
node_js: lts/*
service: docker
os: linux
addons:
apt:
packages:
- curl
- sudo
- lsof
- httpie
- docker-ce
install: true
before_install:
- export DISPLAY=:99.0
- |
if [ ! -f ${HOME}/.local/daggerok/bash-functions/master/main.bash ] ; then
mkdir -p ${HOME}/.local/daggerok/bash-functions/master ;
curl -s https://raw.githubusercontent.com/daggerok/bash-functions/master/main.bash > ${HOME}/.local/daggerok/bash-functions/master/main.bash ;
fi
source ${HOME}/.local/daggerok/bash-functions/master/main.bash ;
- stop_any 30 80 3000 5000 8080 5432
jobs:
include:
- stage: test
env:
- SUB_PROJECT="nuxtjs-composition-api"
name: nuxtjs-composition-api
before_script:
- cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm i -E
- cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm run forever
- cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm run logs &
- wait_for 3000
script:
- http :3000
- http :3000/ololo >/dev/null
after_script: cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm run stop
- stage: test
env:
- SUB_PROJECT="nuxtjs-frontmatter-markdown-loader"
name: nuxtjs-frontmatter-markdown-loader
before_script:
- cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm i -E
- cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm run forever
- cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm run logs &
- wait_for 3000
script:
- http :3000
- http :3000/ololo >/dev/null
after_script: cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm run stop
- stage: test
env:
- SUB_PROJECT="todo-list"
name: todo-list
before_script:
- cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm i -E
- cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm run forever
- cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm run logs &
- wait_for 3000
script:
- http :3000
- http :3000/inspire
- http :3000/my-custom-route/ololo
after_script: cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm stop
- stage: test
env:
- SUB_PROJECT="vuetify-axios-vuex-nuxt"
name: vuetify-axios-vuex-nuxt
before_script:
- cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm i
- cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm run forever
- cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm run logs &
- wait_for 3000
script:
- http :3000
after_script: cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm stop
- stage: test
env:
- SUB_PROJECT="simple-vuex-store"
name: simple-vuex-store
before_script:
- cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm i
- cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm run generate
- docker run -d --rm
--name app
-p 80:80
-v $TRAVIS_BUILD_DIR/$SUB_PROJECT/dist:/usr/share/nginx/html:ro
--health-cmd="wget -q --spider http://127.0.0.1:80/ || exit 1"
--health-start-period=1s
--health-interval=1s
nginx:1.17.6-alpine
- wait_healthy_docker_containers 1
script:
- http :/
after_script: docker rm -f -v app
- stage: test
env:
- SUB_PROJECT="simple"
name: simple
before_script:
- cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm i
- cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm run generate
- docker run -d --rm
--name app
-p 80:80
-v $TRAVIS_BUILD_DIR/$SUB_PROJECT/dist:/usr/share/nginx/html:ro
--health-cmd="wget -q --spider http://127.0.0.1:80/ || exit 1"
--health-start-period=1s
--health-interval=1s
nginx:1.17.6-alpine
- wait_healthy_docker_containers 1
script:
- http :/
after_script: docker rm -f -v app
cache:
npm: true
directories:
- ~/.local/daggerok
- ~/.docker
- ~/.n*