Commit 6f08aee9 authored by Reza Sahebgharan's avatar Reza Sahebgharan

fix(fix gitlab-ci): fix gitlab ci stages

parent 92a6d3ca
Pipeline #862 failed
...@@ -5,7 +5,7 @@ stages: ...@@ -5,7 +5,7 @@ stages:
- build_in_devel - build_in_devel
- cleanup_build - cleanup_build
- build_in_master - build_in_master
- build_in_devel_windows - build_in_staging
build_in_devel: build_in_devel:
before_script: before_script:
- $env:TAG_VERSION=(git describe --tag --abbrev=0) - $env:TAG_VERSION=(git describe --tag --abbrev=0)
...@@ -35,9 +35,12 @@ build_in_devel: ...@@ -35,9 +35,12 @@ build_in_devel:
- devel - devel
build_in_devel_windows: build_in_staging:
before_script: before_script:
- $env:TAG_VERSION=(git describe --tag --abbrev=0) - $env:TAG_VERSION=(git describe --tag --abbrev=0)
- $env:BRANCHFULLNAME=(git name-rev --name-only HEAD)
- $env:BRANCHNAME=$env:BRANCHFULLNAME.Split('/')[$env:BRANCHFULLNAME.Split('/').length - 1]
- echo $env:BRANCHNAME.Split('_')[1]
- docker login -u reza.s -p aA123456 repo.marcopacs.com - docker login -u reza.s -p aA123456 repo.marcopacs.com
stage: build_in_devel_windows stage: build_in_devel_windows
tags: tags:
...@@ -66,10 +69,10 @@ build_in_devel_windows: ...@@ -66,10 +69,10 @@ build_in_devel_windows:
- echo y | plink -batch -ssh administrator@staging.karname.ir -pw $env:StagingPass -m ./command.bat - echo y | plink -batch -ssh administrator@staging.karname.ir -pw $env:StagingPass -m ./command.bat
# - ./scripts/command.ps1 # - ./scripts/command.ps1
allow_failure: true allow_failure: true
only:
- devel-windows
# only: # only:
# - /^staging_.*/ # - devel-windows
only:
- /^staging_.*/
build_in_master: build_in_master:
before_script: before_script:
...@@ -79,14 +82,11 @@ build_in_master: ...@@ -79,14 +82,11 @@ build_in_master:
- shell - shell
script: script:
- echo "starting build in master" - echo "starting build in master"
- npm install
- npm run test-jest
- docker-compose config
- docker-compose build
- docker-compose up -d --force-recreate
allow_failure: true allow_failure: true
only: only:
- master - tags
except:
- /^(?!master).+@/
on_build_failure: on_build_failure:
stage: cleanup_build stage: cleanup_build
......
...@@ -28,8 +28,7 @@ ...@@ -28,8 +28,7 @@
class="elevation-1" class="elevation-1"
style="width:100%" style="width:100%"
fixed-header fixed-header
hide-default-footer disable-sort
disable-pagination
height="600px" height="600px"
></v-data-table> ></v-data-table>
</v-row> </v-row>
......
...@@ -6,9 +6,8 @@ Meteor.publish("brands", function() { ...@@ -6,9 +6,8 @@ Meteor.publish("brands", function() {
return this.ready(); return this.ready();
} }
return Brands.find({}, { return Brands.find({}, {
reactive: true, disableOplog: true,
disableOplog: false, // pollingThrottleMs: 1000,
pollingThrottleMs: 1000,
pollingIntervalMs: 1000 pollingIntervalMs: 1000
}); });
}); });
\ No newline at end of file
...@@ -10,9 +10,9 @@ Meteor.publish("clients", function() { ...@@ -10,9 +10,9 @@ Meteor.publish("clients", function() {
if (this.userId) { if (this.userId) {
return Clients.find({}, { return Clients.find({}, {
reactive: true,
disableOplog: false, disableOplog: true,
pollingThrottleMs: 1000, // pollingThrottleMs: 1000,
pollingIntervalMs: 1000 pollingIntervalMs: 1000
}) })
} else { } else {
......
...@@ -6,9 +6,9 @@ Meteor.publish("devicecode", function() { ...@@ -6,9 +6,9 @@ Meteor.publish("devicecode", function() {
return this.ready(); return this.ready();
} }
return DeviceCode.find({}, { return DeviceCode.find({}, {
reactive: true,
disableOplog: false, disableOplog: true,
pollingThrottleMs: 1000, // pollingThrottleMs: 1000,
pollingIntervalMs: 1000 pollingIntervalMs: 1000
}); });
}); });
\ No newline at end of file
...@@ -7,9 +7,9 @@ Meteor.publish("devicemaps", function() { ...@@ -7,9 +7,9 @@ Meteor.publish("devicemaps", function() {
return this.ready(); return this.ready();
} }
return DeviceMap.find({}, { return DeviceMap.find({}, {
reactive: true,
disableOplog: true, disableOplog: true,
pollingThrottleMs: 1000, // pollingThrottleMs: 1000,
pollingIntervalMs: 1000 pollingIntervalMs: 1000
}); });
}); });
\ No newline at end of file
...@@ -6,9 +6,9 @@ Meteor.publish("hislink", function() { ...@@ -6,9 +6,9 @@ Meteor.publish("hislink", function() {
return this.ready(); return this.ready();
} }
return HisLink.find({}, { return HisLink.find({}, {
reactive: true,
disableOplog: false, disableOplog: true,
pollingThrottleMs: 1000, // pollingThrottleMs: 1000,
pollingIntervalMs: 1000 pollingIntervalMs: 1000
}); });
}); });
\ No newline at end of file
...@@ -16,9 +16,8 @@ Meteor.publish("worklist4hislink", function(brand) { ...@@ -16,9 +16,8 @@ Meteor.publish("worklist4hislink", function(brand) {
// let Worklist = new Mongo.Collection(brand); // let Worklist = new Mongo.Collection(brand);
// console.log(Worklist.find({ _userid: userid, _devicemap: devicemap }).fetch()) // console.log(Worklist.find({ _userid: userid, _devicemap: devicemap }).fetch())
return Collections[brand].find({}, { return Collections[brand].find({}, {
reactive: true, disableOplog: true,
disableOplog: false, // pollingThrottleMs: 1000,
pollingThrottleMs: 1000,
pollingIntervalMs: 1000 pollingIntervalMs: 1000
}); });
}); });
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment