Commit de5d1d8c authored by Paal Kvamme's avatar Paal Kvamme
Browse files

Merge branch 'kvamme62/internal-devops' into 'master'

Sync with internal devops

See merge request !75
parents c1b1fd45 cdfbb658
Pipeline #44265 passed with stage
in 41 seconds
......@@ -29,7 +29,7 @@ undefine NEWTOKEN
MY_OVERRIDES =
MY_OVERRIDES += $(if $(SDAPI_INTERNAL),SD_ZIPFILE=$(BUILDROOT)/seismic-service-bin/$(PLATFORM)/sdapi_linux64_local.tar.gz)
.PHONY: python native wrapper build clean clobber docker-build docker-test docker noop doxygen
.PHONY: python native wrapper build clean clobber docker-build docker-buildtest docker-test docker noop doxygen
all: native sdglue wrapper python
......@@ -126,6 +126,11 @@ docker-build:
$(RM) cid.txt
docker build -t $(TAG):test -f $(DOCKERFILE)-test .
# Only valid right after docker-build, useful if experimenting
# with changes to $(DOCKERFILE)-test and nothing else.
docker-buildtest:
docker build -t $(TAG):test -f $(DOCKERFILE)-test .
docker-test:
@echo -e '\n*** Test native started at' $$(date)
docker run --rm -e OPENZGY_TOKEN -e OPENZGY_SDURL -e OPENZGY_SDAPIKEY $(TAG):test native/src/runtests.sh
......
name: 'OpenZGY-Veracode'
trigger: none
schedules:
- cron: "0 0 * * Fri"
displayName: Weekly midnight check
batch: true
branches:
include:
- master
steps:
- checkout: git://Colors/openzgy
- script: |
ls '$(Build.SourcesDirectory)'
displayName: 'list sources'
- bash: 'zip -rv OpenZGY.zip . -x "external/" ".git/"'
displayName: 'Zip Sources'
- task: DownloadPipelineArtifact@2
inputs:
source: specific
project: 'Colors'
pipeline: 'OpenZGY Windows' # 10319
preferTriggeringPipeline: false
runVersion: 'latestFromBranch'
runBranch: 'refs/heads/master'
path: '$(Build.SourcesDirectory)/bin'
displayName: 'Taking the latest Windows build'
- task: ArchiveFiles@2
inputs:
rootFolderOrFile: '$(Build.SourcesDirectory)/bin/OpenZGY-Windows/openzgy/build/deploy/native/x64/Debug/'
includeRootFolder: false
archiveType: 'zip'
archiveFile: '$(Build.SourcesDirectory)/OpenZGY-bin.zip'
replaceExistingArchive: true
verbose: true
displayName: 'Zip binaries'
- script: |
tree '$(Build.SourcesDirectory)'
displayName: 'List Downloaded Artifacts'
- task: Veracode@3
displayName: 'Veracode upload and scan python'
inputs:
AnalysisService: 'Veracode'
veracodeAppProfile: 'DELFI Seismic Interpretation'
version: 'openZGY#$(build.buildNumber)-commit#$(Build.SourceVersion)'
filepath: '$(Build.SourcesDirectory)/OpenZGY.zip'
sandboxName: 'OpenZGY-Python'
createSandBox: false
failTheBuildIfVeracodeScanDidNotInitiate: true
failBuildOnPolicyFail: false
importResults: false
- task: Veracode@3
displayName: 'Veracode upload and scan binaries'
inputs:
AnalysisService: 'Veracode'
veracodeAppProfile: 'DELFI Seismic Interpretation'
version: 'openZGY#$(build.buildNumber)-commit#$(Build.SourceVersion)'
filepath: '$(Build.SourcesDirectory)/OpenZGY-bin.zip'
sandboxName: 'OpenZGY-CPP'
createSandBox: false
failTheBuildIfVeracodeScanDidNotInitiate: true
failBuildOnPolicyFail: false
importResults: false
......@@ -15,13 +15,16 @@ pool:
variables:
- group: 'Salmon Variables'
steps:
- template: templates/valgrind-build-steps.yml
parameters:
linuxdistro: 'centos8'
makeargs: SDAPI_INTERNAL=ON OPTIMIZE=
tagtail: valgrind
deployed: >
valgrind.txt
valgrind-1.txt
valgrind-2.txt
jobs:
- job:
timeoutInMinutes: 120
steps:
- template: templates/valgrind-build-steps.yml
parameters:
linuxdistro: 'centos8'
makeargs: SDAPI_INTERNAL=ON OPTIMIZE=
tagtail: valgrind
deployed: >
valgrind.txt
valgrind-1.txt
valgrind-2.txt
# name: 'OpenZGY Linux CentOS 8 py36'
name: $(Build.BuildID)-centos8
trigger: none
trigger:
- master
schedules:
- cron: "30 3 * * *"
displayName: Nightly build
......
name: $(Build.BuildID)-doc
trigger:
- master
schedules:
- cron: "1 3 * * *"
displayName: Nightly build
......
......@@ -32,10 +32,23 @@ RUN tar xvf build/deploy/testscripts.tar; \
# Enable these to allow the "test" image to run the copytimes.sh test.
# Note that the oldtools folder has not been committed to git.
#COPY oldtools/ oldtools/
#COPY private/copytimes*.sh private/
#COPY private/*.sh private/
#COPY oldtools/dropcache /usr/local/bin/dropcache
#RUN chmod 4555 /usr/local/bin/dropcache
# Enable running sdutil for ad-hoc tests.
#RUN dnf -y install unzip; \
# (mkdir /usr/local/sdutil; \
# cd /usr/local/sdutil; \
# unzip /home/build/oz/oldtools/sdutil-2.2.50.zip); \
# sed -i -e '1s/python$/python3/' /usr/local/sdutil/sdutil.py; \
# chmod 755 /usr/local/sdutil/sdutil.py; \
# ln -s /usr/local/sdutil/sdutil.py /usr/local/bin/sdutil; \
# pip3 install -r /usr/local/sdutil/requirements.txt; \
# mkdir /home/build/.sdcfg; \
# ln -s /host/data/slbauth.tk /home/build/.sdcfg/slbauth.tk; \
# cp -b -S .orig oldtools/config.yaml /usr/local/sdutil/sdlib/config.yaml
# Optional: Run as a regular user
RUN adduser -u 800 -g users -G wheel build; \
dnf -y install sudo; \
......
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