Skip to content

Commit 598cd95

Browse files
committed
proper ci stuff
1 parent 5704565 commit 598cd95

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ julia:
1111
notifications:
1212
email:
1313
on_success: never
14-
on_failure: never
14+
on_failure: always

Project.toml

-8
This file was deleted.

REQUIRE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
julia 0.7.0
1+
julia 0.7.0-beta2
22
Combinatorics 0.6.0

appveyor.yml

+11-3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ notifications:
2121

2222
install:
2323
- ps: "[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12"
24+
# If there's a newer build queued for the same PR, cancel this one
25+
- ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod `
26+
https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
27+
Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
28+
throw "There are newer queued builds for this pull request, failing early." }
2429
# Download most recent Julia Windows binary
2530
- ps: (new-object net.webclient).DownloadFile(
2631
$env:JULIA_URL,
@@ -29,8 +34,11 @@ install:
2934
- C:\projects\julia-binary.exe /S /D=C:\projects\julia
3035

3136
build_script:
32-
- C:\projects\julia\bin\julia -e "versioninfo();
33-
using Pkg; Pkg.build()"
37+
# Need to convert from shallow to complete for Pkg.clone to work
38+
- IF EXIST .git\shallow (git fetch --unshallow)
39+
- C:\projects\julia\bin\julia -e "using InteractiveUtils; versioninfo();
40+
Pkg.clone(pwd(), \"MotifSequenceGenerator\");
41+
Pkg.build(\"MotifSequenceGenerator\")"
3442

3543
test_script:
36-
- C:\projects\julia\bin\julia -e "using Pkg; Pkg.test()"
44+
- C:\projects\julia\bin\julia -e "Pkg.test(\"MotifSequenceGenerator\")"

0 commit comments

Comments
 (0)