Hello my build script isn't creating a build script for reason I do not know, the Packjson has the correct script which is
"build": "npm run silentrenew && react-scripts --max_old_space_size=8192 build",
I have double checked my YML file and all the tags
version: '1.0.{build}'
image: Ubuntu
init:
- cmd: set NODE_OPTIONS=--max-old-space-size=8192
environment:
REACT_APP_VSA_URL: >-
https://xzc-e-n-vsa0000-d-api-02.xzc-e-n-snt-06-ut-ase-01.p.azurewebsites.net
REACT_APP_NOTIFICATIONS_API_SECRET: d8015bf6cab64573b2d7c17bac94bed4
REACT_APP_EVENT_LOG_SECRET: 3431cec7ecbb42bba1957934c751f02d
install:
- cmd: npm ci --ignore-scripts
build_script:
- cmd: |-
npm --no-git-tag-version version "%APPVEYOR_BUILD_VERSION%"
npm run build
test_script:
- cmd: 'npm run test:ci'
artifacts:
- path: ./build
name: dpe
deploy:
- provider: Environment
name: dpe-dev
'on':
branch:
- internal
- tablet
on_finish:
- pwsh: >-
# upload results to AppVeyor
$wc = New-Object 'System.Net.WebClient'
$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)",
(Resolve-Path .\coverage\junit\junit.xml))
# upload coverage results to CodeCov
$env:PATH = 'C:\msys64\usr\bin;' + $env:PATH
Invoke-WebRequest -Uri 'https://codecov.io/bash' -OutFile codecov.sh
bash codecov.sh -s "./coverage/jest/"
This is the exact message I'm getting in AppVeyor, since the build isn't creating it isn't running the test and saying it was successful.
For Linux builds the prefix must be sh:
or no prefix at all:
build_script:
- sh: |-
npm --no-git-tag-version version "$APPVEYOR_BUILD_VERSION"
npm run build