Skip to content

Commit 4d2f1a9

Browse files
committed
update png dependency
1 parent d1ee5af commit 4d2f1a9

19 files changed

+109
-136
lines changed

.travis.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
language: generic
2-
sudo: required
3-
dist: trusty
4-
env:
5-
- SWIFT_BRANCH=swift-4.0-branch SWIFT_VERSION=swift-4.0-DEVELOPMENT-SNAPSHOT-2017-08-02-a
6-
install:
7-
- mkdir swift
8-
- curl https://swift.org/builds/$SWIFT_BRANCH/ubuntu1404/$SWIFT_VERSION/$SWIFT_VERSION-ubuntu14.04.tar.gz -s | tar xz -C swift &> /dev/null
9-
script:
10-
- env PATH=$(pwd)/swift/$SWIFT_VERSION-ubuntu14.04/usr/bin:$PATH swift test -c release
2+
matrix:
3+
include:
4+
- os: linux
5+
env:
6+
- JOB="Linux"
7+
dist: trusty
8+
script:
9+
- export SWIFT_VERSION=4.2.1
10+
- eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/9f442512a46d7a2af7b850d65a7e9bd31edfb09b/swiftenv-install.sh)"
11+
- swift run -c release noise-tests

Package.swift

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
1-
// swift-tools-version:4.0
1+
// swift-tools-version:4.2
22

33
import PackageDescription
44

55
let package = Package(
66
name: "Noise",
7-
products: [
8-
.library(name: "Noise", targets: ["Noise"])
7+
products:
8+
[
9+
.library(name: "Noise", targets: ["Noise"]),
10+
.executable(name: "noise-tests", targets: ["NoiseTests"])
911
],
10-
dependencies: [
11-
.package(url: "https://github.com/kelvin13/maxpng", from: "2.0.0")
12+
dependencies:
13+
[
14+
.package(url: "https://github.com/kelvin13/png", .exact("3.0.0"))
1215
],
13-
targets: [
14-
.target(
15-
name: "Noise",
16-
path: "sources/noise"),
17-
.testTarget(
18-
name: "Tests",
19-
dependencies: ["Noise", "MaxPNG"],
20-
path: "tests/noise"),
16+
targets:
17+
[
18+
.target(name: "Noise", path: "sources/noise"),
19+
.target(name: "NoiseTests", dependencies: ["Noise", "PNG"], path: "tests/noise")
2120
]
2221
)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616

1717
## Building
1818

19-
Build *Noise* with the Swift Package Manager. *Noise* itself has no dependencies, but the tests depend on [MaxPNG](https://github.com/kelvin13/maxpng), my free Swift PNG library, to view the generated noise.
19+
Build *Noise* with the Swift Package Manager. *Noise* itself has no dependencies, but the tests depend on [PNG](https://github.com/kelvin13/png), my free Swift PNG library, to view the generated noise.

doc/1.0.0/png/banner_FBM.png

-20.1 KB
Loading

doc/1.0.0/png/banner_disk2d.png

-732 Bytes
Loading

doc/1.0.0/png/banner_voronoi2d.png

-31 Bytes
Loading

tests/banner_FBM (copy).png

-209 KB
Binary file not shown.

tests/banner_FBM.png

-27 Bytes
Loading

tests/banner_disk2d.png

-732 Bytes
Loading

tests/banner_voronoi2d.png

-31 Bytes
Loading

0 commit comments

Comments
 (0)