-
Notifications
You must be signed in to change notification settings - Fork 0
/
.skip.travis.yml
88 lines (73 loc) · 2.09 KB
/
.skip.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
language: node_js
node_js:
- 'node'
- 12
- 11
# branches:
# only:
# - master
# - develop
# - /^release-.*/
install:
- BASE=$(pwd)/packages
- cp -r ${BASE}/isomor-transpiler ${BASE}/../../isomor-transpiler # copy transpiler in isolated folder outside of lerna
- cd ${BASE}/../../isomor-transpiler
- yarn
- cd ${BASE}/example/react
- yarn
- cd ${BASE}/example/vue
- yarn
- cd ${BASE}/isomor-core
- yarn
- cd ${BASE}/ci-test/react-app
- yarn
script:
- cd ${BASE}/isomor-core
- yarn test
- cd ${BASE}/../../isomor-transpiler
- yarn test
##
## REACT
##
# - ls ${BASE}
# - ls ${BASE}/ci-test
# - ls ${BASE}/ci-test/react-app
# - cd ${BASE}/ci-test/react-app
# - yarn isomor:build
# - CI=false yarn build
# - yarn test # instead to have this /test/react, we could inject e2e test in the react version of isomor-react-app
- cd ${BASE}/example/react
- ISOMOR_DIST_SERVER_FOLDER=${BASE}/example/react/dist-server yarn demo 2> yarn.prod.log &
# - cd ${BASE}/example/react && yarn demo 2> yarn.prod.log &
- sleep 30 # should use wait-on lib instead to sleep
- cat yarn.prod.log
- curl http://127.0.0.1:3005/
- curl http://127.0.0.1:3005/isomor/status-server-getStatus/getStatus
- kill $(lsof -t -i:3005 -sTCP:LISTEN)
- cd ~ && mkdir npxisomorreactapp && cd npxisomorreactapp
- npx isomor-react-app my-app
- cd my-app
- yarn isomor:build
- yarn serv:build
- yarn build
# maybe instead use `yarn dev` and see if pages and api is accessible?
##
## VUEjs
##
- cd ${BASE}/example/vue
- ISOMOR_DIST_SERVER_FOLDER=${BASE}/example/vue/dist-server yarn demo 2> yarn.prod.log &
# - cd ${BASE}/example/vue && yarn demo 2> yarn.prod.log &
- sleep 30 # should use wait-on lib instead to sleep
- cat yarn.prod.log
- curl http://127.0.0.1:3005/
- curl http://127.0.0.1:3005/isomor/server-data/getServerUptime
- kill $(lsof -t -i:3005 -sTCP:LISTEN)
- cd ~ && mkdir npxisomorvueapp && cd npxisomorvueapp
- npx isomor-vue-app my-app
- cd my-app
- yarn isomor:build
- yarn serv:build
- yarn build
cache:
directories:
- node_modules