-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
36 lines (33 loc) · 1.69 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
image: oarteam/batsim_ci
variables:
GIT_SUBMODULE_STRATEGY: none
stages:
- big_stage
- deploy
###############################################################################
# Do most tasks
###############################################################################
build_and_test:
stage: big_stage
script:
# Build batsched
- nix-shell --pure ./release.nix -A batsched --command ${CI_PROJECT_DIR}/ci/list-store-paths-for-cachix.bash | cachix push batsim
- nix-build ./release.nix -A batsched && cp -rL result ./batsched
# # Test against pinned batsim
# - nix-shell --pure ./release.nix -A integration_tests --command ${CI_PROJECT_DIR}/ci/list-store-paths-for-cachix.bash | cachix push batsim
# - nix-build ./release.nix -A integration_tests && cp -rL result ./integration_tests
# # Test against up-to-date batsim
# - nix-shell --pure ./release.nix -A integration_tests_batlatest --command ${CI_PROJECT_DIR}/ci/list-store-paths-for-cachix.bash | cachix push batsim
# - nix-build ./release.nix -A integration_tests_batlatest && rm result
# # Fail job if tests failed
# - if [[ "$(cat ./integration_tests/pytest_returncode)" -ne 0 ]] ; then echo "pytest returned non-zero (against pinned batsim), aborting" ; exit 1 ; fi
# - if [[ "$(cat ./integration_tests_batlatest/pytest_returncode)" -ne 0 ]] ; then echo "pytest returned non-zero (against latest batsim), aborting" ; exit 1 ; fi
# # Send coverage results to codecov.io
# - nix-env -i gcc
# - mkdir -p merged
# - cp ./batsched/gcno/* ./integration_tests/gcda/* merged/
# - bash <(curl -s https://codecov.io/bash)
# artifacts:
# when: always
# paths:
# - /builds/batsim/batsched/integration_tests