-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
216 lines (213 loc) · 6.84 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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
notifications:
email: false
git:
depth: false
quiet: true
language: python
python: 3.8
node_js: node
addons:
apt:
update: false
packages:
- curl
install: true
before_install:
- python3 -m pip install --upgrade pip
- python3 -m pip install --upgrade httpie
#
- |
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 5432 5672 27017 3000 8000 8080 80
#
- npm -v
- node -v
cache:
npm: true
pip: true
yarn: true
packages: true
directories:
- ~/.local/daggerok
- node_modules
- ~/.n*
- ~/.yarn
jobs:
include:
- stage: test
name: starter
before_script:
- cd $TRAVIS_BUILD_DIR/starter && npm i -E
- cd $TRAVIS_BUILD_DIR/starter && npm start
- cd $TRAVIS_BUILD_DIR/starter && npm run logs &
- wait_for 1234
script:
- http :1234
after_script:
- cd $TRAVIS_BUILD_DIR/starter && npm run predeploy
- stage: deploy
env:
- SUB_PROJECT=starter
- secure: "JI5NQyx6Dnf7E/Db0arHRGF9ihrq9jdMOiIKgu3lTr3D9CNAqnkgDV+P2UVhd8D/E9rk33RCQW4Jffmqj3JcCo3cWRO9k0rZLKF+zRzBEKLrKEubEs6sxG8bAWxCCIp3x2OU4Z0Jl1s9tn3z7MZEEBzju5/JwMCHAgWwuonPkqBSzLCrPIcLmuxK+5Bptj/P6Z0kHiufGqGBsidMFJTGZTYMe4Vo+uaZ3aFlimqA6INaR1g8DaU8NgubAEVRM63B6p8hzMCu6WpUfz5xwDwfVWLbGlgTUsft3eBvgWZvJ5M3izIJVhcH+IYwyA0HFxLnFCoFiPM4doB+MVbZ1h8WU5Gj/2jgnTLUj7ojHxgpoTRvYycNkyOIbqmmLTrV9PKLsN7zcUwgtKnXJmai6aEgfaP8YD4Z4RPvbxljhM0PLE+aSektfLk4+jqdcsBfn+gcpaM/jcOsbS2VS0hvRz1F20Z9jnpp7zd5h9jZjXfw4cnXyaee7HwNa70F4Y+Iy4v11BE+6f1wwaZSOd282c/nvK6glkUo+68vugYROwhKsM5eLKlbDC4uXEyHYn5Sqym9Px9h6EJjkKq384Ra8C6UYYA7R/fikuvvxG7PlUx6dn6YasWu+IxHh5XHmA8oX21dT4pBBy/I5DIBDdvVXkVCI0hBu5mrQDxDvlJwZiBQS6I="
name: gh-pages
script: skip
before_deploy:
- set -e
- cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm i -E
- cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm run predeploy
deploy: &pages
provider: pages
skip-cleanup: true
keep-history: true
target_branch: gh-pages
github-token: "$GITHUB_TOKEN"
local-dir: $TRAVIS_BUILD_DIR/$SUB_PROJECT/dist
on:
branch: master
condition: "$TRAVIS_PULL_REQUEST = false"
## old not worked (yeah, we all love f*ing NodeJS!)
# - stage: test
# name: electric-example
# script:
# - cd $TRAVIS_BUILD_DIR/electric-example && npm i -E
# - cd $TRAVIS_BUILD_DIR/electric-example && npm run predeploy
#
# - stage: test
# name: crocs-example
# script:
# - cd $TRAVIS_BUILD_DIR/crocs-example
# - yarn predeploy
#
# - stage: test
# name: functional-js/todo-cards-app
# script:
# - cd $TRAVIS_BUILD_DIR/functional-js/todo-cards-app
# - npm i
# - npm run build
# - npm run predeploy
# - npm run postdeploy
# - if [ -f npm-debug.log ]; then cat npm-debug.log; fi
#
# - stage: test
# name: functional-js/tips-calculator-app
# script:
# - cd $TRAVIS_BUILD_DIR/functional-js/tips-calculator-app
# - npm i
# - npm run build
# - npm run predeploy
# - npm run postdeploy
# - if [ -f npm-debug.log ]; then cat npm-debug.log; fi
#
# - stage: test
# name: functional-js/functional-starter-app
# script:
# - cd $TRAVIS_BUILD_DIR/functional-js/functional-starter-app
# - npm i
# - npm run build
# - npm run predeploy
# - npm run postdeploy
# - if [ -f npm-debug.log ]; then cat npm-debug.log; fi
#
# - stage: test
# name: functional-js/functional-temperature-converter-app
# script:
# - cd $TRAVIS_BUILD_DIR/functional-js/functional-temperature-converter-app
# - npm i
# - npm run build
# - npm run predeploy
# - npm run postdeploy
# - if [ -f npm-debug.log ]; then cat npm-debug.log; fi
#
# - stage: test
# name: functional-js/functional-calories-counter-app
# script:
# - cd $TRAVIS_BUILD_DIR/functional-js/functional-calories-counter-app
# - npm i
# - npm run build
# - npm run predeploy
# - npm run postdeploy
# - if [ -f npm-debug.log ]; then cat npm-debug.log; fi
#
# - stage: test
# name: functional-js/virtual-dom-counter-app
# script:
# - cd $TRAVIS_BUILD_DIR/functional-js/virtual-dom-counter-app
# - npm i
# - npm run build
# - npm run predeploy
# - npm run postdeploy
# - if [ -f npm-debug.log ]; then cat npm-debug.log; fi
#
# - stage: test
# name: functional-js/pure-counter-app
# script:
# - cd $TRAVIS_BUILD_DIR/functional-js/pure-counter-app
# - npm i
# - npm run build
# - npm run predeploy
# - npm run postdeploy
# - if [ -f npm-debug.log ]; then cat npm-debug.log; fi
#
# - stage: test
# name: functional-js/counter-app
# script:
# - cd $TRAVIS_BUILD_DIR/functional-js/counter-app
# - npm i
# - npm run build
# - npm run predeploy
# - npm run postdeploy
# - if [ -f npm-debug.log ]; then cat npm-debug.log; fi
#
# - stage: test
# name: functional-js/calorie-counter-app
# script:
# - cd $TRAVIS_BUILD_DIR/functional-js/calorie-counter-app
# - npm i
# - npm run build
# - npm run predeploy
# - npm run postdeploy
# - if [ -f npm-debug.log ]; then cat npm-debug.log; fi
#
# - stage: test
# name: functional-js/ramda-functional-composition
# script:
# - cd $TRAVIS_BUILD_DIR/functional-js/ramda-functional-composition
# - npm i
# - npm run build
# - npm run predeploy
# - npm run postdeploy
# - if [ -f npm-debug.log ]; then cat npm-debug.log; fi
#
# - stage: test
# name: functional-js/ramda-currying
# script:
# - cd $TRAVIS_BUILD_DIR/functional-js/ramda-currying
# - npm i
# - npm run build
# - npm run predeploy
# - npm run postdeploy
# - if [ -f npm-debug.log ]; then cat npm-debug.log; fi
#
# - stage: test
# name: functional-js/high-order-functions
# script:
# - cd $TRAVIS_BUILD_DIR/functional-js/high-order-functions
# - npm i
# - npm run build
# - npm run predeploy
# - npm run postdeploy
# - if [ -f npm-debug.log ]; then cat npm-debug.log; fi
#
# - stage: test
# name: functional-js/starter
# script:
# - cd $TRAVIS_BUILD_DIR/functional-js/starter
# - npm i
# - npm run build
# - npm run predeploy
# - npm run postdeploy
# - if [ -f npm-debug.log ]; then cat npm-debug.log; fi