-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
58 lines (48 loc) · 1.29 KB
/
.gitlab-ci.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
variables:
GIT_CLONE_PATH: $CI_BUILDS_DIR/$CI_CONCURRENT_ID/os-measures
SET_TEST_START_TIME: 'export OS_MEASURES_TEST_TIME="`date -u +%s`"'
default:
cache:
key: gems-$CI_JOB_NAME
paths:
- .gems
- vendor/ruby
stages:
- test_nrel
- test_nrc
test_using_nrc_image:
stage: test_nrc
image: localhost:5000/openstudio-server
tags:
- linux
- docker
- const-ibp
before_script:
- echo 'Configuring test environment using NRC specific openstudio-server image'
- echo ' This image can be used in testing'
- bundle config set --local path 'vendor/ruby'
- source env.sh && download_gems && customize_standards
- bundle install -j $(nproc)
script:
- echo 'Starting tests'
- 'eval "$SET_TEST_START_TIME"'
- cd test
- bundle exec ruby test_measures.rb
test_using_nrel_server_image:
stage: test_nrel
image: nrel/openstudio-server:3.2.1
tags:
- linux
- docker
- const-ibp
before_script:
- echo 'Configuring test environment using openstudio-server'
- echo ' This is the image used by PAT'
- bundle config set --local path 'vendor/ruby'
- source env.sh && download_gems && customize_standards
- bundle install -j $(nproc)
script:
- echo 'Starting tests'
- 'eval "$SET_TEST_START_TIME"'
- cd test
- bundle exec ruby test_measures.rb