kopia lustrzana https://gitlab.com/gridtracker.org/gridtracker
rodzic
df81a43c98
commit
c95c551d15
|
@ -8,20 +8,10 @@ default:
|
|||
image: ${DEFAULT_IMAGE}
|
||||
interruptible: true
|
||||
|
||||
cache:
|
||||
key: ${CI_COMMIT_REF_SLUG}
|
||||
paths:
|
||||
- .cache/
|
||||
|
||||
before_script:
|
||||
- export APT_CACHE_DIR=`pwd`/.cache/apt && mkdir -pv $APT_CACHE_DIR
|
||||
- export NPM_CONFIG_CACHE=`pwd`/.cache/npm && mkdir -pv $NPM_CONFIG_CACHE
|
||||
- dpkg --add-architecture i386
|
||||
- apt-get update
|
||||
- apt-get -y install npm wine wine32
|
||||
- apt-get -y install git dh-make build-essential devscripts lintian diffutils patch quilt
|
||||
- apt-get -y build-dep .
|
||||
- npm install
|
||||
# before_script:
|
||||
# - echo "Before script section"
|
||||
# - echo "For example you might run an update here or install a build dependency"
|
||||
# - echo "Or perhaps you might print out some debugging details"
|
||||
|
||||
# after_script:
|
||||
# - echo "After script section"
|
||||
|
@ -36,20 +26,28 @@ build:
|
|||
- build/*
|
||||
expire_in: 1 week
|
||||
script:
|
||||
- dpkg --add-architecture i386
|
||||
- apt-get update
|
||||
- apt-get -y install npm wine wine32
|
||||
- apt-get -y install git dh-make build-essential devscripts lintian diffutils patch quilt
|
||||
- apt-get -y build-dep .
|
||||
- dpkg-buildpackage -uc -us
|
||||
- mkdir build build/debian
|
||||
- mv ../*.{deb,dsc,buildinfo,tar.xz,changes} build/debian/
|
||||
- debian/rules clean
|
||||
- npm install
|
||||
- npm run dist
|
||||
- (cd package.nw/dist ; mv *.zip *.exe *.7z *.json ../../build)
|
||||
|
||||
test:
|
||||
stage: test
|
||||
script:
|
||||
- npm install
|
||||
- npm test
|
||||
only:
|
||||
- branches
|
||||
except:
|
||||
- master
|
||||
script:
|
||||
- npm test
|
||||
|
||||
# test2:
|
||||
# stage: test
|
||||
|
|
Ładowanie…
Reference in New Issue