@@ -24,54 +24,47 @@ cache:
24
24
25
25
# Test stage
26
26
# stage: test
27
- # env:
28
- # - MONGODB_VERSION=3.2
27
+ env :
28
+ - MONGODB_VERSION=3.2
29
29
# - MONGODB_VERSION=3.4
30
30
# - PARSE_SERVER_TEST_DB=postgres
31
31
# - PARSE_SERVER_TEST_CACHE=redis
32
- # before_script:
33
- # - node -e 'require("./lib/index.js")'
32
+ before_script :
33
+ - node -e 'require("./lib/index.js")'
34
34
# - psql -c 'create database parse_server_postgres_adapter_test_database;' -U postgres
35
35
# - psql -c 'CREATE EXTENSION postgis;' -U postgres -d parse_server_postgres_adapter_test_database
36
36
# - psql -c 'CREATE EXTENSION postgis_topology;' -U postgres -d parse_server_postgres_adapter_test_database
37
- # - silent=1 mongodb-runner --start
38
- # after_script:
39
- # - bash <(curl -s https://codecov.io/bash)
37
+ - silent=1 mongodb-runner --start
38
+ after_script :
39
+ - bash <(curl -s https://codecov.io/bash)
40
40
41
41
jobs :
42
42
include :
43
43
# YAML alias for test
44
- - &test
44
+ - &test-mongo
45
+ before_script :
46
+ - node -e 'require("./lib/index.js")'
47
+ - silent=1 mongodb-runner --start
45
48
after_script :
46
49
- bash <(curl -s https://codecov.io/bash)
47
- - << : *test
48
- stage : test
49
- node_js : 6.10
50
- env : MONGODB_VERSION=3.2
51
- - << : *test
50
+ - << : *test-mongo
52
51
stage : test
53
52
node_js : 6.10
54
53
env : MONGODB_VERSION=3.4
55
- - << : *test
54
+ - << : *test-mongo
56
55
stage : test
57
56
node_js : 6.10
58
57
env :
59
58
- PARSE_SERVER_TEST_CACHE=redis
60
59
- MONGODB_VERSION=3.2
61
- - << : *test
62
- stage : test
60
+ - stage : test
63
61
node_js : 6.10
64
62
env : PARSE_SERVER_TEST_DB=postgres
65
63
before_script :
66
64
- node -e 'require("./lib/index.js")'
67
65
- psql -c 'create database parse_server_postgres_adapter_test_database;' -U postgres
68
66
- psql -c 'CREATE EXTENSION postgis;' -U postgres -d parse_server_postgres_adapter_test_database
69
67
- psql -c 'CREATE EXTENSION postgis_topology;' -U postgres -d parse_server_postgres_adapter_test_database
70
- - silent=1 mongodb-runner --start
71
- - << : *test
72
- stage : test
73
- node_js : 7.10
74
- env : MONGODB_VERSION=3.2
75
68
# release on github latest branch
76
69
- stage : release
77
70
node_js : 6.10
0 commit comments